Tracking and consent: pixels, conversion APIs and Consent Mode v2
Ads platforms optimise toward the conversions you report back to them. If tracking is broken, the algorithm learns from noise and your reports lie. If tracking ignores consent, you break privacy law. This lesson shows how to get both right: measure what you need, with the consent you need.
The building blocks
1. Platform tags (pixels). A small script from Google (the Google tag), Meta (Meta Pixel), TikTok (TikTok Pixel) or LinkedIn (Insight Tag) on your site. It sees page views and events such as AddToCart, Purchase or Lead, and sends them to the platform with a cookie or click ID.
2. Server-side conversion APIs. Instead of (or next to) the browser, your server sends the conversion: Meta Conversions API, Google enhanced conversions and offline conversion imports, TikTok Events API, LinkedIn Conversions API. They are more robust against ad blockers and browser restrictions, but they are still processing of personal data, so consent rules still apply.
3. UTM parameters. Tags you add to your ad URLs, like ?utm_source=meta&utm_medium=paid_social&utm_campaign=dogbed_test1. Your own analytics then sees where visitors came from, independent of what the ad platform claims.
4. Discount codes per channel. Simple and privacy-friendly: PAWSMETA10 only in Meta ads, PAWSGOOGLE10 only on Google. Every order with that code is clearly from that channel. Not complete (people forget codes), but a useful cross-check.
5. Your own records. Orders in your shop, trials in your app, buyers in your course platform. This is the truth that ad dashboards must be compared with.
Always use one naming convention for UTMs and campaign names, for example platform_goal_product_test-number. In three months you will thank yourself when you compare channels.
What to track for each business
| Business | Primary conversion | Secondary signals | Value to send |
|---|---|---|---|
| Paws & Co | Purchase | Add to cart, start checkout | Order value excl. VAT (or better: contribution) |
| Bookwise | Trial started | Sign-up, first booking created (activation), paid | Fixed value per trial (e.g. €31) or per paid customer |
| GreenThumb Academy | Lead (guide download) | Purchase of the course | Lead: none or a small fixed value; purchase: price excl. VAT |
Sending margin-based values instead of revenue is an advanced but powerful move: the algorithm then chases profit, not turnover. A €20 product with €12 margin beats a €40 product with €6 margin. Start with revenue excl. VAT; move to margin when your setup is stable.
Consent: the rule you cannot skip
In the EU (and EEA), placing non-essential cookies or reading information from a device needs prior consent under the ePrivacy rules. Processing the resulting personal data for advertising needs a legal basis under the GDPR, which for ad tracking is in practice consent. That means:
- No marketing pixels fire before the visitor agrees.
- "Reject" must be as easy as "Accept".
- The banner must actually control the tags, not just look like it does.
- You document which tools you use in your privacy and cookie policy.
Consent and cookie rules are EU-wide in principle, but each country's regulator enforces and interprets them. Check guidance from your regulator, for example the Autoriteit Persoonsgegevens in the Netherlands, UODO in Poland, the ICO in the UK (UK GDPR and PECR) or the data protection authority of your German state (and the TDDDG). Outside Europe, laws such as California's CCPA/CPRA have their own opt-out rules. See also the course Legal and compliance for online business.
Google Consent Mode v2
Consent Mode is Google's way of letting your cookie banner tell Google tags what the visitor allowed. Version 2 has four main signals:
| Signal | Controls |
|---|---|
ad_storage | Cookies for advertising |
analytics_storage | Cookies for analytics |
ad_user_data | Whether user data may be sent to Google for advertising |
ad_personalization | Whether data may be used for personalised advertising (remarketing) |
The last two were added in v2. Google requires advertisers who use its measurement and personalisation features for users in the EEA to send these consent signals; without them, features such as remarketing audiences and some conversion measurement stop working for EEA traffic.
There are two implementations:
- Basic consent mode: Google tags don't load at all until the visitor consents. Simple and strict. Google can only model conversions in a general way.
- Advanced consent mode: Google tags load with consent set to "denied" by default and send cookieless pings without identifiers; when the visitor consents, full measurement starts. Google uses the pings for conversion modelling. Whether advanced mode fits your legal position is a question for your privacy advisor and regulator guidance.

To implement Consent Mode, you usually use a consent management platform (CMP) that supports it. Google keeps a list of certified CMP partners for the EEA and UK; check the current list in Google's help pages. Read the official overview at Google's consent mode documentation.
Meta, TikTok and LinkedIn do not read Google's consent signals. Your CMP must block or release each platform's tags separately based on the visitor's choice. Test it: reject everything, then check (in your browser's developer tools or a tag inspector extension) that no Meta, TikTok or LinkedIn requests are sent.
What consent does to your numbers
If 40% of your visitors reject marketing cookies, your platforms see fewer conversions than really happen. Platforms partly fill the gap with modelling. Two consequences:
- Your ad dashboards and your shop will never match exactly. That is expected. Compare trends and ratios, not individual orders.
- Your own order data becomes the referee. If spend goes up 50% and real orders don't move, no dashboard ROAS should convince you otherwise.
This is why we use MER (total revenue ÷ total ad spend) and incrementality tests in module 4.
Tracking on the platform
Your shop on the platform has its own analytics: get_shop_analytics reports the shop's visits and sales summaries. For apps you run on my-app.engineer (for example Bookwise's sign-up site), Pulse counts visits, sign-ups and activations first-party in your own cluster, without a third-party script. pulse_channels and pulse_funnel show where visitors came from and how far they got.
That gives you a reference that does not depend on ad cookies. A BIAB shop has no field for your own scripts: under Settings → SEO you can only enter fixed IDs for Google Analytics, AdSense, Search Console and Merchant Center, so Meta, TikTok or LinkedIn pixels and your own CMP cannot be added there. The shop shows a cookie banner with fixed platform text, but Google Analytics and AdSense currently load without waiting for consent, so keep that in mind before you enter those IDs. In an app you build yourself, you control the code; do not add tags that fire without consent.
For my app [app name] on my-app.engineer, call pulse_list_apps and then pulse_channels and pulse_funnel for the last 30 days. Show me: visits per channel, sign-ups per channel and the activation rate per channel. Then tell me which UTM sources appear and whether my paid campaigns (utm_medium=paid_social or cpc) are visible as separate channels. Change nothing.
I am setting up conversion tracking for [business] on [platforms]. My primary conversion is [event], secondary events are [events]. Write me a tracking plan as a table: event name per platform (Google, Meta, TikTok, LinkedIn as relevant), when it fires, which value it sends (excl. VAT), which consent category it belongs to, and how I test that it does NOT fire after a visitor rejects cookies. Add a UTM naming convention and a list of channel discount codes. Point out anything that needs advice from a privacy professional.
A 15-minute tracking test
Before you launch any campaign:
- Open your site in a private window. Reject all cookies. Check that no marketing tags fire.
- Accept all cookies. Check that the platform's test tool (Meta Events Manager "Test events", Google Tag Assistant, TikTok Pixel Helper) sees your page view.
- Place a real test order or sign-up (refund it afterwards). Check that the conversion arrives once, with the right value and currency.
- Check that your UTM link shows up correctly in your own analytics.
- Write down the date: from this date, your data is trustworthy.
Write your tracking plan (events, values, consent categories, UTM convention, channel codes) and run the 15-minute tracking test on your site. Do not launch a campaign until test 1 (no tags after rejecting) and test 3 (one purchase or sign-up arrives once with the right value) both pass.
This course is general information, not personal legal, tax or financial advice. Rules, amounts and dates change: check the official source for your country before you act.