Borlabs Cookie (CMP) — consent fix
Borlabs Cookie is detected as CMP, but GTM tags fire before the Borlabs consent status is established. Common causes: (1) GTM loads synchronously in <head> before Borlabs has initialised, (2) tags are not tied to the Borlabs consent check, (3) Borlabs 3.x uses a new API that differs from 2.x — sites that upgrade break their existing GTM triggers.
Domains
borlabs-cookie.s3.amazonaws.comcdn.borlabs.io
Cookies
Borlabs Cookie is a widely used Consent Management Platform (CMP) for WordPress. If the scanner indicates that your website loads trackers before consent, it is not an issue with Borlabs itself. It means that your configuration — or more commonly, the connection between Borlabs and Google Tag Manager (GTM) — is incorrect. As a result, the consent you collect is not legally valid under the GDPR.
Why Borlabs triggers a warning
Most problems with Borlabs arise from flawed implementations and, in particular, the major update from Borlabs version 2 to version 3.
- GTM loads too early: GTM is loaded hardcoded (synchronously) in the
<head>of the site, before Borlabs even gets the chance to initialise the consent state. - Tags ignore Borlabs: The marketing and analytics tags in GTM are set to fire on 'All Pages' and do not check whether Borlabs has actually given the green light.
- The Upgrade Trap: Websites that upgraded from version 2.x to 3.x often still run on outdated GTM triggers. (Version 2.x operated via
window.Borlabs.Cookie, whereas version 3.x requires the newborlabs_cookie_consent_savedevent).
The Fix: Properly connect Borlabs and GTM
To make the connection between Borlabs and your scripts watertight, you must specifically check the Google Consent Mode settings.
1. Activate Google Consent Mode v2 (For version 3.x)
Borlabs 3.x features native support for Consent Mode v2. This is by far the safest way to manage GTM.
- In your WordPress dashboard, go to Borlabs Cookie > Settings.
- Navigate to the Google Consent Mode settings.
- Enable the integration.
- Ensure that the defaults for GDPR regions are set strictly (all storage types set to
denied).
2. Check GTM for Consent Checks
Now that Consent Mode is enabled, GTM must listen to it.
- Open your GTM workspace.
- Go to your tags for marketing (e.g., Meta Pixel) and analytics (e.g., Google Analytics).
- Check the Consent Settings (under Advanced Settings). Ensure it specifically states that
ad_storageoranalytics_storageis required.
3. The alternative route (Custom Events in GTM)
If you do not or cannot use Consent Mode, you must fire the tags in GTM based on Borlabs' events.
- For Borlabs 3.x: Use the event name
borlabs_cookie_consent_savedin your GTM Custom Event triggers. - Ensure that you either load the GTM container code via Borlabs itself (as a Script Blocker component), or use the data layer event as a trigger. Never just use "All Pages".
How to Verify the Fix
Use Google Tag Assistant in combination with your browser's Network tab.
- Open your website in an incognito window with Tag Assistant activated.
- Check the Tag Assistant interface before you click the cookie banner. Your tracking tags must absolutely not be listed as 'Fired'. The Consent Mode tab should show everything as
denied. - Click 'Deny all' in the Borlabs banner.
- Review the subsequent events in Tag Assistant. Still, no marketing tags should fire.
- In the Network tab (F12), there must be no calls to Facebook, Google Ads, or other trackers visible.
Not sure if the fix worked, or want to verify that no other scripts are leaking data? Run a free scan with ConsentChecker.eu for instant confirmation.
Sources
Go directly to Borlabs Cookie
View the official documentation and configuration options for Borlabs Cookie.
Check your own site
Scan your website for free to see if Borlabs Cookie (CMP) (or other trackers) loads before consent.
Start free scan →