Customers & growth · Performance marketing
Privacy-compliant tracking
Best for Startup to Enterprise
Use it when
Analytics and ad tags fire on your site, and you need them to follow each visitor's consent choice and send vendors only the data you decided to share.
Skip it when
- You do not yet know what personal data you collect or which privacy rules apply. Run Data privacy framework first.
- You are still weighing whether to measure with cookies at all. Settle it with Cookie-based vs cookieless tracking first.
- You still need to choose which events count as conversions and where they go. Use Conversion tracking setup.
- You need opt-ins and preference records for marketing email and texts. Use Consent management framework.
What to apply first and what to use instead are listed below.
Approaches
Block tags until consent
Tags stay unloaded until the visitor uses the consent banner, and nothing is sent if they decline.
- Pro No data reaches the vendor before the visitor chooses.
- Con Declined visitors leave no signal, so conversion modeling rests on a general model.
Load tags with cookieless pings
Tags load with consent denied by default and send pings without cookies until the visitor grants consent.
- Pro The pings support conversion modeling built for your own account.
- Con Some data reaches the vendor even from visitors who decline.
Consent-exempt first-party analytics
An analytics tool set up to meet a regulator's exemption runs for all visitors, who are told and can object.
- Pro You keep audience figures for every visitor in markets that allow the exemption.
- Con The conditions are strict and vary by country, most large analytics products do not qualify, and features are limited.
Inputs
- Tag inventoryEvery tag, pixel and SDK on the site or app, with vendor, purpose and cookies set, from the tag manager and a browser check of live pages.
- Consent rules by marketWhich purposes need opt-in in each country you serve, from legal and your Data privacy framework record.
- Consent bannerThe categories it offers, how it loads and where it stores each choice, from the consent platform settings.
- Data each vendor needsThe event parameters each analytics and ad platform must receive, from the conversion register.
- Server containerOptionalA server tagging environment on a subdomain of your own site, from engineering.
Steps
- Map every tag in the inventory to a purpose and to the consent types it needs, such as analytics storage, ad storage, ad user data and ad personalization.
- Set default consent states by region before any tag fires, denied where opt-in rules apply, and give an asynchronous banner a wait time so its update lands first.
- Send a consent update the moment the visitor chooses, store the choice in a first-party cookie or local storage, reapply it on every page and let visitors withdraw from any page.
- Decide for each analytics tool whether it waits for consent or runs under an exemption, and configure exempt tools to every condition the regulator sets.
- Route vendor tags through a server container on your own domain where you need control, and set rules that pass each vendor only its listed parameters.
- Test every region with accept, decline and withdraw, and confirm in the tag debugging tools that no tag sets cookies or sends data beyond what each choice allows.
Output
A tracking consent register, with the live tag and consent configuration it describes and a dated test log.
- Tag and vendor
- Purpose and consent types
- Default state by region
- Behavior when declined (blocked, cookieless or exempt)
- Parameters sent and parameters excluded
- Route (browser or server container)
- Last test date and result
Done when
- Every tag in the inventory maps to consent types or to a written exemption with its conditions met.
- In each opt-in region, tests show no non-exempt tag sets a cookie or sends a hit before the visitor chooses.
- A stored choice is applied on later pages, and withdrawal works from every page.
- Each vendor receives only the parameters listed for it in the register.
- The test log covers every region and choice since the last tag or banner release.
Measure
Track consent rate by region and the sessions and conversions each platform records, weekly for eight weeks after launch and after every tag or banner release. It worked when tests keep passing and recorded conversions settle at a level your consent rates explain. Judge the drop against your own figures from before the change, by region.
Hypothetical example
Fernway, an outdoor gear shop selling in France and the United States, finds 14 tags, three of them firing before the banner loads. It sets denied defaults for European visitors and granted defaults elsewhere, moves the default command above every tag and stores choices in a first-party cookie. Its own analytics tool is set up to the French exemption, with truncated IP addresses and 13-month cookies. The ad tags load with cookieless pings until consent. A server container on its own subdomain strips email and phone fields before events reach the ad platforms. Tests in both countries with accept, decline and withdraw all pass, and the register lists every tag.
Common mistakes
- Setting the default consent state after tags load. Put the default command first on every page.
- Sending every event parameter to every vendor. Allow only the parameters each vendor needs and exclude the rest.
- Relying on the consent tool to remember choices. Store each choice yourself and reapply it on every page.
- Assuming a large analytics product is exempt once you trim its settings. Check that the product qualifies and meets every condition in each country.
- Testing only the accept path. Test decline and withdrawal in every region too.
Sources
- Set up consent mode on websites · Google
- Consent mode overview · Google
- An introduction to server-side tagging · Google
Show all 5 sources
By company stage
Apply first
- Cookie-based vs cookieless trackingCustomers & growth · Marketing analytics
First-party and server-side tracking are responses to the cookie phase-out; you need to know what changed.
- Data privacy frameworkCustomers & growth · Marketing operations
Compliant tracking has to satisfy consent and privacy rules.
Use instead
- Data privacy framework
You do not yet know what personal data you collect or which privacy rules apply. Run Data privacy framework first.
- Cookie-based vs cookieless tracking
You are still weighing whether to measure with cookies at all. Settle it with Cookie-based vs cookieless tracking first.
- Conversion tracking setup
You still need to choose which events count as conversions and where they go. Use Conversion tracking setup.
- Consent management framework
You need opt-ins and preference records for marketing email and texts. Use Consent management framework.
Where it sits
Open the performance marketing roadmapRecommended resources
No sponsored resources on this framework yet. Sponsored listings would be labelled here, never in search.
Progress is not saved until you have an account. Create a free account