| Rule ID | analytics/consent-mode |
| Category | Analytics |
| Scope | Per-page |
| Severity | info |
| Weight | 4/10 |
Solution
Google Consent Mode v2 is required for Google Ads in the EU/EEA (March 2024). It allows Google tags to adjust behavior based on user consent. Implement withgtag('consent', 'default', {...}) before loading Google tags. Set ad_storage, analytics_storage, ad_user_data, and ad_personalization. Update on user consent.
Enable / Disable
Disable this rule
squirrel.toml
Disable all Analytics rules
squirrel.toml
Enable only this rule
squirrel.toml