Google Ads Tracking Template: Examples and Setup (2026)

October 19, 2026
11 mins read
Google Ads Tracking Template: Examples and Setup (2026)

Direct answer

A Google Ads tracking template is a URL pattern, such as {lpurl}?campaign={campaignid}&device={device}, that Google fills in at click time so a tracker or your own analytics receives details about each click. Add it under Admin, Account settings, Tracking, or per campaign. It must contain {lpurl}, your final URL. Google calls it an advanced option for third-party or in-house click tracking; for plain UTM tags, use the Final URL suffix and keep auto-tagging on.

Most people looking for a tracking template want one that works. Below are copy-paste examples first, then where to add a template in Google Ads, how Google combines it with your final URL, and the mistakes that break tracking or trigger destination mismatch disapprovals. Every rule here was checked against Google Ads Help in November 2026.

Replace tracker.example.com with your own tracker's domain. Google fills in each placeholder in braces at click time.

What you wantTracking template
The simplest valid template{lpurl}
Campaign, ad group and keyword IDs{lpurl}?campaign={campaignid}&adgroup={adgroupid}&kw={keyword}
Match type and device{lpurl}?matchtype={matchtype}&device={device}
Network and click location{lpurl}?network={network}&loc={loc_physical_ms}
A readable campaign name (custom parameter){lpurl}?campaign_name={_campaign}
A third-party click trackerhttps://tracker.example.com/click?cid={campaignid}&url={lpurl}
Two trackers in a rowhttps://tracker.example.com/click?cid={campaignid}&url={lpurl+2}

For plain UTM tags, skip the template and put them in the Final URL suffix instead, without a leading question mark:

utm_source=google&utm_medium=cpc&utm_campaign=fall_sale

Three details from Google's ValueTrack documentation[1] decide whether these work. {lpurl} is inserted unescaped only when it sits at the start of the template and escaped anywhere else, which is what a tracker's url= parameter needs. {lpurl+2} escapes it twice, for chains of two trackers. And {keyword} is blank for keywordless matches such as AI Max for Search, Dynamic Search Ads and Performance Max.

Shopping has its own rules. Google’s Shopping tracking page[2] notes that only a small group of click measurement providers are approved to measure certain ad interaction events on Google-hosted properties, including local inventory ads. Read it before adding a tracker to a feed-based campaign.

What a tracking template does#

Without a template, Google only knows that your ad was clicked. With one, Google builds a tracking URL from your template for every click, replacing placeholders with real values, and calls it so your tracker can record the click. The template can point at a tracker first or simply add parameters after your final URL.

Diagram: Google Ads turns the template {lpurl}?campaign={campaignid}&kw={keyword}&device={device} into a tracking URL for a mobile click, calls it in the background under parallel tracking while the landing page loads, and appends a Final URL suffix with UTM tags to the landing page

According to the Google Ads Help page on tracking templates[3], the template swaps placeholders like {lpurl} (your final URL), ValueTrack parameters such as {campaignid} or {keyword}, and your own custom parameters for the actual values when someone clicks.

You can set a template at the account, campaign, ad group, ad or keyword level. The most specific one wins, in this order: keyword, ad, ad group, campaign, account. If you set one on the account and another on a campaign, the campaign’s template applies to that campaign’s ads, and the Tracking template source column shows which one an ad is using.

Do you need a tracking template at all?#

Probably not, if your goal is to see which campaign produced which conversion. Google’s own reporting covers that, and GA4 reads the Google click ID that auto-tagging adds. Google describes templates as relevant mainly for advertisers who depend on third-party click trackers or their own click tracking.

Use this quick test:

Your situationWhat to use
You only report inside Google Ads and GA4Auto-tagging. No template needed.
You want UTM parameters on landing page URLs for cross-channel reportsFinal URL suffix (see below)
A third-party click tracker or ad server must see each clickTracking template
You pass internal IDs, product feed values or nonstandard data to a CRMTracking template plus custom parameters
You manage hundreds of ads and want one rule instead of hundreds of editsAccount-level template or suffix

