Ad Tracking and Consent Mode: The Setup Every Advertiser Needs
By Bernardo Viana · Updated November 24, 2026
Ad tracking means recording every lead or sale and the ad that produced it, so the platforms can optimize toward real results and you can see what is worth paying for. A working setup combines a tag manager, an analytics property, a conversion action in each ad platform, labeled links and, where privacy laws apply, consent signals. This page explains how the pieces fit together and links to the step by step guide for each one.
Why does tracking decide whether ads work?
Google Ads, Meta Ads and TikTok Ads all use automated bidding. The system looks at which clicks turned into conversions and goes looking for more people like them. When tracking is missing, the system has nothing to learn from. When it counts the wrong thing, such as a page view, it gets very good at buying the wrong thing.
Good tracking also protects your budget decisions. Without it, the only signal is "the phone rang more this month", which can't tell you which campaign, keyword or ad deserves more money.
- Clicks but No Sales: Why Your Ads Aren't Converting
Getting plenty of clicks but no sales? Here is how to diagnose your paid campaigns and fix the disconnect.
What should a small business track?
Track the actions that are worth money: a submitted lead form, a phone call from the site or from an ad, a booked appointment, a completed purchase. Mark these as key events in GA4 and import or create them as conversions in Google Ads. Secondary actions, such as viewing the pricing page, can be recorded for analysis but should not be the goal the campaigns optimize toward.
- How to Create GA4 Key Events Without Changing Code
Learn how to set up ga4 key events directly inside your analytics interface without touching your website code.
- How to set up google ads conversion tracking
Learn how to configure Google Ads conversion tracking step by step to measure sales, leads, and phone calls accurately.
Step 1: Install Google Tag Manager
Google Tag Manager (GTM) is a container that holds all your tracking tags. You install its code on the site once, and after that you add, change or remove tags from the GTM interface without editing the site again. It also has a preview mode that shows which tags fired on each page, which makes testing much easier.
- How to Install Google Tag Manager on Your Website
Learn how to install Google Tag Manager properly on your website with this step-by-step guide by paid media specialist Bernardo Viana.
Step 2: Set up GA4
Google Analytics 4 (GA4) records what visitors do on the site: where they came from, which pages they saw and which key events they completed. Create the property, add the tag through GTM, and confirm data is arriving in the real time report before moving on.
- How to set up Google Analytics 4 from scratch
Learn how to set up Google Analytics 4 (GA4) correctly from scratch, covering accounts, properties, data streams, and tracking tags.
- How to Create GA4 Key Events Without Changing Code
Learn how to set up ga4 key events directly inside your analytics interface without touching your website code.
Step 3: Label every link with UTM parameters
UTM parameters are tags added to the end of a URL (utm_source, utm_medium, utm_campaign) that tell GA4 exactly where a visit came from. Google Ads can tag its own links automatically, but emails, social posts, QR codes and ads on other platforms need UTMs, or their visits end up lumped together as "direct" or "referral" traffic.
- How to Use UTM Parameters to Track Sales
Learn how to use utm parameters properly to see exactly which campaigns drive traffic and sales in Google Analytics.
Step 4: Add the ad platform pixels
Each ad platform needs its own way of receiving conversions. Google Ads uses conversion actions. Meta uses the Meta Pixel and, ideally, the Conversions API. TikTok uses the TikTok Pixel. Install them through GTM so every tag lives in one place, and send the same key events to each platform so their reports are comparable.
- How to Install the TikTok Pixel: A Practical Guide
Learn how to install the TikTok Pixel correctly to track website visitors and measure ad performance for your business.
Step 5: Set up Consent Mode v2
Consent Mode v2 is the way Google tags learn whether a visitor accepted or refused cookies. Your cookie banner sends that choice to the tags, and the tags adjust what they store. For advertisers who reach users in the European Economic Area and the UK, Google requires consent signals to keep using features such as remarketing audiences and conversion measurement for those users.
The setup has two parts: a default consent state that loads before any tag runs, and an update sent by the cookie banner when the visitor makes a choice. Most consent management platforms can send both through Google Tag Manager.
- Google Consent Mode: What It Is and How to Set It Up
Learn what Google Consent Mode is and how to implement it correctly to handle visitor consent without losing valuable measurement data.
How do you check if Consent Mode v2 is working?
Open the site in Google Tag Assistant or in GTM preview mode and look at the consent state before and after you interact with the
cookie banner. The default should load first, and the values for ad_storage, analytics_storage,
ad_user_data and ad_personalization should change when you accept or refuse.
- Load the site in a private window so no earlier choice is stored.
- In Tag Assistant or GTM preview, check that a consent default event appears before the first Google tag fires.
- Refuse cookies and confirm the four consent types show as denied.
- Reload, accept cookies and confirm they change to granted.
- In Google Ads, check the diagnostics for your conversion actions, which report whether consent signals are being received.
A common error is a tag that reads the consent state before the default was set. It usually means the consent default loads too late, after other tags in the container. Moving the default to the earliest trigger in GTM, or to the consent initialization trigger, normally fixes it.
Keep the setup healthy
Tracking breaks quietly. A site redesign removes the GTM snippet, a form plugin changes its thank you page, or a new cookie banner blocks a tag. Check your conversion counts against your own records (form emails, CRM entries, orders) every month, and test the full path again whenever the site changes.
When the numbers in the ad platform and in your records drift apart, start with the troubleshooting guide below. And for how all of this fits into running campaigns, see the Google Ads guide for small businesses.
- Conversions Not Showing in Ads Manager: How to Fix It
Spent money on ads but your dashboard shows zero conversions? Here is how to diagnose and fix the tracking issues causing the gap.
- How to set up google ads conversion tracking
Learn how to configure Google Ads conversion tracking step by step to measure sales, leads, and phone calls accurately.