What is a first-party cookie?

Analytics & measurement

What does first-party actually mean?

It is about who sets the cookie. If the shop you are on stores it, it is first-party. If a different site stores it in response to a request for something on the page, it is third-party.

First-party cookies are not only for baskets. A cookie that your own analytics tag stores on your own domain can also be first-party, and it is still tracking. The word says who set it. It does not say what it is for.

Worked example

Easily confused with

  • First-party cookie vs Third-party cookie

    Set in response to a request for a resource from a site other than the one you are visiting. The other half of the pair.

  • First-party cookie vs First-party data

    Data a brand collects directly from its own interactions with customers, such as orders, accounts and email sign-ups. That is data, not a cookie file. Orders do not need a cookie to count as first-party data.

  • First-party cookie vs Server-side tracking

    Collecting data on a server you control and passing it on to analytics and ad platforms. It is about where data is processed, not about who sets a cookie.

FAQ

A rider in a red cape and bicorne hat on a rearing yellow plush horse, after David's Napoleon Crossing the Alps

Is a first-party cookie the same as first-party data?

No. A cookie is a small piece of data stored in the browser. First-party data is information a brand collects from its own customers, with or without cookies.

Can a first-party cookie track people?

It can. It tracks what happens on the site that set it. What a given cookie does depends on what it was built to do.

Sources

  1. Privacy Sandbox glossaryPrimary source

Let’s find what’s actually working.

Next step. Check what your tracked sales mean for profit with the Is your ROAS real? calculator.