Auto-tagging and templates work together#

Auto-tagging appends a GCLID (Google Click Identifier) to your destination URLs automatically. WhatConverts explains[4] that you can run both: auto-tagging handles core attribution, and the template handles extra data a third-party tool needs. Turning auto-tagging off to “clean up” URLs is a common way to lose conversion data.

Tracking template vs. final URL suffix#

This is the choice that trips up most people. Both add parameters, but they end up in different places.

  • Tracking template: builds the tracking URL Google calls for each click. It can point at a tracker, and at the account, campaign and ad group level it must include a final URL placeholder.
  • Final URL suffix: only appends parameters to the end of your landing page URL. It cannot send a click through another domain.

The difference comes from parallel tracking, which sends visitors straight from your ad to the final URL while click measurement happens in the background. Google Ads Help[5] says it is mandatory for Search, Shopping, Display, Video and Performance Max campaigns. So parameters you put after {lpurl} in a template reach your tracker, while the suffix reaches the landing page and your analytics. GA Connector’s write-up[6] notes that this is why the older approach of stuffing UTMs into a template stopped working reliably.

A practical rule: if the parameters are only for your own analytics, use the suffix. If a third party must receive the click, use the template.

Where to add a tracking template in Google Ads#

At the account level, so every campaign inherits it:

  1. Click Admin, then Account settings.
  2. Open the Tracking section.
  3. Paste your template into Tracking template and, if you use UTM tags, put them in Final URL suffix.
  4. Click Test to check that your final URL and the template combine into a working landing page URL.
  5. Click Save.

For a single campaign, go to Campaigns, open the Settings tab and click the pencil icon in the Tracking template column, as described in Google's Final URL suffix guide[7]. Changes can take 24 to 48 hours to reach live ads.

Building your own template step by step#

1. Start with the final URL placeholder#

Google’s ValueTrack help page[1] states that templates at the account, campaign or ad group level must include a parameter that inserts your final URL, such as {lpurl}. Leave it out and the landing page URL breaks. Dynamic Search Ads and auto-targets require it at every level.

The simplest valid template is just:

{lpurl}

2. Add parameters with the right separator#

Write the template as if your final URL had no query string: {lpurl}?name=value. If a final URL already contains a question mark, Google Ads replaces the question mark in your template with an ampersand (or its escaped form), so the URL stays valid. Join several parameters with an ampersand (&), for example {lpurl}?matchtype={matchtype}&device={device}.

3. Pick ValueTrack parameters that answer a real question#

The common ones, all documented on Google’s ValueTrack page:

ParameterWhat it returns
{campaignid}The campaign ID
{adgroupid}The ad group ID
{keyword}The keyword that matched (Search); blank for keywordless matches
{creative}The ad ID
{matchtype}e (exact), p (phrase), b (broad) or a (AI Max keywordless)
{device}m (mobile), t (tablet) or c (computer)
{network}Where the click came from, such as g (Google search), s (search partners) or d (Display Network)
{loc_physical_ms}The ID of the location where the click happened

Check the current list before you build, since Google updates it. Do not add parameters just because they exist. Each one should feed a report someone will read.

4. Use custom parameters for readable names#

Google gives you IDs for campaigns and ad groups, not names. Adequate’s guide[8] recommends custom parameters rather than typing names into URLs by hand. Per Google's custom parameter rules[9], a name is up to 16 letters or numbers, a value up to 250 characters, and you can set up to 8 per level on campaigns, ad groups, ads, keywords and sitelinks, but not on the account. The most specific value wins.

Example:

{lpurl}?campaign_name={_campaign}&kw={keyword}

Then on each campaign, set the custom parameter {_campaign} to a value such as fall_sale_2026.

5. Test before you scale#

Use the Test button next to the template first. Changes can take 24 to 48 hours to reach live ads, per Google’s documentation. After that, click a live ad from a private browser window and check two things: the landing page loads with your suffix, and your tracker logged the click with the right values. Check a mobile click too, since {device} changes.

