What are cookies, and how do the different types compare?

😎 Price promotion
10% discount on all Trackboxx annual subscriptions with the code: tb10action
Table of contents

Cookies can be necessary or optional, first-party or third-party, temporary or persistent. These categories overlap, so this guide explains what the main terms mean and how they relate to one another.

What is a cookie?

In a web browser, an HTTP cookie is a small piece of text associated with a website. It may be created by browser-side code or sent by a server, then returned with later requests according to its scope and settings. Different cookies support different purposes.

The categories are not mutually exclusive. A session cookie can also be strictly necessary and functional. The sections below separate the terms to make them easier to compare.

First-party and third-party cookies

The distinction depends on the site context and which domain sets or receives the cookie:

  • First-party cookie is associated with the website the visitor is using. It may support functions such as a login session, language choice or basket.
  • Third-party cookies are associated with a different domain embedded or called by the site. They are often used for cross-site services, advertising or measurement, although their purpose depends on the implementation.

Looking for analytics software designed to work without cookies? See our overview of Google Analytics alternatives.

What does “second-party data” mean?

As Second-party cookie The phrase “second-party cookie” is uncommon and can be ambiguous. More often, marketers use “second-party data” to describe another organisation’s first-party data shared directly under an agreement. First-, second- and third-party data .

Strictly necessary cookies

These cookies support a service explicitly requested by the visitor, such as maintaining a login or retaining items in a basket. Whether a cookie is strictly necessary depends on its purpose, not its name.

Functional cookies

Functional cookies remember choices or enable additional features. Some may be necessary for a requested function; others may require a separate legal basis or consent.

Performance cookies

Performance cookies measure how a website works, for example loading speed, errors or feature usage. Do not assume that all information collected is automatically anonymous; assess the actual data and configuration.

Analytics and tracking cookies

Analytics cookies can recognise visits and record interactions such as page views, clicks, duration, browser and device information. The exact data and retention depend on the analytics provider and setup.

Advertising and marketing cookies

Marketing cookies are used to measure or personalise advertising and may follow interactions across sites or services. They usually require particular transparency and, in many jurisdictions, prior consent.

Advertising and marketing cookies

Marketing cookies are used to measure or personalise advertising and may follow interactions across sites or services. They usually require particular transparency and, in many jurisdictions, prior consent.

Social-media cookies

Embedded social-media features may set cookies for login, sharing, personalisation, analytics or advertising. The responsible parties and consent requirements depend on the integration.

Session cookies

A session cookie is designed to expire when the browsing session ends, although browsers and applications may handle session restoration differently.

Persistent cookies

A persistent cookie remains until its configured expiry date or until it is removed. A “Remember me” feature is a common example. Persistent does not mean permanent: every cookie has an expiry or can be deleted.

Which cookies require consent?

Under EU rules, storing or accessing information on a user’s device generally requires consent unless the operation is strictly necessary to provide a service explicitly requested by the user. A login-session or basket cookie may qualify for that exemption. The assessment must focus on the actual purpose and implementation.

The Non-essential analytics, performance and marketing cookies should normally remain inactive until the required opt-in has been obtained.

A website may be able to operate without an analytics-cookie when it sets no non-essential cookies and the wider processing has another valid legal basis. This requires an assessment of the entire technology, not just the absence of cookies. Trackboxx is designed to provide web analytics without conventional analytics cookies and to minimise personal data. The legal requirements still depend on the concrete setup and jurisdiction.

Try Trackboxx free for 30 days now

No payment information required! No automatic renewal! Your Trackboxx ready to go in 1 minute.

Start for free now

Should you block cookies?

Major browsers let people restrict or remove cookies. Consent controls on websites should also allow visitors to choose which optional purposes they accept.

Blocking strictly necessary cookies can prevent features such as login or checkout from working. Restricting third-party cookies usually has less visible impact, although embedded services such as chat, video or payment tools may be affected. Review each category by purpose rather than assuming that every first-party cookie is safe or every third-party cookie is harmful.

Did you know?

…that you can track website activity without cookies? Trackboxx generates a hash instead and does not store personal data. Under certain conditions, you can even do away with the consent banner. Sound good? Try Trackboxx for free, with no obligation.

Expert in web development & online marketing with over 15 years of experience.
Developer & CEO of Trackboxx – the Google Analytics alternative.

This might also interest you.

😎 Price promotion

10% off all annual subscriptions of Trackboxx with the code: