Sub topic 1
How Third-Party Cookies Power Targeting and Measurement
Prerequisites
Assume you understand campaigns, conversions, funnels, web analytics, and the basic idea of a browser cookie.
How Third-Party Cookies Work
A third-party cookie is a cookie set by a domain different from the site the visitor is viewing. An advertising platform can place its cookie when its pixel, tag, or embedded content loads across many sites. The platform can then recognize the same browser on those sites.
This cross-site signal supports:
- Audience building, such as people who visited a product page.
- Retargeting, which shows ads to previous visitors.
- Conversion attribution, which connects an ad interaction with a later purchase.
- Frequency capping, which limits how often one browser sees an ad.
A first-party cookie belongs to the site the visitor is using. It can remember a login or cart, but it does not automatically provide the same cross-site view.
// Set a first-party identifier only after consent.
function setFirstPartyId(consented) {
if (!consented) return;
const id = crypto.randomUUID();
document.cookie =
`visitor_id=${id}; Max-Age=${60 * 60 * 24 * 90}; ` +
"Path=/; Secure; SameSite=Lax";
}Why Browsers Restrict Tracking
Browsers restrict cross-site tracking because it can create detailed profiles without a clear user relationship.
- Safari uses Intelligent Tracking Prevention to limit cross-site cookies and script-based tracking.
- Firefox uses Enhanced Tracking Protection to block known trackers and restrict cookies.
- Chrome has changed its third-party-cookie plans over time and is developing privacy-preserving advertising APIs alongside stronger user controls.
The result is less stable identity and shorter or missing measurement paths.
Mobile, Email, and Privacy Law
Apple's App Tracking Transparency requires an app to ask permission before tracking activity across other companies' apps and websites. Apple's Mail Privacy Protection can hide email opens and approximate locations, so open rate is weaker evidence of engagement.
The GDPR and ePrivacy rules can require a lawful basis, clear notice, and consent before placing certain tracking technologies. US state laws vary, but many add rights to opt out of sale, sharing, or targeted advertising. Keep consent records, honor withdrawal, and send only the data needed for the stated purpose.
What Breaks
When cross-site signals shrink, retargeting audiences become smaller. Attribution windows lose interactions, so platforms may undercount or model conversions. Frequency capping becomes less reliable because one person may appear as several browsers or devices. Reports also have less reach and more uncertainty.
Exercise
Why can a platform report fewer conversions after third-party cookies are restricted?
Show answer
It loses some links between an ad interaction and a later conversion, so the conversion may be unobserved or modeled.