The mistakes that cause disapprovals and lost data#

Destination mismatch#

Google’s destination mismatch policy[10] lists two related violations: redirects from the final URL that take users to a different domain (unless approved), and a tracking template that doesn’t lead to the same content as the final URL. Violations don’t lead to account suspension without prior warning. If you put third-party tracking parameters directly in a final URL, Google asks you to add {ignore} before them.

Practical consequence: the final landing domain, the display URL domain and the end of any redirect chain should all agree.

Redirects that are not HTTPS#

Google Ads Help says to use https:// in the template. With parallel tracking, Google makes the first tracking call over HTTPS even if you typed http://, but every redirect after it must be HTTPS and server-side, or click measurement breaks.

Forgetting parallel tracking#

A tracker that only works when it sits in the click path, before the page renders, can fail under parallel tracking. Ask your tracker vendor whether it supports it, and use the final URL suffix for plain UTMs.

Every redirect hop costs time#

Parallel tracking matters because every redirect in front of the landing page is a round trip the visitor waits for. In our redirect speed benchmark[11], which measures 25 redirect providers from Washington, D.C., Frankfurt and Tokyo, the median time to first byte of a single redirect ranged from 11 ms to 755 ms between October 13 and 20, 2026. A click that passes through a tracker and then a short link pays that cost twice before the page starts loading.

Median time to first byte of each provider’s redirects, averaged over Washington, D.C., Frankfurt and Tokyo, October 13–20, 2026. RedirHub redirect speed benchmark, CC BY 4.0.
ProviderMedian time to first byte
Fastly11 ms
RedirHub16 ms
Google38 ms
Bitly118 ms
BL.INK366 ms

To see what your own chain costs, paste the tracking URL into the redirect speed test: it lists every hop with its status code and time to first byte from the same three locations.

Hardcoding names#

Typing campaign names into each URL creates drift. Rename a campaign and your reports split in two. Custom parameters keep the name in one place.

Over-engineering#

Practitioners often pile on UTMs that auto-tagging and the suffix already cover. If a parameter is not used in a report, remove it.

Our perspective: the redirect layer is part of your tracking#

We build redirect and link infrastructure, so we see tracking templates from the other side: what happens to the click after Google hands it off. Three things stand out to us.

First, the domain in the chain matters. Google’s destination mismatch policy looks at where redirects end, so a redirect on your own domain, with HTTPS managed for you, is easier to keep consistent than a link on a shared shortener you do not control.

Second, parameters die in redirects more often than in templates. If your final URL suffix or template adds UTMs and a redirect later drops the query string, your analytics show direct traffic. Our guide on preserving UTM parameters through redirects covers how to check for that.

Our own traffic shows how often it happens. In a 12-hour sample of RedirHub redirect traffic in October 2026, about 7 in 10 visitor clicks that arrived carrying UTM parameters reached the destination without them (RedirHub platform data, October 2026). Bots are left out, and so are the very largest accounts, so that no single customer skews the share. Whether a redirect passes the query string on is a setting: query parameter forwarding is included on Core, Pro and Enterprise, so check it on every campaign link before launch.

Redirect tracking practices: use a stable branded domain, preserve UTMs through redirects and change destinations behind stable URLs; avoid uncontrolled shared shorteners, redirects that drop the query string and editing ads for every destination change

Third, ad destinations change. A landing page gets replaced, a product sells out, a campaign ends. Pointing ads at a stable URL on your own domain, and changing the destination behind it, avoids editing and re-approving ads each time. We cover that approach in paid ad redirect links.

A template is a good tool when a tracker truly needs the click. Otherwise, keep the setup simple and make sure nothing downstream breaks the data you already collect.

Keeping ad destinations under your control#

If your ads, emails or printed materials send people to URLs you cannot change later, every landing page swap means editing and re-approving ads. RedirHub runs redirects and branded links on your own domain, such as go.mybrand.com/sale, so the URL in the ad stays the same while the destination behind it changes. The same links work on print as dynamic QR codes, and you can analyze redirect traffic and clicks in one place or A/B test landing pages with redirects.

