Skip to main content
Back to Articles
Compliance7 min readBy Armin Zaribaf

Google Privacy Sandbox & the Topics API Explained: What Happened and What It Means for Consent

The Privacy Sandbox was Google's set of browser APIs meant to replace third-party cookies for advertising. Google has since kept third-party cookies in Chrome and is retiring most Sandbox APIs, including Topics. Learn how the Topics API worked and what it means for consent.

What Is the Privacy Sandbox?

The Privacy Sandbox is Google's umbrella initiative for a set of browser-level APIs designed to support digital advertising and measurement without the cross-site tracking that third-party cookies enabled. The premise is straightforward: third-party cookies allowed advertisers to follow individuals from site to site, building detailed behavioral profiles. The Privacy Sandbox was Google's proposed replacement in Chrome, a way to keep advertising functional while moving the sensitive computation inside the browser, where it can be constrained.

Status in 2026: Google dropped its plan to phase out third-party cookies in Chrome, and in October 2025 announced it would retire most Privacy Sandbox APIs, including the Topics API. Chrome still supports third-party cookies by default. The consent principles below still apply to any interest-based advertising technology.

Rather than letting external scripts read a global identifier, the Sandbox APIs let the browser itself perform tasks like interest categorization, remarketing auctions, and conversion measurement, exposing only aggregated or coarse results to advertisers. For website owners, this would have been a structural change in how online advertising works, and it sat right at the intersection of advertising technology and privacy compliance. This guide focuses on the most discussed component, the Topics API, and what the whole initiative means for your consent strategy.

Why Third-Party Cookies Came Under Pressure

To understand the Sandbox, you have to understand the problem it addresses. For two decades, third-party cookies were the backbone of interest-based advertising. A tracking pixel on thousands of sites could read the same cookie, stitch together a browsing history, and target ads accordingly. That same mechanism made mass cross-site surveillance trivial, which is exactly what modern privacy law and browser makers set out to curb.

Safari and Firefox block third-party cookies by default, while Chrome, after years of planning their removal, kept them. We explore the analytics and measurement side of this shift in our guide on first-party cookieless tracking. The Privacy Sandbox was Google's advertising-specific answer to the same question: if you cannot follow a user around the web, how do you still serve relevant ads and measure whether they worked?

How the Topics API Works

The Topics API was the Sandbox's approach to interest-based advertising. Instead of an advertiser reconstructing your interests by tracking every site you visit, the browser does the categorization locally and shares only a few high-level interest labels.

Mechanically, it works like this. As you browse, your browser examines the sites you visit and, on its own device, maps them to a curated list of human-readable interest categories, things like "fitness" or "travel." Each period, the browser computes a small number of top topics for you. When you visit a participating site, that site's advertising code can ask the browser for a handful of these topics, and the browser returns a limited selection, often mixing in a random topic to provide deniability.

Several deliberate constraints make this less invasive than cookie tracking. The taxonomy is curated to exclude sensitive categories. The topics are coarse rather than a precise profile. They expire after a few weeks so interests do not accumulate indefinitely. And crucially, the raw browsing history never leaves the device, only the distilled topic labels do. The intent is to deliver "roughly relevant" advertising without exposing the granular behavioral trail that cookies leaked.

The Other Sandbox APIs in Brief

Topics is the headline, but the Privacy Sandbox is a family of APIs, each targeting a use case that third-party cookies previously served:

  • Protected Audience API handles remarketing and custom audiences. The auction to decide which remarketing ad to show runs inside the browser, so an advertiser can re-engage a past visitor without learning their cross-site identity.
  • Attribution Reporting API handles conversion measurement. It links an ad click or view to a later conversion and returns aggregated or noised reports, rather than letting advertisers join the two events at the individual level.
  • Private Aggregation and Shared Storage provide privacy-preserving ways to produce aggregate insights across sites without exposing individual users.

The common thread is moving computation into the browser and releasing only aggregated, noised, or coarse outputs. You can follow the technical specifications and timelines on the official Privacy Sandbox site.

This is the most important and most misunderstood question. The short answer is no. The Privacy Sandbox reduces the privacy harm of certain advertising functions, but it does not automatically make them exempt from consent law, particularly in Europe.

