- Category
- Legal signal in C2 Privacy notices and choices. Reported on its own page beside the readiness report, never scored.
- Markets
- EU, UK, CH, CA
- The question
- Does the first response set advertising or analytics cookies, or load trackers without a consent block?
Which laws
- ePrivacy Directive, Art. 5(3) (storing or accessing information on terminal equipment) EURequires consent, given after clear and comprehensive information, before information is stored on or read from a user's device, unless it is strictly necessary for a service the user requested.
- Privacy and Electronic Communications Regulations 2003, reg. 6 (storage and access) UKRequires consent for storing or accessing information on a user's device unless an exception applies, which since 5 February 2026 include certain statistical, appearance and functionality purposes where the user is informed and can object.
- Quebec Private Sector Act as amended by Law 25, ss. 3.1, 8.1 and 8.2 (privacy officer, tracking technologies, privacy policy) CA-QCRequires enterprises to publish on their website the title and contact details of the person in charge of protecting personal information. Enterprises that collect personal information by technological means must publish a confidentiality policy, and functions that identify, locate or profile a person must be off by default.
- Federal Act on Data Protection (revFADP), Art. 19 (duty to inform) CHRequires controllers to tell data subjects their identity and contact details, the purpose of processing and any recipients when collecting personal data.
On this page
In short
In the EU, the UK and Quebec, advertising cookies and trackers generally need the visitor's consent, or must be off by default, before they run. A tracker is code that records what a visitor does, often for advertising. This check reads the store's first response and its static HTML for advertising and analytics cookies and tracker tags that load with no consent block. Most trackers load later through JavaScript, so a clean result means none were seen, not that consent works.
What this check looks at
Two kinds of evidence are visible before any visitor clicks anything:
- Cookies set by the server. A
Set-Cookieheader on the home page response stores a cookie the moment the page loads, before a consent banner (the pop-up that asks visitors to accept or refuse cookies) can ask. Known advertising cookies include_fbp(Meta),_gcl_au(Google Ads),IDEandfr. Known analytics cookies include_ga(Google Analytics). - Tracker tags in the HTML. Script tags for the Google tag, Google Tag Manager, the Meta pixel, TikTok, LinkedIn, Hotjar and similar services. A tag is consent-blocked when it is inert until the consent tool enables it, typically
type="text/plain"or an attribute such asdata-cookieconsent. A Google tag also counts as blocked when an inline script sets a Google Consent Mode default with advertising or analytics storagedenied.
The laws by market:
- EU, ePrivacy Directive Art. 5(3). Storing or reading information on a user's device needs consent, unless it is strictly necessary for a service the user asked for. In Planet49 (C-673/17, 2019) the Court of Justice of the EU held that a pre-ticked box is not valid consent, and that the rule applies whether or not the information is personal data. Each member state transposes the rule in its own law, for example Germany's TDDDG §25.
- UK, PECR regulation 6. The Privacy and Electronic Communications Regulations 2003 require consent for non-essential cookies. The Data (Use and Access) Act 2025 added exceptions. The one for analytics cookies used to improve a service, with clear information and a simple way to object, has applied since 5 February 2026. Advertising cookies still need consent.
- Canada, Quebec Law 25, s.8.1 of the private-sector privacy act. Technology that can identify, locate or profile a person must be off by default, and the person must be told about it.
- Switzerland. Swiss law does not generally require prior consent for cookies. The revised Federal Act on Data Protection (revFADP) Art. 19 requires information about the processing, and the Telecommunications Act requires information and a way to refuse. The check flags trackers for review there too.
Why it matters for AI agents
Agents meet tracking in two ways. Fetch-based agents, which read the HTML without running scripts, still receive every Set-Cookie header the server sends. A store that sets advertising cookies on the first response sets them on agents too, and on the people those agents work for when they hand the session over.
Browser-based agents, which open a real browser for a person, run every tracker tag the page loads. They act with the person's privacy expectations, sometimes with a Global Privacy Control signal attached (see Global Privacy Control). A store that waits for consent before loading trackers treats an agent session the way it treats a careful human visitor.
A consent-gated page is also lighter on first load, which helps every reader. The honest fetch check covers how the store treats automated visitors in general.
How the scanner decides
The check runs when the store appears to sell in the EU, the UK, Switzerland or Canada, or when you choose one of those markets. Otherwise it is shown as not applicable.
The scanner reads the Set-Cookie headers of the home page response and the static HTML it received. It does not run JavaScript and does not click the banner.
- Review, with the cookies named: the server sets a known advertising cookie, such as
_fbp,_gcl_au,IDEorfr, before any interaction could have happened. - Review: the server sets a known analytics cookie, such as
_ga, or tracker tags (Google tag, Meta pixel, TikTok, LinkedIn, Hotjar and the like) are in the HTML without a consent-blocking attribute. For Google tags, a denied Consent Mode default also counts as a block. - Found (none seen): none of the above.
What the scanner cannot see:
- Trackers injected later by a tag manager or by other scripts, which is how most trackers load.
- Whether the consent banner works, whether rejecting is as easy as accepting, or whether choices are respected afterwards.
- Cookies set by third-party domains, which only a browser receives.
- Whether a cookie is strictly necessary for the store, or covered by an exception such as the UK analytics exception.
A clean result means none were seen, never that consent works. This is a technical reading of public pages, not legal advice.
How to fix it
Make the consent tool the gate for every non-essential tag, and stop the server from setting tracking cookies on its own. Have a lawyer review the banner and the cookie notice.
WordPress and WooCommerce
- Use a consent management plugin that blocks scripts until consent, and check that it covers tags added by other plugins, such as analytics, advertising and marketing integrations.
- In your analytics or tag plugin, turn on its consent mode or consent integration so Google tags start with storage denied.
- Look for caching or server-side tracking plugins that set
_ga,_fbpor similar cookies on the response, and configure them to wait for consent.
Shopify
- Under Settings, Customer privacy, set up the cookie banner for the regions where it is needed, so Shopify and apps that use its Customer Privacy API wait for consent.
- Check apps and custom pixels: Shopify's customer events can run pixels in a sandbox that respects consent. Prefer that over pasting tracker code into
theme.liquid. - View the page source with no banner choice made and look for tracker scripts that load directly.
Any other stack
- Add a Consent Mode default with
ad_storage,ad_user_data,ad_personalizationandanalytics_storageset todeniedbefore any Google tag. - Mark other tracker tags
type="text/plain"with your consent tool's category attribute, so the tool enables them after consent. - Remove server code that sets advertising or analytics cookies on the first response.
Verify it yourself
See which cookies the home page sets before any interaction:
curl -sI https://example.com/ | grep -i "^set-cookie"
Then search the HTML for tracker tags:
curl -s https://example.com/ | grep -ioE "googletagmanager\.com|connect\.facebook\.net|analytics\.tiktok\.com|snap\.licdn\.com|static\.hotjar\.com|type=\"text/plain\""
For the full picture, open the store in a private browser window, make no banner choice and look at the cookies and network requests in the developer tools.
Common mistakes
- A banner that only informs. A banner that appears while tags already run does not gate anything.
- Tag Manager loads before consent. Blocking individual tags is undone when the container loads them anyway. Configure consent inside the container too.
- Consent Mode set after the tag. The default must be set before the Google tag loads.
- Server-side tracking that sets cookies. Moving tracking to the server does not remove the consent question.
- Treating "none seen" as "compliant". The scanner sees only the first response.
FAQ
Does this apply to my store?
The ePrivacy rule applies to websites that store or read information on devices of users in the EU, through each member state's law. PECR applies to the UK, and Quebec Law 25 to businesses collecting personal information in Quebec. Whether a given cookie needs consent depends on its purpose and on exceptions. The scanner cannot decide that, and a lawyer can.
Are analytics cookies allowed without consent in the UK now?
Since 5 February 2026, PECR has an exception for cookies used to collect statistics to improve a website, when users get clear information and a simple way to object. That is one reason the scanner shows analytics cookies only for review. Advertising cookies are not covered by the exception.
What is Google Consent Mode?
It is a setting for Google tags that tells them whether the visitor has consented to storage for advertising and analytics. With the defaults set to denied, Google tags do not use advertising or analytics cookies until consent is given.
Why does a clean result not mean my banner works?
Because most trackers load through scripts after the first response, and the scanner does not run scripts or click the banner. It reports only what is visible in the response and the static HTML.
The fix in one step
Load advertising and analytics tags only after the visitor agrees: block them in the HTML until consent (or set Google Consent Mode defaults to denied), and stop the server from setting tracking cookies on the first response. Have a lawyer review the consent banner and cookie notice.
<!-- Defaults first, before any Google tag loads -->
<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',
});
</script>
<!-- Other trackers stay inert until the consent tool enables them -->
<script
type="text/plain"
data-category="marketing"
src="https://connect.facebook.net/en_US/fbevents.js"
></script>By platform
- WordPress and WooCommerce
- Prefer the consent plugin's script-blocking and the analytics plugin's consent integration over editing theme files.
- Shopify
- Use the customer privacy settings and apps that read the Customer Privacy API.
Prompt for a coding agent
Make this store load no advertising or analytics trackers before the visitor consents. First list every tracker in the server-rendered HTML of the home page (Google tag, Google Tag Manager, Meta pixel, TikTok, LinkedIn, Hotjar, Pinterest and similar) and every `Set-Cookie` header on the first response. For each tracker tag, either let the consent management platform block it (change the tag to `type="text/plain"` with the platform's category attribute, such as `data-cookieconsent` or `data-category`, so the platform enables it after consent) or, for Google tags, add a Consent Mode default with `ad_storage`, `ad_user_data`, `ad_personalization` and `analytics_storage` set to `denied` before the tag loads. Remove any server-side code, plugin or proxy that sets advertising cookies such as `_fbp` or `_gcl_au`, or analytics cookies such as `_ga`, on the first response. Verify with `curl -sI` and by viewing the page source without accepting the banner. Do not change the banner text or cookie notice wording. Leave a note that a lawyer must review them.
See how your store does
One scan runs every check in this knowledge base against your site and ends with a prioritised fix list.