What is a tracking pixel and how does it work?

How a tracking pixel works, what advertisers and publishers use pixels for, and what consent rules apply in the EU.

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

A tracking pixel is a tiny, usually invisible image or script on a web page or email. When it loads, it sends a request to a server that records that the page was viewed or an action happened.

How a tracking pixel works

01

The page loads the pixel

A 1×1 image or small script is called from a tracking server.

02

The request carries information

Page, time, browser and any IDs or cookies allowed.

03

The server records the event

A visit, a purchase or an ad view is logged.

What pixels are used for

UseExample
Campaign validationCounting who saw an ad and visited the advertiser’s site
ConversionsRecording a purchase after an ad click
Audience buildingAdding visitors to a segment
Email opensSeeing whether a newsletter was opened
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.

Pixels and privacy

In the EU, pixels that read or store information on a device need consent under the ePrivacy rules, and the data is personal data under GDPR when it can be linked to a person. Server-side tracking and first-party setups are often used to keep data control with the site owner.

10x

More ad sales with data at Stampen Media, using Samhub.

Frequently asked questions

No. A pixel sends a request when it loads. A cookie stores data in the browser. Pixels often read or set cookies.

In the EU, usually yes, when they access the device or are used for advertising or profiling.

A pixel set up for one campaign, so the publisher can show who saw the ads and what they did next.

Many block known third-party trackers. First-party and server-side setups are less affected.

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