On this page
What this issue is
Under the ePrivacy rules in the EU and the UK's PECR, you generally need a visitor's consent before storing or reading non-essential cookies or similar technologies on their device. That covers analytics, advertising pixels, and many embeds. A cookie banner (also called a consent banner) is how you ask for that consent.
Why it costs you leads or sales
- EU/UK visitor landsArrives from an ad or search
- Consent bannerNever appears
- Tags loadAnalytics and ad pixels run anyway
- Consent recordNothing stored as proof
With no banner, no consent choice is ever recorded, so everything after it rests on no valid consent.
Example: illustrative numbers only. With no banner, no session has a recorded choice.
How to check if your site has it
Open a clean private window
Use incognito or private mode so no earlier consent choice is remembered. Disable ad blockers, which can hide banners.
Appear to be in the EU or UK
Use a reputable VPN with an EU or UK exit location, then load your homepage and a landing page. If your banner is geo-targeted, this is the only way to see what those visitors see.
Look for the banner
It should appear on first load, before you click anything, on every landing page, not just the homepage.
List the cookies set
In Chrome, open DevTools, go to Application, then Cookies. Look for _ga, _gcl_au, _fbp or similar before you interact with any banner.
Check the Network tab
Filter for google-analytics, googletagmanager, facebook or tiktok requests. If they fire with no banner shown, you have the problem.
How to fix it
Install a consent plugin
Go to Plugins, then Add New, and choose a consent plugin that supports GDPR and UK GDPR, or paste your CMP's script via its own plugin.
Enable blocking
Turn on automatic blocking of scripts until consent, and set the banner to show to EU and UK visitors or to all.
Clear caches
Purge page cache and CDN cache so the banner shows to everyone.
Use the Customer Privacy settings
In Settings, then Customer privacy, set up the cookie banner and choose the regions where it appears.
Or install a CMP app
If you use a third-party consent app, make sure it connects to Shopify's customer privacy API so pixels respect the choice.
Check checkout
Test the banner on the storefront and confirm pixel behaviour at checkout.
Add your CMP tag
Use your CMP's GTM template or custom HTML tag and fire it on Consent Initialization - All Pages.
Turn on consent overview
In Admin, then Container Settings, enable consent overview. Set built-in consent requirements on each tag.
Preview and publish
Use Preview mode to confirm the banner loads before other tags, then publish.
Add the CMP script
In Project Settings, then Custom Code, paste your CMP script in the Head code area, above other scripts.
Block other scripts
Move analytics and pixels into the CMP's categories, or load them through GTM with consent rules.
Publish
Publish the site and test on the live domain, not the staging one.
Add the script to funnels
Paste the CMP script into the Header Tracking Code of each funnel and website, in the settings area for that asset.
Repeat for every funnel
Custom code is set per funnel or site, so check each one for the banner.
Use the built-in banner
Go to Settings, then Privacy and cookies (menu names can vary), and turn on the cookie banner.
Categorise your tools
Make sure marketing tools are set to need consent, then publish.
Enable the cookie banner
Go to Settings, then Cookies and Visitor Data, and turn on the cookie banner. Choose the option to show it to visitors in regulated regions or to all.
Check scripts
Scripts you add through code injection may not be blocked automatically, so confirm in DevTools.
Load the CMP first
Place the CMP script high in the head, before any analytics or pixel script.
Gate tags on consent
Only inject non-essential scripts after the CMP reports consent for that category.
Set defaults
Default non-essential storage to denied for EU/UK visitors until they choose.
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
ad_storage: 'denied',
ad_user_data: 'denied',
ad_personalization: 'denied',
analytics_storage: 'denied',
wait_for_update: 500
});
</script>How to confirm it's fixed
- Banner shows on first load in a private window with an EU or UK VPN location
- Banner shows on the homepage, landing pages and checkout
- Before any choice, no _ga, _fbp or ad cookies are set
- After Accept, analytics and ad tags fire
- After Reject, those tags stay quiet
- Banner works on mobile and can be dismissed
- Your choice is remembered on the next visit
How to prevent it happening again
- Re-test the banner from an EU or UK location after every theme, plugin or tag change
- Add the CMP script to page templates, not individual pages
- Check new funnels and subdomains before launch
- Keep the CMP subscription and domain list up to date
- Review your cookie list when you add a new tool
How FunnelGuard handles this
Questions people ask
Do I need a cookie banner for EU and UK visitors?
If your site sets non-essential cookies, such as analytics or advertising cookies, you generally need consent first under ePrivacy rules and PECR. A banner is the usual way to collect it. Strictly necessary cookies do not need consent.
Why is my cookie banner not showing in Europe?
Common causes are a geo rule that excludes your visitor's region, a blocked or failing CMP script, page caching that serves old HTML, or a landing page that lacks the script. Test in a private window with an EU VPN and check the browser console for script errors.
How do I add a cookie consent banner to my website?
Install a consent management platform or your platform's built-in banner, load it before other tags, and block analytics and ad scripts until consent is given. Then test it from an EU or UK location.
Can I show the cookie banner only to EU and UK visitors?
Yes, many CMPs support geo-targeting. It relies on accurate location detection, so test it from several locations. Showing it to everyone is simpler and avoids gaps.
Are Google Analytics cookies allowed without consent?
In the EU and UK, analytics cookies generally need consent, with limited exceptions in some countries. Check local guidance, or ask a privacy professional if unsure.
Does FunnelGuard detect a missing cookie banner?
No. FunnelGuard does not check for this yet, and it is a possible future check. It does monitor your journeys, tracking hits and lead delivery, so check the banner manually or with a cookie scanner.
How can I test my cookie banner from another country?
Use a reputable VPN with an EU or UK exit location in a private browser window. Then open DevTools, check the Application tab for cookies and the Network tab for tracking requests before you click anything.
Related issues
- OPS-320Tracking fires before consentFix guide
- OPS-321Banner has no Reject button on first layerFix guide
- OPS-324Consent not honoured after reject (pixels still fire)Fix guide
- OPS-325Consent banner broken (can't be dismissed)Fix guide
- OPS-326Cookie policy missing or outdated cookie listFix guide
- OPS-328CMP script failing so no tags load at allFix guide