Sub topic 8
Personalized advertising settings and consent
This chapter assumes you have already linked GA4 to Google Ads and shared at least one audience. It also assumes you know what a GA4 data stream and an event parameter are. The topic is the set of switches that decide whether GA4 data may be used for personalized advertising, and what consent does to the data you collect.
Why this matters after audience sharing
Sharing an audience with Google Ads does not guarantee ads will serve to it. Several independent controls can remove a user from ad personalization, and any one of them is enough. When an audience stays small or empty in Google Ads, one of these controls is often the cause.
Two terms appear throughout:
- Personalized advertising means using a person's activity to choose or tailor ads, as in remarketing.
- Consent is the user's choice, usually made in a cookie banner, about what a site may store and send.
The layers of control
GA4 applies controls in layers. Data must pass every layer to be used for personalization.
| Layer | Where you set it | What it controls |
|---|---|---|
| User consent | Cookie banner and Consent Mode | Whether the browser may store identifiers and whether data may go to Google for ads |
| Regional setting | GA4 Admin, data collection settings | Turns off ads personalization for users in chosen countries or regions |
| Property signals | GA4 Admin, Google signals | Whether signed-in Google users can be recognized across devices |
| Link setting | Google Ads link in Product links | Whether this link's data is used for personalized ads |
| Event or user property | Marked as non-personalized in Admin | Excludes specific events or properties from personalization |
The exact menu labels change between GA4 releases. Look for the "ads personalization" wording in Admin if a path differs from what is written here.
The link-level toggle
When you create or edit a Google Ads link, you see a setting called Enable Personalized Advertising. It is on by default.
If you turn it off for a link:
- GA4 data from that link is not used to build personalized ad audiences.
- Conversion import and reporting still work. Only personalization changes.
- Audiences you shared may stop populating in that Google Ads account.
Check this setting first when an audience shows zero members. It is a common cause, and the toggle is easy to miss during link setup.
Regional and event-level exclusions
You can turn off ads personalization for users in specific regions. Teams use this where local law or company policy is stricter than the global default. Events from those users are still collected for analytics. They are only withheld from personalized advertising.
You can also mark individual events or user properties as non-personalized (NPA). A common case is a user property that records a sensitive category, such as a health topic the user viewed. Marking it NPA keeps that signal out of remarketing audiences. Do this before you build audiences that depend on that event, because changes affect only data collected afterward.
On a single page or tag, you can disable personalization in code:
gtag('config', 'G-XXXXXXXXXX', {
allow_ad_personalization_signals: false
});This tells GA4 not to use that tag's traffic for personalized ads. It does not stop analytics collection.
Consent Mode and its four signals
Consent Mode lets your site tell Google tags what the user agreed to. Version 2 uses four signals:
| Signal | Controls |
|---|---|
| `ad_storage` | Storing advertising cookies or identifiers |
| `analytics_storage` | Storing analytics cookies or identifiers |
| `ad_user_data` | Sending user data to Google for advertising |
| `ad_personalization` | Using data for personalized advertising such as remarketing |
For users in the European Economic Area and the UK, Google requires you to pass ad_user_data and ad_personalization. If they are missing or denied, those users are excluded from Google Ads audiences and from some conversion measurement. This matters directly for the audience sharing you set up in the previous chapter.
The pattern has two steps. First set a default before any tag runs. Then update the state when the user answers the banner.
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
// 1. Default: deny everything until the user chooses.
gtag('consent', 'default', {
ad_storage: 'denied',
analytics_storage: 'denied',
ad_user_data: 'denied',
ad_personalization: 'denied',
wait_for_update: 500
});
// 2. Call this from your cookie banner when the user accepts.
function onAcceptAll() {
gtag('consent', 'update', {
ad_storage: 'granted',
analytics_storage: 'granted',
ad_user_data: 'granted',
ad_personalization: 'granted'
});
}The wait_for_update value, in milliseconds, gives an asynchronous banner time to load before tags send their first hit. Without a default that runs first, tags may fire before the user has answered.
If you use Google Tag Manager, set the same defaults with a consent management platform template instead of hand-written code. Use one approach, not both.
What denied consent does to your data
Denied consent changes what is collected, and this shows up in the reports:
- With
analytics_storagedenied, GA4 does not set analytics cookies. Depending on your setup, it may still receive cookieless pings, which carry no persistent identifier. - Users cannot be linked across visits, so returning users look like new users. User and session counts can fall below what a Google Ads or server log count shows.
- GA4 can apply behavioral modeling to fill part of the gap in reports. It requires enough consented traffic and a correctly working consent setup.
- Modeled data appears in GA4 reports. It does not appear in the BigQuery export, which holds only observed events.
Consent is therefore one of the reasons numbers differ between tools. A later chapter covers that comparison in full.
Checking consent in the BigQuery export
The export records consent state in the privacy_info record on each event. This query counts events by consent state, so you can see how many were collected without consent:
SELECT
privacy_info.analytics_storage AS analytics_storage,
privacy_info.ads_storage AS ads_storage,
COUNT(*) AS events
FROM `my-project.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20250101' AND '20250131'
GROUP BY analytics_storage, ads_storage
ORDER BY events DESC;Values are typically Yes, No, or null when the state was not set. A large share of No rows in a region with a strict banner is expected. A large share where you expect consent may mean the update call never fires.
Common errors
- No default consent call. Tags run before the banner answer, and the state is undefined.
- Update on the wrong event. The banner stores the choice but never calls
gtag('consent', 'update', ...). Every visit then stays denied. - Only two of four signals passed. Older banners send
ad_storageandanalytics_storageonly. EEA audiences then stay empty. - Personalization off at the link. The toggle was cleared during setup and never revisited.
- Expecting retroactive changes. Consent, NPA marking, and regional changes apply to new data, not to history.
Exercise
A shared audience has 40,000 members in GA4 but shows 0 in Google Ads. Consent Mode is in use, and the Google Ads link is active. Name three personalization-related settings you would check, and which BigQuery field helps you test the consent theory.
Show answer
Check (1) that Enable Personalized Advertising is on for the Google Ads link, (2) that the banner passes ad_user_data and ad_personalization and sets them to granted after acceptance, and (3) that no regional setting or NPA marking on the audience's defining event excludes these users. To test the consent theory, query privacy_info.analytics_storage and privacy_info.ads_storage in the events export and look for a high share of No values.
Exercise
Why can a user count in GA4 reports be higher than the distinct user_pseudo_id count in BigQuery for the same dates when consent is denied for many visitors?
Show answer
GA4 reports can include modeled data that estimates users who denied consent. The BigQuery export contains only observed events, and events collected without consent may have no persistent identifier. The two counts therefore measure different things.