ad_storage
- Covers
- Advertising cookies and device identifiers
- When denied
- No new advertising cookies or identifiers are written, existing ones are not read
Consent mode lets Google tags change behavior based on a visitor's consent. Basic vs advanced, the four consent types, a working snippet, and how to check it.
Consent mode is a Google feature that adjusts how Google tags and SDKs behave based on the consent choices users make. You collect consent, tell Google the result, and the tags respect it. In basic mode tags are blocked until the visitor interacts with a banner. In advanced mode they load with default states.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
ad_storageanalytics_storagead_user_datauser_id and enhanced conversions data is not collectedad_personalizationdenied unless you configure otherwiseWith storage denied, tags send cookieless pings: consent state pings, key event pings and Google Analytics pings. Google uses them to model conversions and behavior in Google Ads and GA4, and modeling needs a minimum data threshold.
consent defaultwait_for_updateupdateconsent updateregion<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied',
'wait_for_update': 500
});
</script>
<!-- Google tag loads here -->
<script>
function allConsentGranted() {
gtag('consent', 'update', {
'ad_storage': 'granted',
'ad_user_data': 'granted',
'ad_personalization': 'granted',
'analytics_storage': 'granted'
});
}
</script>Confirm the consent default call appears before any Google tag, config or event command.
Load the page in a clean browser, decline in the banner, and confirm no new analytics or advertising cookies are written.
Accept, then confirm the update call fires and tags behave normally.
Google links a guide, Troubleshoot consent mode with Tag Assistant, for verifying states.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.