📡Google Consent Mode
Also known as Consent Mode, Consent Mode v2, Google Consent Mode v2
Passes each visitor's cookie choice to Google's tags. Tags then act on that yes or no.
Think of it like
It is like a note you pass to the waiter. It says what the guest is happy to share.
Example
Lucy's shop sets all four signals to denied at the start. When a visitor clicks Accept, the banner sets them to granted.
Why it matters
It lets a site respect a visitor's no and still measure something. Without it, a no can mean the sale is never counted at all.
Definition
Example code
javascript
gtag('consent', 'default', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied'
});Common mistake
Key takeaways
- 1Four signals. Each is granted or denied on its own.
- 2Basic or advanced. Wait for an answer, or ping without cookies.
- 3Feeds the model. Pings help estimate the unseen sales.