Glossary/Privacy and identity/First-party cookies

What are first-party cookies and how are they used?

How first-party cookies differ from third-party cookies, what publishers use them for, and when consent is needed.

Written by Samhub with the help of AI·Updated 13 Oct 2026·3 min read
Definition

First-party cookies are small files set by the website the reader is visiting, under that site’s own domain. They remember logins, settings and visits.

First-party vs third-party cookies

First-partyThird-party
Set byThe site you visitAnother domain, such as an ad vendor
Works across sitesNoYes
Browser supportSupported everywhereBlocked in Safari and Firefox

What publishers use them for

01

Logins

Keep readers signed in.

02

Analytics

Count returning readers.

03

Audiences

Recognize readers to build first-party segments.

The Media Monetization Playbook
Free playbook: three foundations for earning more from your audience data

16 pages for publishers, with a checklist for data, programmatic and direct sales.

Consent still applies

Under ePrivacy rules, cookies that are not strictly necessary need consent, whether first or third party. Login cookies are usually necessary; advertising and analytics cookies are not.

+300%

Addressability at Stampen Media after moving its reader data into one layer with Samhub.

Frequently asked questions

No. Browsers block third-party cookies, not first-party ones.

Yes, unless they are strictly necessary for the service.

Some browsers shorten cookies set by scripts, so server-set cookies last longer.

Yes, to build your own audiences, with consent.

Related terms

On this page
Data Suite
+300%
addressability
Stampen Media
Own your audience data

One EU-based platform to collect, unify and enrich your first-party data, installed with one script.

Book a demo
See what your audience data could earn
Free playbook

Turn your audience data into more revenue

Get the Media Monetization Playbook: how media houses turn first-party data into higher CPMs, data deals and direct sales. With checklists for every step.

The Media Monetization PlaybookFREE GUIDE · PDF
  • Platform
  • Solutions
  • Resources
  • Pricing