Skip to main content
Checks for Google Tag Manager or analytics implementation
Rule IDanalytics/gtm-present
CategoryAnalytics
ScopePer-page
Severityinfo
Weight3/10

Solution

Analytics tracking helps understand user behavior and measure SEO success. Use Google Tag Manager (GTM) to manage all tags centrally. GTM should be in the <head> with a noscript fallback in <body>. Alternatives: Google Analytics 4 directly, Plausible, Fathom, or Matomo. Ensure tracking complies with privacy laws.

Enable / Disable

Disable this rule

squirrel.toml
[rules]
disable = ["analytics/gtm-present"]

Disable all Analytics rules

squirrel.toml
[rules]
disable = ["analytics/*"]

Enable only this rule

squirrel.toml
[rules]
enable = ["analytics/gtm-present"]
disable = ["*"]