GeneratePass
Privacy 13 min read

Tracking Technologies Explained: Cookies, Pixels, and Beyond

By GeneratePass Developers | Published: July 08, 2026 | Last Updated: July 08, 2026

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

FeatureFirst-Party CookiesThird-Party Cookies
Set byThe website you are visitingA different domain (advertiser, tracker)
PurposeSite functionality, preferences, sessionsCross-site tracking, advertising
VisibilityVisible in browser settingsOften invisible
SecuritySame-site onlyCan be sent to any site
User benefitRequired for login, shopping cartsNo direct user benefit
Blocking impactMay break websitesGenerally safe to block

How third-party cookies track you

Here is how the cross-site tracking mechanism works:

  1. You visit website A (a news site) that displays ads from advertiser.com
  2. advertiser.com sets a third-party cookie in your browser with a unique ID
  3. You visit website B (a blog) that also displays ads from advertiser.com
  4. advertiser.com reads the cookie it set on website A, recognizing you across both sites
  5. 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.

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

  1. A website embeds a 1x1 pixel image from a tracking service (e.g., https://tracker.com/pixel.gif?user=abc123)
  2. When your browser loads the page, it requests the pixel image
  3. 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
  4. 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

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:

  1. Always choose “Manage Preferences” or “Reject All” when available
  2. Uncheck all non-essential categories
  3. 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

MethodStorage RequiredUser DeletableCross-SiteDetection DifficultyEffective Block
First-party cookiesYesYesNoEasyDon’t block (needed for functionality)
Third-party cookiesYesYesYesEasyBlock in browser settings
Tracking pixelsNoNoYesHardContent blockers, disable image loading
Browser fingerprintingNoNoYesVery hardFirefox RFP, Tor Browser
Device graphsNoNoCross-deviceImpossibleLimit logged-in tracking, use separate accounts
ETag trackingYes (cache)Yes (clear cache)YesModerateClear cache regularly
localStorage/IndexedDBYesYesYesModerateClear site data, use private browsing
Canvas fingerprintingNoNoYesVery hardFirefox RFP, Canvas Blocker
WebRTC leaksNoNoYesModerateDisable 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

  1. Electronic Frontier Foundation. “How to Use the Web Without Being Tracked.” https://ssd.eff.org/
  2. Mozilla Foundation. “Understanding Cookie Consent.” https://www.mozilla.org/en-US/privacy/
  3. Princeton University. “Web Transparency and Accountability Project.” https://webtransparency.cs.princeton.edu/
  4. European Data Protection Board. “Guidelines on Consent under Regulation 2016/679.” https://edpb.europa.eu/
  5. Interactive Advertising Bureau. “Digital Advertising Privacy Framework.” https://www.iab.com/
  6. 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 Author

Security 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.

Focus: Cryptography Standard: zero-trust