# Consent mode

> Consent mode lets Google tags change behavior based on a visitor

Canonical: https://scaplet.com/glossary/consent-mode

Glossary Glossary · Measurement

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.

2 min

read

2

sources

Oct 31, 2026

updated

Scaplet Editorial Team

author

In one line

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.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fconsent-mode%20(%22Consent%20mode%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fconsent-mode%20(%22Consent%20mode%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fconsent-mode%20(%22Consent%20mode%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fconsent-mode%20(%22Consent%20mode%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

4 facts from the sources below

ad_storage, analytics_storage, ad_user_data, ad_personalization

Consent types

Basic and advanced

Modes

default, then update

Commands

A consent banner you provide

Needs

_01_At a glance

## What it controls

Consent mode does not collect consent. You need a banner or consent management platform for that. It passes the visitor's choice to Google tags so they change what they store and send.

Consent type

### `ad_storage`

Covers

Advertising cookies and device identifiers

When denied

No new advertising cookies or identifiers are written, existing ones are not read

Consent type

### `analytics_storage`

Covers

Analytics storage such as visit duration

When denied

First-party analytics cookies are not read or written

Consent type

### `ad_user_data`

Covers

Sending user data to Google for advertising

When denied

Data such as `user_id` and enhanced conversions data is not collected

Consent type

### `ad_personalization`

Covers

Personalized advertising

When denied

Remarketing and personalized ads are disabled

_02_At a glance

## Basic vs advanced

Aspect

### Tags on page load

Basic

Blocked until the visitor interacts with the banner

Advanced

Load with default consent states, usually `denied` unless you configure otherwise

Aspect

### If the visitor declines

Basic

No data goes to Google, not even the consent status

Advanced

Cookieless pings are sent

Aspect

### Modeling

Basic

Uses a general model

Advanced

Advertiser-specific, which Google calls more detailed

With storage denied, tags send cookieless pings: consent state pings, [key event](/glossary/key-events) pings and [Google Analytics](/glossary/google-analytics-4) pings. Google uses them to model conversions and behavior in Google Ads and GA4, and modeling needs a minimum data threshold.

_03_At a glance

## Anatomy of the snippet

Part

### `consent default`

Job

The state before the visitor chooses. Runs first on every page

Part

### `wait_for_update`

Job

Milliseconds tags wait for an asynchronous banner to call `update`

Part

### `consent update`

Job

Sent after the visitor chooses

Part

### `region`

Job

Optional parameter scoping a default to ISO 3166-2 regions

Default before the Google tag, update after the choice

```
<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>
```

_04_How it works

## Check it in 2 minutes

**Order matters**Google's guide warns that if consent code runs out of order, consent defaults will not work. Set the default first, then load the tag, then your consent tool.

1. 01

### View source

Confirm the `consent default` call appears before any Google tag, `config` or `event` command.
2. 02

### Test denied

Load the page in a clean browser, decline in the banner, and confirm no new analytics or advertising cookies are written.
3. 03

### Test granted

Accept, then confirm the `update` call fires and tags behave normally.
4. 04

### Use Tag Assistant

Google links a guide, Troubleshoot consent mode with Tag Assistant, for verifying states.

Sources · 2

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- google.com

1. 01 [Consent mode overview (Google tag platform)](https://developers.google.com/tag-platform/security/concepts/consent-mode) developers.google.com · checked 2026-11-01
2. 02 [Set up consent mode on websites (Google tag platform)](https://developers.google.com/tag-platform/security/guides/consent) developers.google.com · checked 2026-11-01

## Keep learning

[All glossary](/glossary)

[Learn Key events Measurement](/glossary/key-events) [Related Google Analytics 4 Measurement](/glossary/google-analytics-4) [Read next Cross-domain tracking Measurement](/glossary/cross-domain-tracking) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Comment spam](/glossary/comment-spam) [Competitor analysis](/glossary/competitor-analysis) [Content audit](/glossary/content-audit) [Content brief](/glossary/content-brief)

More in Measurement
[Active users](/glossary/active-users) [ARR (annual recurring revenue)](/glossary/arr) [Attribution](/glossary/attribution) [Average position](/glossary/average-position) [BigQuery export](/glossary/bigquery-export) [Bot traffic](/glossary/bot-traffic) [Bounce rate](/glossary/bounce-rate) [Bulk data export](/glossary/bulk-data-export) [Burn rate](/glossary/burn-rate) [CAC payback](/glossary/cac-payback) [Churn rate](/glossary/churn-rate) [Click-through rate](/glossary/click-through-rate) [Consent mode](/glossary/consent-mode) [Conversion rate](/glossary/conversion-rate) [Conversion rate optimization (CRO)](/glossary/conversion-rate-optimization) [Conversion tracking](/glossary/conversion-tracking) [Cross-domain tracking](/glossary/cross-domain-tracking) [CSAT (customer satisfaction score)](/glossary/csat) [Custom dimensions](/glossary/custom-dimensions) [Customer acquisition cost (CAC)](/glossary/customer-acquisition-cost) [Dark social](/glossary/dark-social) [Data layer](/glossary/data-layer) [Data retention](/glossary/data-retention) [Data streams](/glossary/data-streams)

Terms on this page
[Key events](/glossary/key-events) [Google Analytics 4](/glossary/google-analytics-4)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
