The banner shows, but the tag fires anyway. Here is why Borlabs cannot see your Google Analytics code, and how to put it back under consent.
WebNewBiz TeamChecked against each platform's own help pages
You installed Borlabs Cookie on a client's WordPress site, the consent banner shows, but Google Analytics still fires before anyone clicks Accept. For an agency building DSGVO-ready sites, that makes the banner cosmetic and the client exposed. This guide shows why the tag loads outside Borlabs, and how to put it back under consent, following Borlabs' own documentation, step by step.
On this page
Borlabs can only hold back code it delivers itself. If the Google tag is loaded somewhere Borlabs cannot see, the banner is just a picture and the hit goes out regardless. Before you change anything, match your symptom to the cause below.
| Likely cause | What you see |
|---|---|
| The gtag or GA code is pasted in the theme header, functions.php, a header-scripts plugin, or Elementor custom code | In the page source the gtag snippet sits in the head, not inside a Borlabs Service, and requests to googletagmanager.com fire on first load |
| Google Site Kit is active and injects its own gtag | Site Kit is connected to Analytics and a script handle like google_gtagjs appears in the source |
| No Borlabs Service or package installed for Analytics | Consent Management then Services has no Google Analytics entry, so nothing is gating it |
| A Script Blocker exists but its phrase does not match the real script | You added a blocker, yet the script URL or handle on the page is different, so it slips through |
| Advanced Consent Mode is loading gtag cookielessly by design | A request to googletagmanager.com, but no _ga cookie is set and the signal reads gcs=G100 |
| Page cache or an old consent cookie in your browser | It leaks only sometimes, or your own browser already stored a borlabs-cookie consent |
Most agency tickets are the first two rows: the tag was added outside Borlabs during an earlier build. The fixes below run from the quickest check to the fuller rebuild.
Do not change settings until you know what you are looking at. Open a private or incognito window so no consent is stored, open the browser developer tools on the Network tab, and load the page without touching the banner.
This one check saves hours, because cookieless Consent Mode traffic is often mistaken for a leak.
WebNewBiz builds the full WordPress site from a plain description, and you add and edit the cookie, privacy and Impressum pages yourself by asking the AI Copilot.
View the page source (right click then View Page Source) and search for gtag, G- or googletagmanager. Then check each place a tag can hide:
Write down every spot you find the tag. The goal is one tag, in one place, under consent.

This is the clean fix. Remove the hardcoded snippet from wherever you found it in Fix 2, then let Borlabs deliver the code so it is gated by consent.
Now Borlabs owns the tag and holds it until the visitor opts in. You can read the package steps on the Borlabs Library page. Check it worked: open a fresh incognito window and confirm no analytics hit fires before you click Accept, and that it does fire after.
Sometimes a client wants to keep Site Kit or another plugin that injects the tag. In that case, use the Script Blocker to catch the script and release it only on opt-in.
One limit to know: the Script Blocker blocks the execution of JavaScript, including inline scripts, but it works on scripts rendered server side in the HTML. A script injected later by other JavaScript may need its handle instead. Test again in incognito and watch the Network tab.
If Fix 1 showed cookieless gtag traffic, decide whether you want it. Borlabs supports Google Consent Mode v2. When you install the Google Analytics package, Basic Consent Mode is already enabled. Advanced Consent Mode lets the tag load in a cookieless state before consent and start real collection only after opt-in.
Pick one deliberately in the service settings and document it for the client, so the pre-consent request is expected and defensible. The details are on the Borlabs Consent Mode v2 page.
A fix can look broken because an old copy of the page is being served. After any change:
Only trust a test where nothing was cached and no prior consent existed.
Make the leak impossible on the next build instead of catching it later.
Collect the evidence before you ask for help, so you are not sent in circles:
Then contact Borlabs support with that package, since they built the plugin and can see whether the Service or Script Blocker is configured right. Their feature reference is the Borlabs Cookie features page.
Why does Google Analytics load before I click Accept even with Borlabs Cookie installed?
Borlabs can only gate code it delivers itself through a Service. If the Google tag is pasted in the theme header, in functions.php, in a header-scripts plugin, in Elementor custom code or injected by Google Site Kit, Borlabs does not control it, so it fires on first load. The fix is to move the tag into a Borlabs Library Service or catch it with the Script Blocker.
Does Borlabs Cookie block Google Site Kit automatically?
Not on its own. Site Kit injects its own gtag snippet outside Borlabs. You either disconnect Analytics in Site Kit and install the Borlabs Google Analytics package instead, or you keep Site Kit and add a Script Blocker whose search phrase matches the Site Kit script so it is held until the visitor opts in.
Is a request to googletagmanager.com before consent always a violation?
No. If you use Advanced Consent Mode, Google services load in a cookieless state before consent and send a signal such as gcs=G100, setting no analytics cookies. That is expected behavior, not a leak. A real leak is when the _ga cookie is set or full hits are sent before anyone clicks Accept.
Where should I put the Google Analytics code so Borlabs controls it?
Install the Google Analytics package from the Borlabs Library, enter your Measurement ID, and let Borlabs deliver the code. Do not also paste the same snippet in the theme or a header plugin, or the tag will load twice and bypass consent. One tag, in one place, behind Borlabs or Google Tag Manager.
Why does it still leak after I fixed it on my own browser?
Your browser probably already stored a borlabs-cookie consent, and a page cache or CDN may still be serving an old version with the tag. Purge the WordPress page cache, the object cache and the CDN, delete the borlabs-cookie cookie, then test again in a fresh incognito window that has never consented.
When you start a fresh WordPress site rather than repair one, WebNewBiz drafts the whole site from a plain description, and the cookie, privacy and Impressum pages live as normal, editable WordPress pages that you add by asking the AI Copilot. Honest limits: it has no built-in consent banner, no cookie scanner and no GDPR certification, so you would still install a consent tool like Borlabs and write the legal wording yourself, and hosting runs on Google Cloud in the United States, not the EU. Create your website for $1: the first month is $1, then the plan's normal price from $19 a month (Starter), cancel any time. If you run an agency building sites for clients, you can talk to us about white-label.
Describe your business and the AI builds your website, store and CRM. Try it free for 3 days, no card needed.