vafer.app / blog

Rejecting cookies should delete cookies. Most banners don't.

Blocking stops tomorrow's tracking. Deletion deals with yesterday's. When a shopper rejects, most consent tools merely stop new trackers loading — while _ga, _fbp and friends, set on an earlier visit or before the choice, stay on the device and keep being sent with every request. The banner said no; the browser keeps saying yes.

Why cookies survive a reject

A consent tool's blocking layer intercepts scripts as they load. Cookies are a different mechanism: they were written earlier, they live in the browser's jar, and they ride along on every request to their domain automatically. Unless the tool actively deletes them at the moment consent is withdrawn, nothing about a reject touches them.

What deletion can and cannot reach — honestly

Cookie typeDeletable on reject?
First-party tracking cookies on your store's domain (_ga, _fbp, _ttp…)Yes — if the tool knows their names
localStorage / sessionStorage identifiersYes
HttpOnly cookiesNo — invisible to JavaScript by design
Cookies set by a third party on its own domainNo — browsers reserve that to the setting domain
Strictly necessary cookies (cart, checkout, session)Must never be touched — deleting the cart honours nobody

Two consequences follow. First, a tool that claims it deletes everything is overclaiming — the browser itself forbids some of it. Second, deletion is only as good as the store's cookie declaration: you can only safely delete what you can name. An undeclared cookie could be anything, including something checkout depends on.

Check your own store in one minute

  1. Private window → accept cookies → browse two pages.
  2. Reopen preferences → reject all.
  3. Devtools → Application → Cookies: _ga and _fbp should be gone; cart should remain.

If the trackers survive, your reject is a note in a log somewhere, not an action on the device. The full version of this test — including catching banners that never blocked in the first place — is in the five-minute banner test.

Frequently asked

Why do cookies survive after I click reject?

Most consent tools only stop new trackers from loading. Cookies set before the reject — or during an earlier accepted visit — stay on the device and keep being sent with every request unless the tool actively deletes them.

Can a consent tool delete every cookie?

No, and be wary of one that claims it. HttpOnly cookies are invisible to JavaScript, and cookies set by a third party on its own domain are out of any on-page tool's reach. What can be deleted: cookies on your store's domain that are declared and matched by name.

Which cookies must never be deleted?

Strictly necessary ones — cart, checkout, session and the consent record itself. Deleting the cart to honour a cookie preference would break the store; deleting the consent record would re-ask the shopper on every page.

When a shopper says no, it means no.

Vafer is a cookie consent app for Shopify that holds known trackers until consent, deletes cookies on reject, and shows you proof it's working. Free in early access.

Join the waitlist

Keep reading