Analytics audit rules: tag presence and consent mode
Audit rules for analytics: which measurement platforms each page loads, and whether Google Consent Mode v2 is set up.
Analytics rules read what a page loads for measurement and whether it respects consent. One inventories the platforms present, from tag managers to privacy-focused alternatives. The other checks for Google Consent Mode v2, which Google requires for advertising traffic from the EEA. Both are informational: what you measure with is your decision, and this category reports it rather than judging it.
Run only these rules
squirrel audit https://example.com --rule-include analyticsWhere to start
These carry the highest severity and weight in the category.
- Google Consent Mode v2: the four consent parameters: Google Ads in the EEA requires Consent Mode v2. squirrel checks for the consent call and for the two parameters v2 added.
- Analytics tracking: which platforms a page loads: squirrel inventories the analytics on each page, from Google Tag Manager and GA4 to Plausible, Matomo, Segment and session-replay tools.
Rules
| Rule | What it flags | Severity | Scope |
|---|---|---|---|
| Analytics tracking: which platforms a page loads | squirrel inventories the analytics on each page, from Google Tag Manager and GA4 to Plausible, Matomo, Segment and session-replay tools. | info | Per-page |
| Google Consent Mode v2: the four consent parameters | Google Ads in the EEA requires Consent Mode v2. squirrel checks for the consent call and for the two parameters v2 added. | info | Per-page |
Key terms
- Cookie consent: The banner and mechanism that asks visitors before setting non-essential cookies, as GDPR and ePrivacy require in the EU.
Related categories
Legal Compliance checks for a cookie consent mechanism and a privacy policy.
Learn more
- Fix SEO issues with AI, the coding agent workflow for working through a report
- Website audit tool
- Sample report, with the Analytics section on a real site
Disable all Analytics rules
[rules]
disable = ["analytics/*"]