Skip to content
BernardoViana

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.

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.

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.

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.

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.

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.

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.

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.

  1. Load the site in a private window so no earlier choice is stored.
  2. In Tag Assistant or GTM preview, check that a consent default event appears before the first Google tag fires.
  3. Refuse cookies and confirm the four consent types show as denied.
  4. Reload, accept cookies and confirm they change to granted.
  5. 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.