Consent & Cookies
What is Prior Consent?
Prior consent is the requirement that a website obtain a visitor's permission before — not after — non-essential cookies and tracking scripts run, meaning trackers must stay silent until the consent banner is affirmatively answered.
The word 'prior' is where most consent implementations fail. EU ePrivacy rules require consent before information is stored or accessed on the user's device; a banner that appears while the page simultaneously loads analytics, advertising pixels, and session replay has already violated the rule by the time the visitor can respond. Timing is the compliance test, not the banner's existence.
The failure mode is architectural. Tags are traditionally installed to execute on page load — in the HTML head, or in a tag manager container firing on 'All Pages.' Retrofitting consent means inverting that default: every non-essential tag must be held until a consent signal releases it. Common leaks include hard-coded pixels outside the tag manager, scripts loaded by third-party apps and widgets, tags that set cookies during 'initialization' before their consent check, and server-side events sent without consulting consent state.
Prior consent also matters in the US, for a different legal reason: CIPA litigation. Trap-and-trace, pen-register, and wiretapping theories all target data captured before the visitor could consent, because consent is a statutory exception under CIPA. A tracker that waits for an affirmative choice deprives the demand letter of its core allegation.
Verification is empirical: load your site with a clean browser profile, answer nothing, and observe what fires. That before-consent view — the first thing a regulator's or plaintiff's tool records — should show strictly necessary activity only. Anything else in that window is a finding, whatever the banner goes on to say.
Why it matters for eCommerce
Measure the gap on your own storefront: open an incognito window, load the homepage, touch nothing, and count the third-party requests. On a typical eCommerce site, dozens of trackers fire in that window — each one a pre-consent data disclosure to a third party. Closing that gap is the single highest-leverage privacy fix an online store can make.
Frequently asked questions
- My site shows a cookie banner — doesn't that mean I have prior consent?
- Only if trackers actually wait for the answer. Scans routinely show sites firing analytics and ad pixels while the banner is still on screen, which violates the prior-consent requirement despite the banner. The test is what fires before a choice, not whether a banner exists.
- Which cookies are allowed before consent?
- Strictly necessary ones: cookies essential to the service the visitor requested, such as session, cart, security, load-balancing, and the cookie that stores the consent choice itself. Analytics, personalization, and advertising cookies are not in this category.
Related terms
Wondering how this applies to your own site? Get a free compliance scan — see every tracker that fires before consent, graded against CIPA, GDPR, CCPA/CPRA, and MHMD.
See what fires before consent on your site