> Site index: https://usehardal.com/llms.txt
> Every content route also serves markdown at <url>.md

# What Is Google Consent Mode v2?

Google Consent Mode v2 passes a visitor's consent choices to Google tags through four signals, so tags change what they store and send after a denial.

Source: https://usehardal.com/glossary/consent-mode

---

Google Consent Mode v2 is the way a website or app tells Google tags what the visitor agreed to. Your consent banner records the choice, then calls `gtag('consent', ...)` with four signals. Google tags read those signals and change what they store and send. Consent Mode does not show a banner and does not decide whether you may track. It only carries the answer.

## The four signals

Google's [Consent Mode documentation](https://developers.google.com/tag-platform/security/concepts/consent-mode) lists these consent types for advertising and analytics.

| Signal | What it controls |
|---|---|
| `ad_storage` | Whether advertising cookies or device identifiers may be stored |
| `analytics_storage` | Whether analytics cookies or identifiers may be stored, such as `_ga` |
| `ad_user_data` | Whether user data may be sent to Google for online advertising |
| `ad_personalization` | Whether data may be used for personalized advertising, such as remarketing |

The first two control storage. The last two, added in v2, control how Google may use the data it receives. Other types such as `functionality_storage` and `security_storage` exist for non-advertising uses.

## How does Consent Mode work?

1. A `default` command runs before any Google tag, usually with everything `denied` for visitors in regions that need opt-in consent. In Google Tag Manager this fires on the Consent Initialization trigger.
2. The visitor makes a choice in the banner.
3. The banner calls an `update` command, such as `ad_storage: 'granted'`.
4. Google tags adjust. With storage denied, they do not read or write their cookies. With `ad_user_data` denied, they do not send personal data such as enhanced conversions data.

**Basic mode** blocks Google tags until the visitor interacts with the banner. If the visitor declines, nothing is sent, not even the consent state. **Advanced mode** loads the tags with the denied default and sends cookieless pings, which carry the consent state and the event but no cookie. Google uses those pings for conversion and behavioral modeling.

## Why it matters

Google ads and analytics features that use personal data depend on these signals. If `ad_user_data` and `ad_personalization` are missing for EEA traffic, features such as remarketing audiences and some measurement for that traffic stop working. Getting the signals right is also the only way Google can model the conversions you cannot observe.

## Common pitfalls

- **Default fires too late.** If a tag runs before the `default` command, it runs without consent.
- **The banner never calls `update`.** Visitors accept, but tags stay denied, and reports drop for no clear reason.
- **Non-Google tags ignore it.** Meta, TikTok, and other tags do not read Consent Mode on their own. They need consent settings in Tag Manager or their own logic.
- **Server containers that drop the state.** A server-side setup must pass the consent state through and apply it to every destination, not only Google ones.

## How Hardal helps

Hardal is the first-party data and agentic analytics platform. It works with the consent state your banner sets, and it does not treat a server path as a way around a denial. As our [FAQ on consent](https://usehardal.com/faq/does-hardal-track-users-who-don-t-give-consent) explains, data from visitors who decline is limited to anonymous cookieless pings and is not used for remarketing. The [cookieless GA4 setup](https://usehardal.com/server-gtm-cookieless-ga4) shows how consent and a server container fit together.

**Related terms:** [Cookieless analytics](https://usehardal.com/glossary/cookieless-analytics), [First-party data](https://usehardal.com/glossary/first-party-data), [Server-side GTM](https://usehardal.com/glossary/server-side-gtm), [Google Enhanced Conversions](https://usehardal.com/glossary/google-enhanced-conversions)
