Skip to content

Job template · Tracking and analytics

Job template: set up Google Consent Mode v2 with your cookie banner

By The Microployed teamUpdated 3 min read

The short answer

Hire a pro to connect your cookie banner to your Google tags so each visitor's choice reaches GA4 and Google Ads through all four consent settings: ad_storage, analytics_storage, ad_user_data and ad_personalization. The pro sets the defaults before any Google tag runs, makes the banner update them on accept and reject, and proves it in Tag Assistant. Most small sites take 1 to 2.5 hours.

Ready-to-post scope

Set up Google Consent Mode v2 so our cookie banner controls our Google tags

Typical time for a pro: 60 minutes to 2.5 hours

We have a cookie banner and Google tags for GA4 and Google Ads, and we need them connected through Google Consent Mode v2. Set the default consent state for all four settings before any Google tag runs, make the banner update them when a visitor accepts or rejects, and use the consent mode we've chosen. Send Tag Assistant screenshots for both choices and a short note on where everything lives.

Check first

  • Which cookie banner or consent app you use, and whether you can invite a user to it
  • Whether your Google tags run through Google Tag Manager, a platform app or code in the theme
  • Which Google tags you run, such as GA4, Google Ads conversions or remarketing
  • Whether you want basic or advanced consent mode, decided with your legal adviser

Access to give

  • Publish permission on your Google Tag Manager container, added to the pro's own Google account
  • A user invite to your cookie banner or consent platform
  • A staff account or editor user on your site if banner or tag code lives in the theme
  • No passwords: the pro works through their own logins

Done when

  • Tag Assistant shows all four consent settings with a default before any Google tag fires
  • Accepting the banner updates the settings to granted and rejecting keeps them denied
  • No tag in the Tag Manager Consent Overview is left under Consent Not Configured without a written reason
  • You have a short note of the mode used and where the banner and consent settings live

When you need this job

You need this job when your site shows a cookie banner but your Google tags don't receive what visitors chose, or when the banner only sends some of the signals Google reads. Consent mode passes each visitor's choice to Google tags through four settings, ad_storage, analytics_storage, ad_user_data and ad_personalization, and Google's own troubleshooting guide asks you to confirm that all four are set. A banner that hides cookies from view but never tells the tags anything leaves GA4 and Google Ads guessing.

Whether you need a banner at all, and how strict it should be, depends on where your visitors are and the rules that apply to your business. That's a question for your legal adviser, so settle it before you post the job and tell the pro what you decided.

What the pro will do

The pro starts by finding out which banner or consent platform you use and how your Google tags are installed, because the setup is different for Google Tag Manager and for tags pasted straight into the site. Many consent platforms, including Cookiebot, OneTrust and Usercentrics, publish templates in the Tag Manager Community Template Gallery that connect the banner to Google's consent APIs, so the pro will use one where it exists.

Next, the pro sets the default consent state before any Google tag runs. In Tag Manager that means attaching the banner or defaults tag to the built-in Consent Initialization - All Pages trigger, which fires before every other trigger. On sites without Tag Manager, the default snippet goes above the Google tag, and Google's developer guide warns that if the consent code runs out of order, the defaults won't work.

The pro then makes sure the banner sends an update for every setting it gave a default, both when a visitor accepts and when they reject. They'll also turn on Enable consent overview under Admin > Container Settings and use the Consent Overview screen to check every tag, since tags listed under "Consent Not Configured" haven't had a consent check reviewed.

Last, the pro sets the mode you chose. Basic consent mode blocks Google tags until the visitor responds to the banner, while advanced consent mode loads tags with consent denied by default and sends cookieless pings, which Google uses for conversion and behavioral modeling in Google Ads and GA4.

How to review the work

Ask for screenshots from Tag Assistant's Consent tab on your live site, one after clicking accept and one after clicking reject. The On-page Default column should show all four settings before any tags fire, and On-page Update should show them change after your click. Also ask for a short note listing the mode used, where the banner settings live, and any tag that was left without a consent check and why. Our guide to Google Tag Manager preview mode helps if you want to check it yourself.

Common gotchas

  • Defaults set too late. If an ad tag reads or writes a cookie before the default runs, Tag Assistant reports an error, and Google says not to set defaults asynchronously.
  • Mixed methods in Tag Manager. Containers should use Tag Manager's consent APIs, not gtag('consent', 'update'), which may not be available when the next trigger fires.
  • Updates lost on reload. If a banner reloads the page or updates consent just as the page unloads, the browser can cancel the request, so the update should run as soon as the visitor clicks.
  • An empty Consent tab. This usually means consent mode isn't running on that page at all, often because the banner loads on some templates and not others.

If Tag Manager isn't on your site yet, start with our install Google Tag Manager template.

The next level up

Once consent is wired up, check that your conversions still count

Consent changes decide which tags fire, so it's worth having a pro run a test purchase or lead and confirm GA4 and Google Ads each record it once, with the right value. You'll get a short list of anything missing and the fixes you approve.

Post the conversion check job

Questions people ask

What is Google Consent Mode v2?

It's the current version of Google's consent mode, which passes a visitor's cookie choices to Google tags through four settings: ad_storage, analytics_storage, ad_user_data and ad_personalization. Tags then adjust what they store and send based on those settings.

What's the difference between basic and advanced consent mode?

Basic consent mode blocks Google tags until the visitor responds to the banner, so nothing reaches Google before that. Advanced consent mode loads tags with consent denied by default and sends cookieless pings, which Google uses to model conversions.

How do I check that consent mode is working?

Open your site in Tag Assistant and look at the Consent tab for your tag. On-page Default should show all four settings before tags fire, and On-page Update should change after you accept or reject the banner.

Do I need consent mode if my cookie banner already blocks cookies?

If you use Google Analytics or Google Ads, the banner still needs to tell Google tags what the visitor chose. Consent mode is the way that choice reaches the tags.

Sources

Checked against these pages on .