Cross-site tracking

On this page 7

Cross-site tracking is the practice of recognizing the same browser or person on many unrelated websites and linking those visits into a single record of activity. In privacy and web tracking, it is the mechanism that turns isolated page views into a cross-context browsing profile, which advertisers, data brokers and analytics vendors use for targeting, measurement and audience building.

The defining feature is a shared identifier that survives the move from one site to another. Tracking within a single site, such as a shop counting its own visitors, is first-party analytics; it becomes cross-site tracking when a third party sees the visitor on site A, site B and site C and knows that all three visits belong to the same individual.

Cross-site tracking works because the same third-party code is embedded on many sites. An advertising script, a social media button or a tracking pixel loads from one tracker domain on thousands of publishers, and each time it loads it can read or set an identifier and report the current page.

The classic mechanism is the third-party cookie: the tracker domain sets a cookie the first time it appears in any page, and the browser sends that cookie back whenever the same domain loads elsewhere. The tracker’s server receives the cookie value together with the referring page address, so it can log that one browser visited a news site, a travel booking page and a pharmacy within the same afternoon.

Over time these events form a behavioral profile that may include interests, approximate location, purchase intent and sensitive inferences such as health or financial worries. The profile can then be enriched with offline data or matched to a login, which converts a pseudonymous browser identifier into a profile tied to a known person.

Techniques used to track across sites

As browsers restrict third-party cookies, trackers rely on a wider toolkit of identification techniques. Each one solves the same problem, carrying an identifier from one site to another, in a different way and with different detectability.

TechniqueHow the identifier travelsTypical countermeasure
Third-party cookiesCookie sent to the embedded tracker domainCookie blocking or partitioning
Device fingerprintingIdentifier derived from browser and device traitsReducing entropy and randomizing values
Link decorationIdentifier appended to the URL query stringStripping known tracking parameters
Bounce trackingBrief redirect through a tracker domainPurging storage of redirect-only domains
CNAME cloakingTracker disguised under a first-party subdomainResolving and checking DNS aliases
SupercookiesIdentifier stored in caches or browser featuresPartitioning caches by top-level site
Login and hashed emailSame account or email seen on many sitesLimited, depends on user behavior
Main cross-site tracking techniques

Fingerprinting is the hardest technique to detect because it stores nothing on the device. It combines dozens of signals, such as screen size, installed fonts, graphics rendering output, time zone and language settings, into a value that is often distinctive enough to recognize a browser across sites without any cookie at all.

Browser defenses against cross-site tracking

Modern browsers treat cross-site tracking as a threat to be engineered against, not just a preference to be disclosed. Their main strategy is storage partitioning, which gives each embedded third party a separate storage area for every top-level site, so the same tracker sees a different identity on each site.

ProtectionCore approachEffect on trackers
Intelligent Tracking PreventionClassifies trackers and limits their storageThird-party cookies blocked, some storage capped
Enhanced Tracking ProtectionBlocklists and total cookie partitioningKnown trackers blocked, cookies isolated per site
Chromium-based protectionsPartitioned storage and user cookie controlsDepends on browser and user settings
Tracker blocker extensionsFilter lists block tracker requestsRequests stopped before loading
Approaches of major browser protections

No single defense closes every channel. Partitioning defeats cookies but not fingerprinting, and blocklists stop known domains but miss trackers served from first-party infrastructure. Effective protection therefore combines several layers.

Cross-site tracking is a subset of web tracking defined by its scope across sites, and it is the data supply behind behavioral advertising. Distinguishing it from neighboring practices clarifies which privacy rules and technical controls apply.

ConceptScopeKey difference
First-party analyticsOne site or one organizationNo linkage to unrelated sites
Cross-site trackingMany unrelated sitesShared identifier joins the visits
Cross-device trackingSeveral devices of one personLinks devices rather than sites
Behavioral advertisingAd targeting based on profilesUses data that tracking collects
Contextual advertisingContent of the current pageNeeds no profile of the visitor
How cross-site tracking differs from neighboring concepts

Under the GDPR and the ePrivacy Directive, cross-site tracking for advertising normally requires prior consent, because it involves accessing device storage and profiling. Several US state privacy laws classify the same activity as targeted advertising or sharing and grant a right to opt out.

Risks and practical implications

The central risk of cross-site tracking is aggregation: individually harmless page views combine into revealing inferences that the person never chose to share. Visits to clinics, job boards, religious sites or debt advice services can together expose sensitive characteristics without any single site disclosing them.

  • Profiling without awareness, since the visitor sees only the publisher and not the dozens of embedded trackers.
  • Data leakage through URLs, when full page addresses containing search terms or form values reach third parties.
  • Re-identification, when a pseudonymous profile is matched to an email address or login.
  • Compliance exposure for site owners, who are responsible for third-party code they embed.

For site owners, the practical response is to inventory every third-party script, load tracking tags only after valid consent, strip identifiers from outgoing URLs and prefer measurement methods that do not require cross-site identifiers.

Stripped to the essentials

Cross-site tracking means one company watches you on many different websites. It does this by placing the same small piece of code on all of them. Each time you open one of those sites, the code recognizes you and notes the page.

Imagine a stranger who stands in every shop on your street and writes down what you look at. No single shop knows much about you. The stranger, however, ends up with a detailed picture of your habits and interests.

Where it is applied

A person researches running shoes on a sports retailer’s site, then reads a weather site and a recipe blog. All three pages embed scripts from the same advertising network, which reads one identifier on every site and records the visits together.

Within minutes, the recipe blog shows an advertisement for the exact shoes viewed earlier. This retargeting advertisement is the visible result of cross-site tracking: the network linked the shoe page with the later visits and bid for that visitor.

When the same person repeats the journey in a browser that partitions third-party storage, the network sees three unrelated identifiers. The shoe advertisement no longer follows them, and the blog shows ads chosen from the page content instead.