Under the GDPR and the ePrivacy regime, the obligation to obtain consent attaches to storing or accessing information on a user's device and to processing personal data for advertising purposes. Sandbox APIs still involve the browser storing interest data and advertising systems acting on it. Whether a given API call requires consent depends on the legal analysis, but the safe and widely held position is that interest-based advertising features, including Topics and Protected Audience, should be gated behind the same affirmative consent you already collect for marketing cookies.

In practice this means your consent banner remains essential. If a user declines marketing consent, you should suppress Sandbox-based advertising features just as you would suppress traditional ad cookies. The mechanism changed; the duty to ask did not. For how denial signals propagate, see our guide on Google Consent Mode v2, and for honoring browser-level opt-outs, our guide on Global Privacy Control.

What This Means for Website Owners

The Privacy Sandbox changes the plumbing of advertising, but the strategic priorities for a privacy-conscious site stay remarkably consistent. A few practical implications stand out.

Your first-party data becomes more valuable

As cross-site signals weaken, the data you collect directly from your own users, with their consent, grows in importance. Investing in a clean, consented first-party data foundation is the single most durable response to the cookieless transition.

Consent infrastructure must keep pace

Your consent management must be able to gate not just legacy tags but any newer browser-based advertising features. A consent system that only knows how to block old-style cookies will quietly let new advertising APIs run unchecked. Pairing consent with server-side enforcement gives you a control point that does not depend on the specific advertising technology in play.

Transparency expectations rise, not fall

Users and regulators increasingly expect a clear account of how advertising decisions are made. Even with privacy-preserving APIs, your privacy notice should explain that interest-based advertising occurs and how users can opt out, both through your banner and through their browser's own privacy controls.

How to Prepare

You do not need to re-architect your stack overnight, but a few deliberate steps position you well as advertising technology changes:

  1. Audit what you currently rely on. Identify which of your advertising and measurement functions depend on third-party cookies today. A cookie scan is the starting point for that inventory.
  2. Confirm your consent gating covers them. Make sure declining marketing consent actually prevents any browser-based advertising features from running, not just classic cookies.
  3. Strengthen first-party data collection. Build consented, well-documented first-party data so you are less dependent on any cross-site mechanism, old or new.
  4. Watch performance. New advertising scripts can affect page speed; keep an eye on your Core Web Vitals as you adopt them.

The Bigger Picture

The Privacy Sandbox represented a genuine attempt to reconcile two forces that have been in tension for years: an advertising-funded web and a growing public demand for privacy. Google has since stepped back from it, and third-party cookies remain available in Chrome.

For website owners, the winning posture is not to bet everything on any single API, but to build an advertising and analytics practice that is privacy-respecting by design: consented first-party data at the core, robust consent enforcement around it, and transparency with users throughout. Sites built that way will adapt smoothly whatever specific technology prevails, because they are aligned with the underlying trend rather than fighting it.

5 min read

TCF and Google Additional Consent Explained

Google runs ad tech partners that aren't on the IAB Global Vendor List, so TCF alone can't signal consent for them. The Additional Consent (AC) string fills the gap. Here's the format and how a CMP produces it.

5 min read

Google's Certified CMP Requirement for AdSense, Ad Manager and AdMob

If you serve personalised ads on your site or app in the EEA, UK or Switzerland through Google AdSense, Ad Manager or AdMob, Google requires a certified CMP integrated with the IAB TCF. Here's what that means, the enforcement dates, and the revenue cost of ignoring it.

9 min read

TCF v2.4: What Changed for Publishers and CMPs

TCF v2.4 adds standard explanation texts and illustrations to the Global Vendor List, renames Special Feature 2, updates TCF Policies to v5.0.b, and introduces multi-device consent provisions. Required on web since 23 October 2026; apps and CTV by 23 February 2027.

6 min read

Is Your Analytics Vendor a Controller or Processor?

When you run Google Analytics, is Google acting on your instructions or its own? The answer decides who's liable, what contract you need, and whether the setup is even lawful. It varies by vendor, and sometimes by a single checkbox.