What is Consent Mode v2?
Google Consent Mode v2 is a framework that adjusts how Google tags (Analytics, Ads) behave based on user consent status. It’s required for advertising in the EU/EEA.
Consent States
| State | Meaning |
| ad_storage: granted | Can use advertising cookies |
|---|---|
| ad_storage: denied | Cannot use advertising cookies |
| analytics_storage: granted | Can use analytics cookies |
| analytics_storage: denied | Cannot use analytics cookies |
| ad_user_data: granted | Can send user data for ads |
| ad_personalization: granted | Can personalize ads |
TrackShift’s Implementation
TrackShift Web Pixels:
- Default to “denied” for all consent types
- Listen for Shopify’s
customer_privacy_consent_changedevent - Update consent state when user accepts
- Only send full tracking data after consent
Default Consent (Before User Choice)
gtag('consent', 'default', {
'ad_storage': 'denied', 'analytics_storage': 'denied', 'ad_user_data': 'denied', 'ad_personalization': 'denied' });
—