Code BLACKGO: cookie banner free for a year. Create an account →

Publications / Website audit

How to test GA4, GTM and pixels after changing consent settings

Six scenarios to go through after implementing a banner or before a campaign starts: no decision, refusal, analytics only, marketing only, everything and withdrawal. Where to look in the browser, GA4, GTM and Meta.

Author: Robert.S Published: Updated: 4 min read

How to test GA4, GTM and pixels after changing consent settings

After implementing a banner or changing tags, you need to check two things: that the tools do not run without consent and that they do run after consent. The first protects you from breaking the law, the second from losing campaign data. Below are six scenarios and the tools in which you can see the result.

Preparation

  • A new private window (after closing the previous ones), without ad-blocking extensions.
  • The site and CDN cache cleared after the latest changes.
  • In consetgo: scan mode off – in scan mode, blocking is disabled for your browser, and an orange “SCAN MODE” bar is visible at the top of the page.
  • Developer tools open (F12): the Network tab and the place where cookies are shown (Application).

Six scenarios

ScenarioGA4Google Ads, Meta, TikTok
1. No decision (banner visible)does not rundo not run
2. Reject alldoes not rundo not run
3. Analytics onlyrunsdo not run
4. Marketing onlydoes not runrun
5. Accept allrunsrun
6. Withdrawal of consent (settings icon)stops runningstop running

Start each scenario in a new private window (except the sixth, which you do after the fifth).

Where to look

Browser

  • Network: filter by “google-analytics”, “googletagmanager”, “googleadservices”, “facebook”, “tiktok”. In the scenarios without consent there must be no requests to these services.
  • Cookies: without consent, no _ga, _gcl_au, _fbp, _ttp. After consent is withdrawn, consetgo deletes them when the page reloads.
  • Console: type dataLayer. At the start there should be a consent default entry with “denied”, and after the decision a consent update with values matching the selected categories.

GA4

The Realtime report and DebugView show visits only in scenarios 3 and 5. In 1, 2 and 4 nothing should appear.

Google Tag Manager

Preview mode (Tag Assistant) shows which tags fired and has a tab with the consent state (default and update values). Remember that preview mode loads the container itself – judge by the tags that fired, not by the fact that GTM loaded. More: Google Tag Manager and consent.

Meta and Google Ads

In Meta Events Manager, the Test Events tool shows pixel events live – they should appear only in scenarios 4 and 5. In Google Ads, the consent diagnostics in the conversion settings show whether Google receives Consent Mode signals.

Before an ad campaign starts

  • Go through scenarios 2, 4 and 5 on the campaign landing page, with a URL containing campaign parameters (utm_source, gclid).
  • Check that the campaign parameters and the traffic source are kept after the first decision in the banner – in consetgo the first decision does not reload the page, so they are kept.
  • Go through the conversion path to the end (form, order) in scenario 5 and check that the conversion reached Google Ads and Meta.
  • Save the test result with a date – it will help when comparing reports.

Most common results and causes

  • Tags load without consent – scan mode on, code outside the blocking (e.g. placed in a file the module does not handle), page cache without PHP.
  • GA4 does not run after consent to analytics – GTM in the marketing category, or two consent tools at the same time.
  • The pixel runs after consent to analytics only – the pixel in the wrong category, or a GTM tag without blocking.

Testing basics step by step: How to check whether a site sets cookies before consent. Impact on reports: conversion drop after implementing the banner.

Questions and answers

Why does everything load in my test even though I refused?

Check whether scan mode is on – in consetgo it disables blocking in your browser and shows an orange “SCAN MODE” bar at the top of the page. Test consent in a new private window, without that bar.

Will GA4 DebugView show visits from people who refused?

No. In Consent Mode basic mode the GA4 tag does not load at all, so nothing reaches GA4. In advanced mode (the default in consetgo) the tag sends only cookieless signals after a refusal – you can check this in the Network tab: the requests to Google carry the gcs=G100 parameter, and there are no _ga cookies. That is the correct result of the refusal test.

How often should the tests be repeated?

After every change of services on the site (a new plugin, a new tag in GTM), after changing the banner settings and before an ad campaign starts.

Read also

How to document cookie consent and how long to keep the proof

How to document cookie consent and how long to keep the proof

Website audit

The GDPR requires the controller to be able to demonstrate consent, but does not say how long to keep the proof. What a consent log entry should contain, how to set the retention period and how to answer a question about a specific consent.

· 6 min read