Pixel tracking is a way of recording what users do by having their browser load a small piece of code, historically a 1x1 transparent image and today often a JavaScript tag, from a tracking server. Each load sends a request that the server logs as an event: a page view, an email open or, in affiliate and ad tracking, a conversion on a thank-you page. Tracking pixels are also called web beacons, pixel tags or conversion pixels.
How tracking pixels work
- A visitor arrives from an ad or affiliate link, and the tracker sets a cookie in their browser with a click or affiliate ID.
- The advertiser places the pixel on the page to measure, usually the order-confirmation or thank-you page.
- When that page loads, the browser requests the pixel URL, sending the tracker's cookie (if the browser allows it) and any values the advertiser passes, such as order ID and amount.
- The tracker matches the request to the original click and records the conversion.
Because the tracker's domain usually differs from the advertiser's, the cookie is often a third-party cookie, which several major browsers restrict by default.
Where pixel tracking is used
| Use | What the pixel reports | Example |
|---|---|---|
| Affiliate conversion tracking | A sale or sign-up, credited to the affiliate's click | Image or iframe pixel on the checkout confirmation |
| Ad platform tracking | Page views and conversions for ad optimization and retargeting | The Meta Pixel, a JavaScript snippet that tracks visitor activity on a website |
| Email open tracking | That an email's images were loaded | A unique invisible image per recipient |
| Web analytics | Page views and events | Analytics tags firing on every page |
Example
An illustrative affiliate image pixel:
<img src="https://track.example.com/pixel?offer=12&order_id=A-1009&amount=89.90"
width="1" height="1" alt="" style="display:none">
The advertiser's checkout fills in order_id and amount dynamically; the tracker identifies the affiliate from its cookie.
Limits of pixel tracking
- Blocked or missing cookies. Ad blockers, privacy settings and third-party cookie restrictions stop the pixel from identifying the click.
- Page must load. Users who close the tab before the confirmation page finishes loading are never counted.
- No server-side events. A pixel can't report what happens later on the server, such as a lead approval, a first deposit or a refund.
- Email opens are approximate. Some email apps block images or load them through proxies, so open counts can be over- or under-reported.
- Consent. Privacy laws in many countries require consent before non-essential tracking technologies run, which includes most marketing pixels.
Pixel vs postback
| Pixel (client-side) | Postback (server-side) | |
|---|---|---|
| Fires from | The user's browser | The advertiser's server |
| Identifies the click by | Cookie | Click ID stored at sign-up |
| Affected by ad blockers and cookie limits | Yes | No |
| Reports delayed events (approval, deposit, refund) | No | Yes |
| Setup | Paste a tag | Store the click ID and call a URL from the backend |
That is why many performance programs prefer S2S tracking through postback URLs, sometimes keeping a pixel as a backup; ad platforms offer server-side equivalents such as a Conversions API. Compare both approaches in what a postback URL is, or see how affiliate tracking software combines a first-party tracking script with S2S postbacks.
Related: S2S tracking, postback URL, Conversions API, cookie duration.
FAQ
What is a tracking pixel?
A tiny image or code snippet that makes the browser send a request to a tracking server when a page or email loads, so the server can record the visit or conversion.
Is pixel tracking legal?
It is legal in most places but regulated: privacy rules in many jurisdictions require clear information and, for marketing pixels, user consent before they fire.
Is pixel tracking still reliable for affiliate programs?
It works, but it misses conversions when cookies are blocked or the page doesn't load. Server-to-server postbacks are more reliable, and many programs use them as the main method.