Remediation guide

How to Fix Cookie Consent Issues

A remediation guide written for your scan: which Google Tag Manager tag fires before consent, the consent type to require on it, what loads outside the container, and a checklist to verify the change. As a PDF, or as a Markdown brief for your AI coding agent.

Free scan first. The How to fix guide is generated on Pro and Agency plans, for this scan and any earlier one.

Free · No signup · Nothing to install

Live scan · What CookieInspector capturesEvidence-based
Page load0.00s
Signals captured0.42s
Banner shown1.10s
Report ready
Cookies & local storagecaptured
Third-party scriptsflagged
Consent signalsverified
Network requestslogged

A page of a real guide, with example data

One fix, the exact tags, the setting each one needs

This is what the guide looks like for a site whose container fires three tracking tags on page load. The ids are real GTM tag ids in the customer's own container, the consent type is the one to add under the tag's Consent Settings, and the Google tags are left alone because Consent Mode already handles them.

The same content is available as a Markdown brief with a short instruction block for an AI agent at the top, so you can hand the work to Claude Code or Codex.

acme-store.com · How to fix · page 4 of 11
Fix 1 of 3

Fix 1

Gate Meta Pixel, TikTok and Segment behind consent

Three tags fire on page load with no consent check, which is why their hosts are reached 0.9 s in, eleven seconds before a visitor can answer the banner.

  1. 1In Google Tag Manager, open GTM-ACME123 and go to Tags.
  2. 2For each tag in the table, open it and expand Advanced Settings, then Consent Settings.
  3. 3Choose 'Require additional consent for tag to fire' and add the consent type shown, then save and publish.
IdTagFires onRequire
141Meta Pixel (community template)connect.facebook.netAll Pagesad_storage
152Custom HTML: TikTokanalytics.tiktok.comInitializationad_storage
96Custom HTML: Segmentcdn.segment.comAll Pagesanalytics_storage
Google tags: governed by Consent Mode, already denied before consent. Not a fix.
01

What the guide is

A scan tells you what fired before the visitor answered the cookie banner. That is the diagnosis. The How to fix guide is the treatment: a PDF written for that one scan that says where each problem lives and what to change, step by step, in the tools your team already uses.

It is generated for every scan on Pro and Agency plans, usually within a minute of the scan finishing, and it can be requested for any earlier scan of your account. The guide comes as a PDF for people and as Markdown for AI coding agents and tickets.

02

If your site runs Google Tag Manager, the guide reads your container

Most sites with a consent banner and pre-consent tracking load their tags through Google Tag Manager, and a GTM container is public. The guide downloads it, reads every tag, and crosses each host the scan saw before consent with the tag that requested it.

The result is a list of tag ids, not vendor names: tag 141 fires on All Pages with no consent check and reaches connect.facebook.net; tag 152 fires on Initialization and reaches analytics.tiktok.com. For each one the guide names the consent type to require in the tag's Consent Settings (ad_storage for advertising pixels, analytics_storage for analytics and session recording) and, when your container already has a correctly gated tag, points to it as the pattern to copy.

Google's own tags (Google tag, GA4, Google Ads, Floodlight) are governed by Consent Mode rather than by per-tag checks, so the guide reports whether they behaved (the consent state in their first pings) instead of asking you to change them.

03

What loads outside the container

Not everything comes from GTM. A chat widget pasted into the theme, a pixel added by a plugin, a script in the page head: these reach the browser before consent and no tag in the container requests them. The guide lists them separately, so you know to look in the page HTML, the theme or a plugin rather than in GTM.

It also covers the banner itself: whether it offers a one-click reject, whether it blocks non-essential scripts until answered, and what to change in your consent platform's console if it does not.

04

Give it to your AI coding agent

Every guide is also available as Markdown, one click from the report: a brief that starts with instructions for an agent, then the facts (hosts, timings, tag ids), then the fixes as numbered steps with a table of tags and the consent type each needs.

Paste it into Claude Code, Codex, Cursor or any agent that can edit your site's templates, and it has what it needs to gate the hardcoded scripts, document the GTM changes, and prepare the verification checklist. Nothing in the brief is an opinion: every host and tag id was measured on the live site.

For the GTM part itself the change happens in the GTM console, in the tag's Consent Settings. The brief gives the agent, or the person, the exact tag ids and consent types so the console work takes minutes.

05

Verify before you publish

Each guide ends with a checklist: open GTM Preview, load the homepage without touching the banner, confirm the Consent tab reads denied and the gated tags sit under Tags Not Fired with reason consent, then accept and watch them fire.

Publish, re-scan, and the next guide reflects the new state. Compliance monitoring on Pro and Agency re-scans on a schedule and emails you if a deploy brings a tag back.

06

What it does not do

It does not change your site for you, and it is not legal advice. It is a technical observation of what the browser did, with the specific settings that stop it, written so a marketer or a developer can act without a consultant.

If a container is private, server-side or cannot be read, the guide still comes out, with the host-level fixes and without tag ids, and it says so on the first page.

How we differ

“Other tools stop at the list of trackers. CookieInspector reads your public GTM container and hands you the tag ids and settings, in a PDF for people and a Markdown brief for Claude Code, Codex or any AI agent.”

Frequently asked questions

How do I fix pre-consent tracking on my website?

Find which tag or script loads each tracker before the banner is answered, then gate it behind consent: in Google Tag Manager, open the tag, expand Advanced Settings, Consent Settings, choose 'Require additional consent for tag to fire' and add ad_storage or analytics_storage; scripts hardcoded in the page or theme need a consent check in the template or your consent platform's blocker. The CookieInspector How to fix guide names the exact tags and settings for your scan.

Does the guide work if my site does not use Google Tag Manager?

Yes. Without GTM the guide lists each tracking host contacted before consent with the moment it was reached, the fixes to make in your consent platform (reject-all, blocking), and how to find the scripts in your page or theme. With GTM it goes further and names the tag ids and consent types.

Which consent type should a GTM tag require, ad_storage or analytics_storage?

ad_storage for advertising pixels and conversion tags (Meta, TikTok, LinkedIn, Twitter/X, Criteo); analytics_storage for analytics, heatmaps, session recording and chat widgets that track (Hotjar, Clarity, Segment, Crazy Egg). When a vendor does both, require both. Google's own tags do not need the per-tag check: Consent Mode governs them.

Can I give the guide to an AI coding agent like Claude Code or Codex?

Yes. From the report, 'Copy for your AI agent' puts the guide on your clipboard as Markdown: an instruction block for the agent, the measured facts (hosts, timings, GTM tag ids) and the fixes as numbered steps with a table of tags and consent types. Paste it into Claude Code, Codex, Cursor or any agent that edits your site and it can gate the hardcoded scripts and document the GTM changes.

How long does the guide take and how much does it cost?

It is usually ready within a minute of the scan finishing and is included in Pro and Agency plans at no extra cost, for every scan and for any earlier scan of your account. Free plans see where the guide would be and what it contains.

Is the How to fix guide legal advice?

No. It is a technical observation of what the browser did on your site, with the specific settings that stop it. Which categories require consent in your jurisdiction is a question for your counsel; the guide gives them the facts.

See exactly what's running on your site right now.

Run a free scan

No credit card required · Instant insights