trakily.
All posts

First-party cookies vs cookieless: what changes for attribution

What a first-party analytics cookie actually stores, what cookieless tracking gives up, and how to choose for your site.

Sunny Bundel2 min read
PrivacyCookiesAttribution

“Cookieless” has become a selling point for analytics tools. It's a real option with real benefits, and Trakily offers it. But it changes what your analytics can tell you, and for revenue attribution the difference matters. Here's what each mode does, concretely.

What a first-party cookie is (and isn't)

A first-party cookie is set on your own domain and only sent back to your own domain. It's different from the third-party cookies that ad networks used to follow people across unrelated sites, which browsers have been restricting for years.

Trakily's default script sets two:

  • _trakily_vid: a random visitor id, when that visitor was first seen and how many visits they've made. Kept for a year.
  • _trakily_sid: a random session id, which expires after 30 minutes of inactivity.

Neither contains a name, email or anything from another site.

How cookieless tracking works

Without a cookie, there's nowhere to remember a visitor. Trakily's cookieless script, like other cookieless tools, has the server compute an anonymous id from a hash of a secret salt, the site, the IP address and the user agent. The salt changes every day, so the same person gets a new id each day. That's the privacy benefit: nobody can follow them from one day to the next. It's also the cost.

What it means for attribution

Buying decisions often take more than a day. When the visitor id resets daily, a purchase on a later day can't be connected to the first visit.

Illustrative example

A visitor finds you through a Reddit thread on Monday, reads your pricing page, and comes back on Thursday by typing your URL to subscribe.

With first-party cookies: Thursday's visit is recognised as the same visitor. The payment is linked to them, and their journey shows the Reddit visit that started it.

Cookieless: Thursday's visitor looks new. The payment can still be linked to Thursday's visit, but Monday's Reddit visit is a different, anonymous person. Reddit gets no credit.

Same-day attribution
First-party cookies
Yes
Cookieless
Yes
Multi-day attribution
First-party cookies
Yes
Cookieless
No
Customer journeys
First-party cookies
Yes
Cookieless
No
Returning visitors
First-party cookies
Yes
Cookieless
No
Cross-domain journeys
First-party cookies
Yes
Cookieless
No
Stores anything in the browser
First-party cookies
Two first-party cookies
Cookieless
A per-tab session id in sessionStorage

How to choose

  • Keep cookies if revenue attribution is a main reason you use analytics, especially if people usually think for a few days before buying. List the cookies in your cookie notice.
  • Go cookieless if avoiding cookies matters more to you than multi-day attribution, or most of your purchases happen in the same visit.

Whether you need consent for either depends on where you and your visitors are and how you use the data; get advice for your situation rather than relying on a vendor's label. Our cookie policy lists exactly what Trakily stores, and the docs show how to switch modes.

Try it on your site

Trakily shows which channels bring paying customers, not just visitors. Start a 14-day free trial; no card needed.