squirrelscan
GitHub

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 analytics

Where to start

These carry the highest severity and weight in the category.

Rules

RuleWhat it flagsSeverityScope
Analytics tracking: which platforms a page loadssquirrel inventories the analytics on each page, from Google Tag Manager and GA4 to Plausible, Matomo, Segment and session-replay tools.infoPer-page
Google Consent Mode v2: the four consent parametersGoogle Ads in the EEA requires Consent Mode v2. squirrel checks for the consent call and for the two parameters v2 added.infoPer-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.

Legal Compliance checks for a cookie consent mechanism and a privacy policy.

Learn more

Disable all Analytics rules

[rules]
disable = ["analytics/*"]

Type to search…

↑↓ navigate↵ openesc close