Tracking before consent: how to check your own online store
Nov 24, 2026 · 7 min read
Many online stores send data to Google, Meta or TikTok before visitors have accepted the cookie banner. With your browser's developer tools you can see within minutes which requests and cookies appear before consent, and where they come from.
What does “tracking before consent” mean in technical terms?
A consent banner is supposed to control when analytics and marketing services start working. In practice, it is common for a store to send data to Google, Meta or TikTok, or to set cookies, on the very first page view, before anyone has clicked “Accept”. The banner looks fine, but tracking is already running in the background.
There are three things to tell apart:
- Requests to tracking services, for example to the servers of Google Analytics, Google Ads, Meta or TikTok.
- Cookies and browser storage entries created by those services, such as
_ga,_gcl_au,_fbpor_ttp. - Loaded scripts that do not send anything yet but are ready to.
You can make all three visible with nothing more than your browser. This guide shows how to test, how to recognise problems and which causes are usually behind them. It deliberately does not judge whether a finding is a legal problem.
Preparation: start from a clean test state
The most common mistake: testing in your everyday browser, where you accepted the banner long ago. What you see then is the state after consent, not before it.
- Open a private or incognito window. It starts without existing cookies.
- Turn off ad blockers and privacy extensions for the test. Otherwise they block exactly the requests that real visitors would trigger.
- Open the developer tools (F12, or right-click → Inspect) before you type in your store's address.
- In the Network tab, enable “Preserve log” and “Disable cache”. Requests stay visible across redirects, and every file is loaded fresh.
- Load the homepage and leave the banner alone. No clicks, not on the X and not outside the banner either.
Repeat the test on a product page and, if possible, in the cart. Some apps and plugins only load their scripts on certain page types, such as a reviews widget on product pages or a payment script in the cart.
Use the Network tab to see which data is already flowing
The Network tab lists every request the page makes. Use the filter box and search for typical domains and paths one after the other:
google-analytics.comorcollect: GA4 sends events to a path ending in/g/collect.googletagmanager.com: this is where Google Tag Manager (gtm.js) or the Google tag (gtag/js) is loaded.googleadservices.comanddoubleclick.net: Google Ads and remarketing.facebook.com/trandconnect.facebook.net: Meta Pixel.analytics.tiktok.com: TikTok Pixel.
Keep loading and sending apart. Seeing gtm.js load does not mean data is being collected. Many consent setups actually require Tag Manager to load early and then wait for the visitor's choice. Requests that transmit events are more telling, for example a /g/collect request with en=page_view or a call to facebook.com/tr with ev=PageView.
Special case: Google Consent Mode
If your store uses Consent Mode in advanced mode, GA4 sends requests even without consent, but without cookies. You can recognise these cookieless pings by the gcs parameter in the request: G100 means ad_storage and analytics_storage are denied. If you see G111 before any choice has been made, the default state is set incorrectly and Google tags treat the visitor as if they had already consented. If gcs is missing entirely, Consent Mode is probably not set up.
Common causes and how to fix them
Pixels hard-coded into the theme
An agency or a previous developer often pasted tracking code straight into the theme, usually into the head section. That code knows nothing about the banner and fires immediately. Fix: remove it and control the tag through Tag Manager or your consent tool.
Store apps and plugins with their own tracking
Many extensions for Shopify, WooCommerce or Shopware ship with their own pixel. If Tag Manager also fires the same tag, events are counted twice, and the app may ignore consent altogether. Check the app settings for an integration with your consent tool and pick one way of loading the tag.
Tag Manager tags without a consent condition
A tag with an “All Pages” trigger fires straight away unless consent is required first. Google tags respond to Consent Mode, but tags from other vendors such as Meta or TikTok, and custom HTML tags, do not do so on their own. They need a trigger that only fires after consent, or an additional consent check in the tag's consent settings.
Wrong order
If the Consent Mode default is set only after the first tags have run, data goes out without restrictions. In Tag Manager, the default belongs in the “Consent Initialization – All Pages” trigger.
Embeds and external resources
YouTube videos, maps, review widgets, chat windows and fonts loaded from third-party servers send at least the visitor's IP address to the provider when they load. That is not tracking in the classic sense, but it shows up in the Network tab and should be a deliberate decision.
What may matter legally, without legal advice
In the EU, the legal framework consists mainly of the ePrivacy rules on accessing information on a device (in Germany the TDDDG, formerly TTDSG) and the GDPR for processing personal data. Which of your cookies and requests fall under these rules, whether an exemption for strictly necessary storage applies and how Consent Mode's cookieless pings should be treated all depend on the individual case.
That assessment belongs with your data protection officer or a specialised law firm. What you can contribute is a clean technical basis: which services are contacted before consent, which cookies are set and on which pages this happens. With screenshots from the developer tools and the date of the test, this list is easy for everyone involved to follow and can be compared again after changes.
Checklist: test your store for tracking before consent
- Private window open, extensions off, developer tools opened before loading the page
- “Preserve log” and “Disable cache” enabled in the Network tab
- Homepage, product page and cart loaded without touching the banner
- Network tab filtered for
collect,facebook.com/tr,tiktok,doubleclickandgoogleadservices gcsparameter checked on GA4 requests (G100expected before consent)- Cookies, Local Storage and Session Storage checked for
_ga,_gcl_au,_fbp,_ttpand similar identifiers - Theme files searched for hard-coded tracking code
- Apps and plugins with their own tracking listed and checked for a consent integration
- Non-Google tags in Tag Manager tied to consent
- Consent Mode default set in the “Consent Initialization” trigger
- Findings documented with screenshots and handed to your data protection advisor
- Test repeated after theme updates, app or plugin updates and new tags
Next step: let your store be checked automatically
If you would rather not click through the test by hand, the free self-check opens your homepage and one product page like a visitor who has not consented, and shows in about a minute which tracking requests and cookies appear before consent and whether Consent Mode is active.
Where does your shop stand?
The free self-check reviews tracking, consent, speed and basics of your shop in about a minute.
Check your shop for free