What that gives an ad link:

What an ad link needsWhat RedirHub does
A URL that outlives landing pagesChange the destination behind go.mybrand.com/sale at any time; the URL in the ad stays the same
HTTPS on every hopCertificates issued and renewed automatically, for root and www
UTM tags and click IDs keptQuery parameter forwarding on every plan, plus UTM tags you can set per link
A fast first responseServed from 130 global edge locations (PoPs), close to each visitor
The right redirect type301, 302, 307, 308 and frame redirects
Click data you can trustClicks and unique visitors with bots filtered out, per link and per domain

Your DNS and email stay where they are: you only point the hostname you use for links at RedirHub, with no nameserver switch, and automatic HTTPS covers every link on it.

When it isn’t worth it: if your ads point straight at landing pages on your own site and auto-tagging plus a Final URL suffix cover your reporting, you don’t need a redirect layer at all. If you do, plans start at $49/month (Core); Pro comes with a 14-day free trial.

A short setup checklist#

  1. Confirm auto-tagging is on in your account settings.
  2. Decide whether you need a template or whether a final URL suffix covers your UTMs.
  3. If you need a template, start it with {lpurl} (or another final URL placeholder) and use HTTPS for every redirect.
  4. Define readable names with custom parameters at the campaign or ad group level.
  5. Run Google’s Test, then check a real click in your analytics on desktop and mobile.
  6. Wait 24 to 48 hours for changes to take effect before judging results.
  7. Review monthly: remove parameters nobody uses, and monitor your redirects, for example with redirect monitoring and destination health.

How fast is your tracking chain?

Paste a tracking or redirect URL and see every hop with its status code and time to first byte from Washington, D.C., Frankfurt and Tokyo. Free, no sign-up.

Test my redirect

Sources

  1. [1]Set up tracking with ValueTrack parameters, Google Ads Help
  2. [2]Set up tracking for a Shopping campaign, Google Ads Help
  3. [3]Set up your tracking template, Google Ads Help
  4. [4]Set Up ValueTrack and Auto-Tagging for Google Ads, WhatConverts
  5. [5]About tracking in Google Ads, Google Ads Help
  6. [6]How to Add UTM Parameters to Google Ads, GA Connector
  7. [7]Add a Final URL suffix, Google Ads Help
  8. [8]UTMs for Google Ads Campaigns, Adequate
  9. [9]Create custom parameters for advanced tracking, Google Ads Help
  10. [10]Destination mismatch, Advertising Policies Help
  11. [11]RedirHub redirect speed benchmark, October 13–20, 2026

Frequently asked questions

Not for most accounts. Google positions templates as an advanced feature for people who use a third-party click tracker or their own click tracking. If you only need campaign and conversion reporting, auto-tagging with Google Ads and GA4 is enough.

A template defines the tracking URL Google calls for each click and can route through another domain. A suffix only adds parameters to the end of your landing page URL. For plain UTM parameters, the suffix is the cleaner choice.

{lpurl}?campaign={campaignid}&adgroup={adgroupid}&kw={keyword} passes the campaign ID, ad group ID and matched keyword. For a third-party tracker, use a pattern like https://tracker.example.com/click?cid={campaignid}&url={lpurl}. For plain UTM tags, use the Final URL suffix instead.

The most specific one: keyword, then ad, ad group, campaign and finally account. The Tracking template source column shows which level an ad is using.

Usually because it is missing {lpurl} or another final URL parameter, which Google requires in templates at the account, campaign and ad group level. Also check that every redirect after the first tracking call uses HTTPS.

Google says changes to tracking templates can take 24 to 48 hours to show in live ads, so test with the Test button first and judge results after that window.

Leo Astarothman

Leo Astarothman is the Brand & Content Lead at RedirHub, where he shapes the company's visual identity, educational content, product experiences, and marketing strategies. He also specializes in system design. Simplifying complex redirect infrastructure into practical resources, product experiences, and campaigns that help businesses understand and adopt modern redirect management.