Skip to content

Knowledge BaseServer-Side Tracking

What Is First-Party Tracking?

Definition

First-party collection routes tracking requests to an endpoint under the site's own domain.

This describes the collection path, not every later recipient of the data. The first-party or third-party context of a cookie also depends on the site being visited. An endpoint hostname, cookie scope and server forwarding are separate checks; the hostname does not establish consent.

collection endpoint
same originsubdomain
  1. In practice

    How does first-party tracking work in practice?

    First-party collection routes browser requests through an endpoint on your own domain. It can reduce some browser-side loss and gives you more control over the data path, but it does not bypass consent, blockers or browser privacy protections by default.

    The visitor’s device still has to send the request. Safari also limits cookies set via third-party CNAME cloaking, so a first-party hostname and a server-set cookie do not ensure longer cookie lifetime. Test the actual collection path and cookie behavior rather than assuming the domain configuration removes those limits.

  2. Not to be confused with

    Not to be confused with
    Is notIs
    consent-free trackinga technical distinction about where data flows

    First-party tracking does not mean consent-free tracking, and setting cookies on your own domain does not remove the obligation to get consent before setting non-essential cookies or processing personal data — that obligation is based on what the cookie does and what data is collected, not which domain set it.

    It’s also not automatically more accurate: a first-party setup that never receives the browser event in the first place, because a script was blocked, an ad blocker filtered it, or consent was denied, has nothing to forward, first-party or not. This is a technical distinction about where data flows, not a compliance strategy.

  3. Where to check

    How to check

    • ChromeApplicationCookies
    • FirefoxStorageCookies

    Check the collection endpoint in Network. For a page at https://www.example.com, https://www.example.com/metrics has the same origin; https://metrics.example.com is a subdomain with a different origin. Both examples use the same HTTPS site. Read the destination URL, not only the request Origin header.

    In Chrome, open Application > Cookies; in Firefox, open Storage > Cookies. Compare the cookie domain with the top-level site, then inspect SameSite, expiry and any blocked-cookie explanation. The Domain field alone does not establish the cookie’s first-party context. Check Cookie and Set-Cookie headers on the actual request and response. A successful request to your hostname does not prove that the browser stored or sent the intended cookie.

    Sources: Google: custom domain · MDN: cookies

Daniil Maximkin

Hi, I’m Daniil.

I work with you from defining the problem to implementation and handover. You talk to the person who does the work. I work in English and Russian; written correspondence in Spanish with translation support.

What do you need to get working?

Describe your task

The first answer is free, within one working day. Or write directly: next@taskfordaniel.com