Tracking pixel
Updated November 24, 2026
A tracking pixel is a small piece of code, often a tiny image file or a script tag, embedded in a web page or an email. When the page or email loads, the browser requests the pixel from a server, which can then record events such as a page view, an email open or a purchase. Ad platforms and analytics tools use pixels to measure and target campaigns.
In short: A tracking pixel is code embedded in a page or email that makes the browser contact a server, which records events such as views, opens or purchases for analytics and advertising.
How a tracking pixel works
A tracking pixel turns a page load into a message to a server. The ICO explains that the pixel creates a communication between the user's client, such as a web browser, and a server, which can then see when a page was viewed or an email was opened 1.
Embed. The site owner or email sender adds the pixel to the content. Classic pixels are a single image with a unique URL. Modern ones are often a script that loads from the platform and fires events.
Load. When the page or email opens, the browser requests the pixel. That request can carry details such as the time, the device and the page address. The ICO's email example records the time, location and operating system of the device used to read the message 1.
Report. The platform matches the request to a campaign, an account or a visitor. In the ICO's affiliate example, a pixel on an order confirmation page tells the affiliate platform which partner sent the buyer 1.
Use. The data feeds analytics, conversion tracking, attribution and retargeting. A business can also use what it learns as first-party data about its own visitors.
Tag managers and server-side setups. Many sites load pixels through a tag manager rather than one by one. The ICO notes that server-side setups pass event data on to tag partners from a remote server, which can hide those partners from the user 1.
Rules. In the UK, PECR applies to any technology that stores or accesses information on a user's device, and the ICO lists tracking pixels next to cookies, link decoration, web storage, fingerprinting and scripts 1. Regulation 6 says a person must not store or gain access to information on a user's terminal equipment, subject to the exceptions in Schedule A1 2. Where the information is personal data, the UK GDPR also applies 1.
Tracking pixels as a B2B buying signal
For sales teams, the pixels on a prospect's site are evidence rather than a tool to install. They show which marketing platforms the company has connected, which is a form of technographics.
A pixel is a budget line. RichAPI's playbook points out that a Meta pixel on a homepage means someone wired that site to a paid acquisition account 4. That is a more direct read on marketing spend than headcount bands or industry codes 4. It works as one of several buying signals for anyone selling to marketing teams.
Detection reads public pages. RichAPI's web_pixels endpoint checks a URL for tags such as Google Tag Manager, GA4, the Meta Pixel, the LinkedIn Insight Tag and the TikTok Pixel 3. It costs 1 credit per call, and website_intelligence runs pixels with seven other checks in one 5-credit call 3.
Both outcomes bill. web_pixels is not a waterfall endpoint, so a 2xx response bills even when nothing is detected 4. Only non-2xx responses are unbilled 4.
Read empty results carefully. An empty detection has three meanings, and the API cannot tell which one applies 4. The company may not use the tool, it may load it through a tag manager or server-side container, or the requested page may not be the one that carries the tag 4. The playbook says to record a thin result as unknown 4.
Pixels go stale. A pixel for a tool the company stopped paying for can stay in a site template after the contract ends 4. Outreach that mentions a pixel works better phrased as an observation than as a claim about current spend 4.
Example of using tracking pixels to qualify accounts
An agency that runs paid social campaigns wants to prioritize 600 target accounts, the same size as the worked example in RichAPI's pixel playbook 4. It only wants to talk to companies that already advertise on social platforms.
The GTM engineer follows the playbook's two-call pass 4.
1 clean_domain 600 messy URLs to root domains
2 web_pixels 600 domains, every call billed
3 filter keep domains with a Meta or LinkedIn pixel
4 web_tech_stack only the domains that passed step 3
5 contact lookup only the final shortlistClean first. CRM exports carry tracking tails and redirect wrappers, so the list goes through clean_domain at 0.5 credits per call 4. Otherwise the same root domain can be checked several times at full price 4.
Detect pixels on everything. The playbook's worked example runs 600 web_pixels calls for 600 credits, including 140 that detect nothing 4. Of those, 180 domains carry an ad pixel and move on 4.
Run the wider check only on survivors. web_tech_stack runs on those 180 domains for 180 credits 4. The total qualification spend is 1,080 credits before any contact lookup 4.
Store the full response. The engineer saves the complete detection rather than a pass or fail flag, as the playbook advises 4. A pixel that does not qualify an account this quarter may matter next quarter.
Write with care. The rep's opening line says the site appears to load a Meta pixel and asks how the team measures results. It does not claim to know the spend. Accounts with an empty result stay in a separate unknown group rather than a no group.
Tracking pixel vs cookie
Pixels and cookies often work together, and UK rules treat both as storage and access technologies. They do different jobs in the tracking chain.
| Tracking pixel | Cookie | |
|---|---|---|
| What it answers | Did this page, email or event load | Is this the same browser as before |
| Input | A request to a server when content loads | A small text file stored by the browser |
| Output | An event record on the platform side | An identifier sent back on later requests |
| Cost driver | Platform setup and consent management | Consent management and banner tooling |
| Main risk | Firing before consent or sharing data with unseen partners | Setting non-essential cookies without consent |
| Use it when | Measuring opens, views or conversions | Remembering state or recognizing a returning device |
Frequently asked questions
What does a tracking pixel do?
It makes the browser contact a server when a page or email loads. The ICO says the server can then identify information such as when a user viewed a webpage or opened an email 1. Platforms use those events for analytics, attribution and ad targeting.
Are tracking pixels legal?
They are legal when used under the rules. In the UK, PECR regulation 6 covers pixels that store or access information on a device, with set exceptions or consent 12. When the data is personal, the UK GDPR applies as well 1.
The bottom line
A tracking pixel is code in a page or email that reports events such as views, opens and purchases to a server 1. UK law treats it as a storage and access technology under PECR regulation 6 12. For B2B sellers, the pixels on a prospect's site show which ad platforms it uses 4. Detect them cheaply, store the full result and treat an empty scan as unknown 34.
Sources
- What are storage and access technologies?, Information Commissioner's Office
- The Privacy and Electronic Communications (EC Directive) Regulations 2003, regulation 6, legislation.gov.uk
- Website Intelligence API: Tech Stack, Pixels, Emails, RichAPI
- Pixels first, stack second: a two-call qualification pass, RichAPI