Skip to main content
FHAVI

Free resource

Cookie lifetime tracker

A cookie is a small file your store or a script on it sets in a visitor's browser, with a name, a purpose and an expiry date. When nobody keeps a list, cookies accumulate: old marketing tags, duplicate consent records, session cookies that outlive their job. This tracker is that list — one row per cookie, its purpose, who sets it and how long it lives — so you can see what your store actually stores before you argue about consent or attribution.Reviewed 2026-11-28 by Tarequl Islam Mukul, Managing Director

The inventory

List every cookie before you judge any of them

Start by listing what exists. Open the store in a fresh browser, accept the banner the way a visitor would, click through to checkout, then open the browser's cookie list and copy every name you find. A cookie you cannot name is a cookie you cannot defend.

01

One row per cookie

  1. Cookie name, exactly as it appears in the browser.
  2. Who sets it: your store, your theme, or a named third-party script.
  3. Purpose in one line: what breaks if it is gone.
  4. Lifetime you set: session, or a number of days.
  5. Category: strictly necessary, preferences, analytics, or marketing.

Lifetimes

Short lifetimes break attribution first

A lifetime is a promise about how long a piece of memory lasts. When the promise is longer than the browser allows, the cookie dies early and the thing that depended on it — a remembered cart, a consent choice, an attribution — dies with it. Record both numbers: what you set and what survives.

02

What to record for each lifetime

  1. The lifetime your store or script sets.
  2. The lifetime the browser actually keeps — some browsers shorten it.
  3. What depends on that lifetime: a login, a cart, an attribution window, a consent record.
  4. The date you last checked it, so a silent change shows up.

The review

Review the list on a schedule

Review the list on a schedule, not when something breaks. Monthly is enough for most stores: open the inventory, walk the store again, and compare what the browser shows with what the sheet says. Anything on the browser that is not on the sheet is a script you did not know about.

03

Review checks

  1. A cookie with no owner and no purpose gets a decision: keep with a named owner, or remove.
  2. A marketing cookie firing before consent gets flagged, not debated.
  3. A consent cookie with a lifetime shorter than your consent policy gets corrected.
  4. A duplicate — the same purpose set twice under different names — gets merged.

What to do with it

What to do with the result

The tracker is finished when the sheet and the browser agree, and someone owns keeping them in agreement. Until then it is a snapshot, not a control.

04

Do this with the result

  1. Give the finished inventory to whoever owns consent on your store — it is the evidence behind the banner.
  2. Remove cookies with no owner and no purpose; a list that only grows is not a list.
  3. Re-check after every new app or script install; that is when unknown cookies appear.
05

Do not do this

  1. Deleting cookies from the sheet without deleting them from the store.
  2. Treating a consent cookie as strictly necessary because it is convenient.
  3. Assuming the lifetime you set is the lifetime the browser keeps.

Keep going

The rest of the library

Every checklist here is free and ungated. The research pages carry the reasoning behind them.

All resources · Research library

Want this done for you? Tracking audit — $149

Send the details and we will tell you what to fix first, or quote the work if you would rather hand it over.

Prefer email? Write to md@fhavi.com