First-party cookie
How it works
What matters is who sets the cookie. If it belongs to the domain in the address bar, say example.com, it's a first-party cookie. If it comes from another domain embedded in the page, an ad network for example, it's a third-party cookie. Third-party cookies can recognize the same user across many websites. First-party cookies only apply to your own site.
Ad pixels use first-party cookies too: the Meta pixel stores its ID in the _fbp cookie on your domain.
Why it matters
Safari blocks third-party cookies by default, Firefox keeps them in a separate jar for each website, and Chrome lets users switch them off. Tracking that relies on them loses data. First-party cookies aren't affected, even though Safari limits their lifetime through ITP. That makes them the basis for recognizing a visitor on their next visit.
TSO uses a first-party visitor ID in a cookie and localStorage (13 months) and sets no third-party cookies. In cookieless mode it stores nothing in the browser at all.
Example
A visitor clicks an ad on Monday and lands on example.com. The tracking script sets a first-party cookie there with a random visitor ID. On Thursday she comes back by typing the address and fills in the form.
The cookie lets the website recognize her and attribute the lead to Monday's ad click. A third-party cookie from the ad network would never have been allowed by Safari in the first place.
Common mistakes
- Assuming first-party means no consent needed: a cookie of your own used for tracking usually still needs consent in the EU. What counts is the purpose, not who sets it. Clarify the details with your data protection counsel.
- Forgetting subdomains: a cookie set only for
www.example.comdoesn't apply onshop.example.com. For both, the main domain has to be the cookie domain. - Overlooking domain changes: if checkout runs on a different domain, it can't see the cookie. The visitor ID has to be handed over on the switch, for example as a URL parameter.
- Overestimating the lifetime: in Safari, cookies set by JavaScript last seven days at most. With longer buying decisions, matching needs additional identifiers such as the email address.