
What Is a Tracking Template in Google Ads?
Carlos GarciaPublished What Is a Tracking Template in Google Ads?
Most advertisers meet the tracking template the same way: a third-party analytics vendor or an agency asks for one, and a field in Google Ads labeled "Tracking template" turns out to be the place it goes. The field looks simple. What it controls, and what happens when it is filled in wrong, is not.
This guide explains what a tracking template is, how it differs from a final URL and a final URL suffix, where you can set one, how {lpurl} and ValueTrack parameters work inside it, and when you should not use one at all.
It also reports something most guides skip. Google documents tracking templates across at least six help pages and one developer page, and those pages do not always agree with each other. Where they contradict one another, or where none of them answers an obvious question, this article says so rather than guessing.
What Is the Short Answer?
A tracking template is the Google Ads field where you put click-measurement information. Google's own definition is that it is "the field where you'll put tracking information," and that when an ad is clicked, "this information will be added to your final URL to create your landing page URL."
In practice, a tracking template is a URL pattern that wraps your final URL. It usually starts with {lpurl}, a placeholder that Google replaces with the final URL at click time, and then appends parameters that record which campaign, ad group, keyword, device and network produced the click.
The final URL is still where the visitor actually lands. Since parallel tracking became mandatory for most campaign types, the tracking template URL loads in the background while the visitor goes straight to the final URL. The template measures the click; it does not choose the destination.
The most useful thing to know before touching one is that where you set it changes what it costs you. Google says that editing URL options at the account, campaign or ad group level lets you "update your tracking information without resubmitting your ads for approval." Edits at the ad, keyword or sitelink level "still need to go through review."
So the short answer is: a tracking template is a click-measurement wrapper around your final URL, and the safest place to set it is as high in the account as your tracking allows.
Running paid search and want to know whether your organic visibility is pulling its weight too? Get a free audit from SEO Stuff and we will show you where your site stands in Google and in AI answers.
Free audit
Where do you stand in AI search?
A manual SEO + AI search audit of your site: how ChatGPT, Gemini, Perplexity and Claude read and cite it today, and what to fix first. Report within 48 hours, no credit card.
Get my free auditOr have it all done: AI SEO services, $999 once
How Do a Tracking Template, a Final URL and a Final URL Suffix Differ?
Google Ads gives you several URL fields that sound alike and do different jobs. Confusing them is the most common reason a tracking setup breaks, so it is worth being precise about each one before building anything.
The final URL is the landing page. Google's developer documentation describes it as "the actual landing page a user sees after clicking an ad," and adds that it "must not have off-domain redirects." Anything that changes what the page shows belongs here.
The tracking template is the measurement layer. It holds the redirect or parameter pattern your analytics or click-tracking system needs, and Google assembles it with the final URL when the ad is clicked.
The final URL suffix is described as "parameters that will be attached to the end of your landing page URL." It is a lighter-weight option for adding parameters without a redirect, which is why many advertisers now use it for UTM tags instead of a template.
Custom parameters sit alongside all three. Google calls them "an advanced type of URL parameter" and notes that, "unlike ValueTrack parameters, you can choose what values your custom parameters record."
Which field should carry which parameter?
Google's URL parameters page draws one firm line: parameters that modify content "are required to be set in the final URL exclusively." Tracking parameters, including ValueTrack and custom parameters, belong in the tracking template or a custom parameter field.
Where Google's pages disagree
On whether a custom parameter can be referenced in a final URL, the pages split three ways. The developer page says custom parameters "can be referenced in the final URL and/or tracking template." The URL parameters help page implies they belong in the template. The custom parameters page itself does not say either way.
Which Levels Can You Set a Tracking Template At?
Google's main tracking page first lists the levels as "account, campaign, ad group, keyword, or sitelink level." That list leaves out the ad level, yet the same page includes the ad level in both its precedence order and its review rules, so ads clearly support templates too.
Google's setup page goes further and gives setup paths for two levels the main page never names: the asset group in Performance Max campaigns, under "Asset group URL options," and dynamic ad targets. If you only read one help page, you would get an incomplete list.
When templates exist at more than one level, Google says "the most specific template will be used." The order it gives is: "The keyword tracking template is the most specific followed by the ad, ad group, campaign, then account."
What no page states is whether a more specific template replaces a higher one entirely or merges with it. "Will be used" implies replacement, and that is how most practitioners treat it, but Google does not say so in words. Plan on a lower-level template overriding everything above it, and test to confirm.
Sitelinks and asset groups are not placed anywhere in that precedence order. If you set templates on sitelinks as well as at the campaign level, check the result with the Test button rather than assuming which one wins.
How Do You Set Up a Tracking Template, Step by Step?
The steps below follow the order Google's setup page uses. The exact menu labels can shift as the interface changes, so look for the "URL options" section on the level you are editing rather than for a fixed path.
Step 1: Decide the level. Choose the highest level that fits your tracking. An account or campaign template avoids ad review and propagates to everything underneath it, which is why it is the usual default.
Step 2: Open the URL options for that level. At the campaign level this section is labeled "Campaign URL options." Ad groups, ads, keywords, sitelinks and Performance Max asset groups each have their own equivalent.
Step 3: Start the template with a URL insertion parameter. Google says templates at the account, campaign or ad group level "must include a ValueTrack parameter that inserts your final URL," and warns that without one "your landing page URL will break." {lpurl} is the usual choice. Dynamic Search Ads and auto-targets need one at every level.
Step 4: Add your tracking parameters after it. A simple example is {lpurl}?campaign={campaignid}&adgroup={adgroupid}&kw={keyword}. Use HTTPS for any redirect, because Google says "the tracking template URL and all redirect URLs need to be HTTPS to work."
Step 5: Test before you save. Google's Test button "will combine your final URL with any tracking you set up to make sure your ad will lead to a landing page URL." Then allow time: Google says template changes "take 24–48 hours to be reflected in your ads serving."
Tracking every click but unsure how your site performs once visitors arrive? Get a free audit from SEO Stuff and we will check the technical health of the pages your ads point to.
Which ValueTrack Parameters Are Worth Using?
ValueTrack parameters are placeholders that Google replaces with real values at click time. Google lists dozens, but a handful do most of the work in real accounts:
{campaignid}and{adgroupid}return the campaign and ad group IDs, which survive renaming where names do not.{keyword}returns the matched keyword on Search, but it comes back blank for AI Max, Dynamic Search Ads and Performance Max.{matchtype}returns "e" for exact, "p" for phrase, "b" for broad, and "a" for an AI Max keywordless match.{network}returns a letter code, such as "g" for Google search, "s" for search partners, "d" for Display and "x" for Performance Max.{device}returns "m" for mobile, "t" for tablet and "c" for computer.{gclid}returns the Google click identifier, which ties a click back to Google Ads conversion data.
The {keyword} caveat matters more than it looks. If your reporting relies on keyword values and you have moved budget into Performance Max or AI Max, those clicks will arrive with an empty keyword field, and a dashboard built on keywords will quietly undercount them.
{targetid} is the better choice when keywords are not the only trigger. Google says it returns an ID with a prefix that identifies what triggered the ad: "kwd-" for a keyword, "kwl-" for AI Max keywordless, "dsa-", "aud-", "pla-" for a product partition and "hpi-" for a hotel group partition.
Google also supports conditional parameters such as {ifmobile:[value]} and {ifsearch:[value]}, which insert a value only when the condition is true. They are useful for splitting traffic in an analytics tool without building separate templates.
Location is covered by {loc_physical_ms}, which Google describes as the ID of where the click happened, and {loc_interest_ms}, the location of interest that triggered the ad. Both return IDs rather than place names, so you need Google's location list to translate them.
What Does {lpurl} Do, and Where Must It Go?
{lpurl} is the placeholder for your final URL. It is what lets a single tracking template at the account or campaign level work for every ad underneath it, because each click inserts that ad's own landing page.
Its behavior depends on where it sits. Google says {lpurl} "will be escaped unless you put {lpurl} at the beginning of your tracking template." When it is not at the beginning, characters such as the question mark, equals sign, hash and space are escaped so the URL survives being passed through another server.
That changes the character you put after it. At the start of a template, {lpurl} is followed by a plain question mark. Anywhere else, Google's setup page says it should be followed by %3F, the escaped form. If your final URL already contains a question mark, Google replaces the template's question mark with an ampersand or its escaped equivalent.
There are variants for redirect chains. {lpurl+2} and {lpurl+3} escape the URL two or three times, which Google says is "useful when you have a chain of redirects." {unescapedlpurl} inserts the URL with no escaping, and {escapedlpurl} escapes the colon and slashes too.
One gap is worth knowing. Google's pages say templates at the account, campaign and ad group levels must contain a URL insertion parameter, and that Dynamic Search Ads need one at all levels. None of them states the rule for ad, keyword or sitelink templates. Including {lpurl} everywhere is the safe assumption.
Google also never says a template must begin with {lpurl}. It only says that starting with it changes how it is escaped. Most templates start with it because that is the simplest form, not because Google requires it.
When Should You Use a Tracking Template, and When Not?
Use a tracking template when a third-party click tracker, attribution platform or call-tracking vendor needs to measure clicks through its own server. That is the job the field was built for, and it is the main reason a redirect-based template still exists.
Use one when you need values that only Google knows at click time, such as the campaign ID, match type, network or device. ValueTrack parameters are the only way to pass those into your own systems at the moment of the click.
Do not use one just to add UTM tags. If all you need is UTM parameters in Google Analytics, a final URL suffix does the same job with no redirect, and auto-tagging with {gclid} already gives Google Analytics the Google Ads data it needs.
Be cautious about templates at the ad, keyword or sitelink level. Every edit there sends the item back through review, and Google's custom parameters page notes that saving an edited ad "sends this new ad for review, and removes your old ad." A mistake in a keyword-level template overrides your account-wide setup for that keyword only, which is hard to spot later.
Avoid stacking templates at several levels unless you have a reason. Because the most specific template wins, a forgotten ad-group template can silently replace a carefully built campaign template, and the Test button is the only way to see which one is actually in force.
Building tracking around your ads but not sure your organic search is set up as carefully? Get a free audit from SEO Stuff and we will review what search engines and AI tools can see.
What Are the Limitations Worth Knowing?
The first limitation is that Google's documentation contradicts itself on parallel tracking. Banners on two help pages say parallel tracking "is the only click measurement tracking method for all accounts." Google's parallel tracking page says it is "mandatory for Search, Shopping, Display, Video, and Performance Max campaigns" but "optional" for hotel campaigns. No page reconciles the two.
The second is an unanswered question that matters in practice. Under parallel tracking, Google says visitors go to the final URL while the template loads in the background. No page we read says whether the final URL suffix is appended to the URL the visitor actually lands on in that case.
The third concerns failure. Google never says what happens to a click if the tracking URL is slow or fails. The closest it comes is a warning to check that your click-measurement provider is compatible, because "if there is an incompatibility, your click measurement could stop working."
The fourth is review and timing. Edits below the ad group level go back through review, and any template change takes 24 to 48 hours to show up in serving. The developer documentation says upgraded URLs avoid re-review when tracking parameters change, with no level qualifier, which does not match the help pages.
The fifth is limits. Google's custom parameters page allows "up to 8 custom parameters at any level of your account except for the account level," with names "up to 16 alphanumeric characters" and values "up to 250 characters." No page gives a length limit for the tracking template itself.
Finally, none of the six Google Ads help pages we checked carries a last-updated date. That makes it hard to tell which statement is current when two of them disagree, so test any rule that matters before you rely on it.
Tracking Templates vs the Alternatives
A final URL suffix is the closest alternative. It adds parameters to the landing page URL without a redirect, which makes it simpler and safer for UTM tags. It cannot hand a click to a third-party server, so it does not replace a template when a vendor needs to see the click.
Auto-tagging is the default for Google's own tools. It adds {gclid} to the landing page so Google Analytics can pull in Google Ads data. If your only destination is Google Analytics, auto-tagging may be all the tracking you need.
Custom parameters are a supplement rather than an alternative. They let you define your own values, such as a product line or a promotion code, and reference them in a template. Google's precedence rule is that it "will use the most specific custom parameter that you create."
Other ad platforms have their own versions. Meta Ads Manager offers an account-level template that appends your chosen parameters to every link, which solves the same problem of people tagging URLs by hand and spelling campaign names inconsistently.
Our verdict is simple. Use a final URL suffix for UTM tags, auto-tagging for Google Analytics, and a tracking template only when a third-party system needs to measure the click itself. That keeps templates rare, set high in the account, and easy to audit.
Want one place to see how your paid and organic search work together? Get a free audit from SEO Stuff and we will map your visibility across Google and AI search.
Final Thoughts
A tracking template is a small field with a large effect. It wraps your final URL in measurement data, it inherits down through the account, and where you set it decides whether every edit triggers a review.
Most problems come from three mistakes: leaving out {lpurl}, using the wrong escaped character after it, and setting templates at several levels without realizing which one wins. The Test button catches all three if you use it before saving.
It is worth understanding the other end of the pipe too. A tracking template builds the parameters; your analytics tool reads them. Our guide to what a query string is in Google Analytics 4 explains how those parameters are received and reported.
Finally, treat Google's documentation as a starting point rather than a final word. Its pages disagree on parallel tracking, on which levels exist and on custom parameter limits, and none of them is dated. When a rule matters to your reporting, test it in your own account.
Want this done for you?
SEO Stuff gets businesses cited by ChatGPT, Gemini, Perplexity and Claude, and ranking in Google. Start with the free audit, a call, or the package.
See where you stand
A free, manual SEO + AI search audit of your site, with a report within 48 hours. No credit card, no sales call.
Get my free auditTalk it through
A free 15-minute call with the founder about whether AI search is a meaningful opportunity for your business.
Free strategy callHave it done
The Done-For-You Package: audit, 10 pages of content, 3 DR50+ placements, dashboard. $999 once, delivered in 21 business days.
See the package

