Tracking Technologies Explained: Cookies, Pixels, and Beyond
You Are Being Tracked Right Now
When you visit a website, you are not just interacting with that single site. Behind the scenes, dozens of third-party companies are collecting data about your visit — what you click, how long you stay, what you search for, and where you go next. This data is compiled into detailed profiles used for targeted advertising, pricing manipulation, and behavioral prediction.
The tracking ecosystem is vast and complex. It involves cookies, tracking pixels, JavaScript fingerprinting, device graphs, and a growing array of techniques designed to follow you across the internet. Understanding how these technologies work is the first step toward protecting your privacy.
This article demystifies the major tracking technologies, explains how they work together, and provides practical guidance on how to block them.
Cookies: The Original Tracking Technology
What are cookies?
A cookie is a small piece of data that a website stores in your browser. When you return to the website, your browser sends the cookie back to the server, allowing it to recognize you. Cookies were invented in 1994 to solve a practical problem: the HTTP protocol is stateless, meaning each request is independent and the server has no memory of previous interactions.
First-party cookies vs. third-party cookies
| Feature | First-Party Cookies | Third-Party Cookies |
|---|---|---|
| Set by | The website you are visiting | A different domain (advertiser, tracker) |
| Purpose | Site functionality, preferences, sessions | Cross-site tracking, advertising |
| Visibility | Visible in browser settings | Often invisible |
| Security | Same-site only | Can be sent to any site |
| User benefit | Required for login, shopping carts | No direct user benefit |
| Blocking impact | May break websites | Generally safe to block |
How third-party cookies track you
Here is how the cross-site tracking mechanism works:
- You visit website A (a news site) that displays ads from advertiser.com
- advertiser.com sets a third-party cookie in your browser with a unique ID
- You visit website B (a blog) that also displays ads from advertiser.com
- advertiser.com reads the cookie it set on website A, recognizing you across both sites
- Over time, advertiser.com builds a profile of your browsing habits across thousands of sites
This is why you see ads for products you searched for on a completely different website. The advertising network has tracked your activity across multiple sites using cookies.
The cookie lifecycle
Cookies have a defined lifecycle:
- Session cookies: Deleted when you close your browser
- Persistent cookies: Remain until their expiration date (can be months or years)
- Secure cookies: Only sent over HTTPS connections
- HttpOnly cookies: Cannot be accessed by JavaScript (important for security)
- Same-site cookies: Only sent for same-site requests (helps prevent CSRF attacks)
Tracking Pixels: The Invisible Tags
What is a tracking pixel?
A tracking pixel (also called a web beacon, pixel tag, or clear GIF) is a tiny, often invisible image (1x1 pixel) embedded in a web page or email. When the image loads, it sends a request to the tracking server, which logs the request along with information about you.
How tracking pixels work
- A website embeds a 1x1 pixel image from a tracking service (e.g.,
https://tracker.com/pixel.gif?user=abc123) - When your browser loads the page, it requests the pixel image
- The tracking server records:
- Your IP address (location)
- The time of the request
- The website where the pixel was loaded
- Your browser and device information
- The cookie ID associated with your browser
- This data is compiled into a profile of your browsing behavior
Types of tracking pixels
- Email tracking pixels: Embedded in emails to track when you open them, what device you use, and your approximate location. Most email clients now block external images by default.
- Website tracking pixels: Used by advertising networks to track visits and conversions across websites.
- Conversion pixels: Placed on “thank you” or confirmation pages to track when a user completes a purchase or sign-up.
- Retargeting pixels: Track users who visit a product page and then show them ads for that product on other websites.
Why pixels are hard to detect
Tracking pixels are nearly invisible (literally 1 pixel in size), they load as images (not scripts), and they are served from domains that may not be obviously associated with tracking. Content blockers and browser settings that block scripts do not necessarily block image-based tracking.
Advanced Tracking Technologies
Browser fingerprinting
Browser fingerprinting identifies your browser by collecting a combination of attributes (screen resolution, fonts, graphics card, browser version, etc.) that together create a unique profile. Unlike cookies, fingerprinting requires no storage and cannot be “deleted.” For a detailed explanation, see our guide on browser fingerprinting.
Device graphs
Device graphs (also called cross-device tracking) connect your activity across multiple devices. If you use your phone to search for a product and later visit the same site on your laptop, a device graph links these activities to build a complete profile of your behavior.
Device graphs are built using:
- Statistical matching: Correlating similar browsing patterns across devices
- Logged-in data: Using accounts (Google, Facebook) that span devices
- IP address matching: Connecting devices that share the same network
- Email and phone number matching: Linking devices associated with the same email or phone
ETag tracking
ETags (Entity Tags) are HTTP cache headers that tell your browser whether a resource has changed. Some trackers abuse ETags as a cookie alternative: when you visit a site, it sends an ETag value that your browser stores; on your next visit, the browser sends the ETag back, allowing the tracker to identify you — even if you have deleted all cookies.
Canvas and WebGL fingerprinting
As discussed in our browser fingerprinting guide, these techniques extract unique information from your graphics hardware and rendering pipeline to identify your browser.
Local storage and IndexedDB
Web storage technologies (localStorage, sessionStorage, IndexedDB) allow websites to store data in your browser. While not designed for tracking, some trackers use these APIs as cookie alternatives because they are harder to detect and clear.
How to Block Tracking Technologies
Browser-level protections
1. Enable strict tracking protection
Most modern browsers offer built-in tracking protection:
- Firefox: Enhanced Tracking Protection (Strict mode) blocks cross-site cookies, cryptominers, fingerprinters, and tracking content
- Chrome: Standard protection blocks known tracking cookies; Enhanced protection adds more
- Safari: Intelligent Tracking Prevention blocks cross-site cookies automatically
- Edge: Tracking Prevention (Strict) blocks most trackers
2. Block third-party cookies
Go to your browser settings and block third-party cookies entirely. This is the single most effective step against cookie-based tracking. Most websites function normally without third-party cookies.
3. Use DNS-over-HTTPS
Encrypted DNS prevents your ISP from tracking your browsing through DNS queries and protects against DNS-based tracking.
4. Install a content blocker
uBlock Origin is the most effective content blocker available. It blocks:
- Tracking scripts
- Advertising networks
- Fingerprinting scripts
- Malicious domains
Install it and enable it in default or hard mode for maximum protection.
Email tracking protection
- Disable automatic image loading in your email client
- Use email clients that block tracking pixels by default
- Consider using email privacy services (ProtonMail, SimpleLogin)
- Use email aliases for sign-ups to limit cross-service tracking
Network-level protections
- Pi-hole or AdGuard Home: DNS-level ad and tracker blocking for your entire network
- VPN: Encrypts your traffic and hides your IP from trackers
- Encrypted DNS: Prevents DNS-based tracking and manipulation
Consent Management and Privacy Regulations
GDPR (European Union)
The General Data Protection Regulation requires websites to obtain explicit consent before setting non-essential cookies or tracking users. Key requirements:
- Cookie consent must be freely given, specific, informed, and unambiguous
- Pre-checked consent boxes are not valid
- Users must be able to withdraw consent as easily as they gave it
- “Cookie walls” (blocking access unless cookies are accepted) are generally not permitted
CCPA/CPRA (California)
The California Consumer Privacy Act and its amendment (CPRA) give California residents the right to:
- Know what personal information is collected about them
- Request deletion of personal information
- Opt out of the sale or sharing of personal information
- Non-discrimination for exercising privacy rights
The “Accept All” problem
Most websites present a cookie consent dialog with a prominent “Accept All” button and a buried “Manage Preferences” option. This dark pattern is designed to maximize data collection. To protect your privacy:
- Always choose “Manage Preferences” or “Reject All” when available
- Uncheck all non-essential categories
- Consider using browser extensions that automatically reject non-essential cookies
Do Not Track and Global Privacy Control
- Do Not Track (DNT): A browser setting that signals a preference not to be tracked. Largely ignored by advertisers.
- Global Privacy Control (GPC): A newer standard that has legal backing under CCPA/CPRA. Some browsers (Firefox, Brave) support it natively.
Tracking Method Comparison
| Method | Storage Required | User Deletable | Cross-Site | Detection Difficulty | Effective Block |
|---|---|---|---|---|---|
| First-party cookies | Yes | Yes | No | Easy | Don’t block (needed for functionality) |
| Third-party cookies | Yes | Yes | Yes | Easy | Block in browser settings |
| Tracking pixels | No | No | Yes | Hard | Content blockers, disable image loading |
| Browser fingerprinting | No | No | Yes | Very hard | Firefox RFP, Tor Browser |
| Device graphs | No | No | Cross-device | Impossible | Limit logged-in tracking, use separate accounts |
| ETag tracking | Yes (cache) | Yes (clear cache) | Yes | Moderate | Clear cache regularly |
| localStorage/IndexedDB | Yes | Yes | Yes | Moderate | Clear site data, use private browsing |
| Canvas fingerprinting | No | No | Yes | Very hard | Firefox RFP, Canvas Blocker |
| WebRTC leaks | No | No | Yes | Moderate | Disable WebRTC, use VPN |
Frequently Asked Questions
Should I block all cookies?
No. First-party cookies are essential for website functionality — they enable login sessions, shopping carts, and user preferences. Block third-party cookies, which are used primarily for cross-site tracking and have no direct benefit to you. Most browsers allow you to block third-party cookies while keeping first-party cookies enabled.Do ad blockers really protect my privacy?
Yes, partially. Content blockers like uBlock Origin block tracking scripts, advertising networks, and many fingerprinting techniques. However, they do not protect against all tracking methods (like server-side tracking or pixel-based tracking). For comprehensive protection, combine a content blocker with other measures: block third-party cookies, use Firefox with strict protection, and consider DNS-level blocking.Are cookie consent banners effective?
Research shows that most cookie consent banners are designed to encourage acceptance. Many use dark patterns (prominent "Accept All" buttons, hidden "Reject" options). Additionally, some tracking occurs regardless of your consent choice, and enforcement of consent regulations is inconsistent. For reliable protection, use browser-level blocking in addition to making informed consent choices.What is the difference between a VPN and a content blocker?
A VPN encrypts your network traffic and hides your IP address, preventing your ISP and network operators from tracking your browsing. A content blocker (like uBlock Origin) runs in your browser and blocks tracking scripts, advertisements, and malicious domains. They serve different purposes and are complementary — a VPN does not block in-browser trackers, and a content blocker does not encrypt your network traffic.Can websites track me without any cookies or scripts?
Yes, to some extent. Server-side tracking (analyzing HTTP headers, IP addresses, and request patterns) does not require client-side cookies or scripts. Additionally, tracking pixels (1x1 images) can function without JavaScript. While these methods are less precise than cookie or fingerprint-based tracking, they are harder to block. For maximum privacy, use a VPN, encrypted DNS, and a privacy-focused browser.References
- Electronic Frontier Foundation. “How to Use the Web Without Being Tracked.” https://ssd.eff.org/
- Mozilla Foundation. “Understanding Cookie Consent.” https://www.mozilla.org/en-US/privacy/
- Princeton University. “Web Transparency and Accountability Project.” https://webtransparency.cs.princeton.edu/
- European Data Protection Board. “Guidelines on Consent under Regulation 2016/679.” https://edpb.europa.eu/
- Interactive Advertising Bureau. “Digital Advertising Privacy Framework.” https://www.iab.com/
- Cloudflare. “What Are Cookies and How Do They Work?” https://www.cloudflare.com/learning/privacy/what-are-cookies/
About the Author
The GeneratePass Editorial Team builds privacy-first security tools that run entirely in your browser. Every tool on GeneratePass processes data locally — nothing is ever sent to a server. Visit generatepass.me to try our free Password Generator, Entropy Calculator, and Breach Checker.
GeneratePass Developers
Verified AuthorSecurity researchers, cryptography engineers, and software developers dedicated to making browser-based cryptographic tools accessible and secure. We write guides with a focus on local execution, zero-trust patterns, and client-side data sovereignty.
Related Security Tools
Related Publications
Browser Fingerprinting: How Websites Track You Without Cookies
Learn how browser fingerprinting works, what data it collects, and practical steps to resist this advanced tracking technique.
Browser Security Basics: Protecting Yourself Online
Learn essential browser security settings, HTTPS best practices, extension safety, and DNS-over-HTTPS to protect yourself from online threats.
Data Breaches Explained: How They Happen and What to Do
Understand how data breaches occur, what data is exposed, famous examples, and the exact steps to take after a breach to protect your accounts.