Skip to main content

Floodlight / Google Ads snippet (Consent-aware)

Place after Consent Mode default and before tags that depend on consent.

<!-- Google Tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-XXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'AW-XXXXXXX');
// Consent Mode default-denied should be set ahead of this snippet
</script>

On consent update, fire conversions as usual (Consent Mode will gate signals):

<script>
// Example conversion
gtag('event', 'conversion', {
send_to: 'AW-XXXXXXX/abcdEFGHijklMNop',
value: 1.0,
currency: 'USD',
});
</script>