Digital Marketing

Google Ads Tracking Template and ValueTrack Parameters Explained

Talha Aslan 18 min read

Short answer

What is a google ads tracking template?

A google ads tracking template is a set of tracking instructions attached to your landing page URL. The template pulls in your final URL through the {lpurl} parameter, then adds click details with ValueTrack parameters. As a result, you can read which keyword, device or campaign sent each visit.

Keep reading for the full details and examples

You opened your Google Ads settings, saw fields called "Tracking template" and "Final URL suffix", and now you want to know what they actually do. A google ads tracking template is the set of tracking instructions that Google adds to your landing page URL when someone clicks an ad. ValueTrack parameters fill that template with click details such as the keyword, device or campaign ID. Below, we walk through the difference between the fields, setup, testing and the errors that break pages.

Google's help page on setting up tracking with ValueTrack parameters sets a clear rule. Templates at the account, campaign or ad group level must include a ValueTrack parameter that inserts the final URL, and {lpurl} is the common choice. Without it, the landing page breaks, because the system no longer knows where to send the visitor.

Here is a simple example. You enter {lpurl}?matchtype={matchtype} as your template. When a click happens, {lpurl} turns into your final URL and {matchtype} turns into a short match type code. In other words, one line collects match type data across every campaign. If you also want clean UTM tags next to it, a utm builder keeps the naming consistent.

How do the final URL, tracking template and final URL suffix differ?

The three fields live in the same settings area, so people mix them up. However, each one answers a different question. The final URL is the page the visitor finally sees. The tracking template tells Google how to measure the click. Meanwhile, the final URL suffix adds parameters to the end of the landing page address, and Google's page on how to add a final URL suffix describes it as a way to see where visitors go after the click.

FieldWhat it doesWhat the visitor seesWhen to use it
Final URLSets the page the ad leads toThat page itselfEvery ad needs one
Tracking templateCarries click measurement instructions and wraps the final URL with {lpurl}Nothing, because parallel tracking runs it in the backgroundWhen a third party tracker or ValueTrack data matters
Final URL suffixAppends parameters to the landing page addressThe parameters in the address barFor tags your page or analytics must read, such as UTM
Custom parameterPasses a value you define into the templateNothing directlyWhen a campaign needs its own fixed label

In practice, one rule keeps things tidy. Put the tags your site and analytics must read into the suffix. Put the data an outside measurement system must process into the template. Once you split them this way, the account stays readable as it grows.

Where is the google ads tracking template in the interface?

According to Google's help page, the account level setting sits inside account settings, in the tracking area. For campaigns, ad groups, keywords and dynamic ad targets, you edit the tracking template column in the matching list. At the ad level, you edit the ad and expand its URL options. Sitelinks have a similar URL options area under assets.

Menu labels change over time. So instead of hunting for an exact button, look for the place where "tracking template", "final URL suffix" and "custom parameters" appear together. Also, the interface may show the same field under a slightly different name.

If you run Performance Max, you can also set a template at the asset group level. In addition, the official list adds keyword and sitelink levels. Therefore, if you cannot find a template where you expect it, it may live at another level.

What are ValueTrack parameters and how do they work?

ValueTrack parameters are placeholders in curly brackets. At the moment of the click, Google swaps each placeholder for the real value of that click. For example, {device} writes the device type, {campaignid} writes the campaign ID, and {keyword} writes the matched keyword. You only decide which details you want.

Google's page says these parameters can sit in the final URL, the tracking template or a custom parameter. Some of them, however, only work in one field. The {lpurl} family belongs to the tracking template only, while {ignore} belongs to the final URL only. If you ignore these limits, the value comes back empty or the URL breaks.

Campaign type matters as well. Performance Max supports some parameters fully and others only in a limited way. Demand Gen does not support parameters such as {keyword} and {network}. So before you copy one template across campaign types, check the official list for what each type supports.

Which ValueTrack parameters do most advertisers use?

The official list is long, yet most businesses need only a handful. The notes below follow the ValueTrack list in Google Ads Help:

  • {lpurl}: inserts the final URL. It stays unescaped at the start of the template and escaped anywhere else.
  • {campaignid} and {adgroupid}: write the campaign and ad group IDs. They help most when the template sits at the account level.
  • {keyword}: writes the matched keyword. It stays blank for keywordless matching, for example in Performance Max or Dynamic Search Ads.
  • {matchtype}: writes the match type as a code; e for exact, p for phrase and b for broad.
  • {network}: writes the network; for example g for Google Search, s for search partners and d for Display.
  • {device}: writes the device; m for mobile, t for tablet and c for computer.
  • {creative}: writes the unique ad ID.
  • {gclid}: writes the Google click identifier.

Always check the full and current list on the official page, because Google adds new values for new campaign types. For instance, the match type list now includes a separate code for AI based keywordless matches.

Why is {lpurl} required, and what does escaping mean?

{lpurl} is the backbone of the template. The system learns the destination page from it. Therefore, an account, campaign or ad group template without {lpurl} breaks the landing page. For Dynamic Search Ads, Google's page also makes {lpurl} a requirement.

Escaping means converting special URL characters into an encoded form. When {lpurl} starts the template, Google does not escape it, so a plain question mark can follow. When {lpurl} sits anywhere else, characters such as the question mark, equals sign and spaces get encoded. In that case, you need %3F instead of a plain question mark.

One more detail helps. If your final URL already contains a question mark, Google Ads replaces the template's question mark with an ampersand. In short, the system often solves the "?" versus "&" problem for you. Still, third party trackers with nested redirects may need multi escaped versions such as {lpurl+2}. Check your tracker's documentation before you choose one.

How does parallel tracking measure a click?

Parallel tracking sends the visitor straight to the final URL while click measurement runs in the background. According to Google's help page, parallel tracking is the only click measurement method for all accounts. As a result, visitors no longer pass through the tracker's redirect chain.

This has two practical effects. First, landing pages can load faster, because there is no redirect step in between. Second, your third party click measurement provider must support parallel tracking. If it does not, the provider misses clicks and your reports show gaps.

This is where the final URL suffix matters. In Google's example, the visitor lands on the address with the suffix applied, while tracking runs in the background. So everything your page must read belongs in the suffix; template parameters never reach the visitor's browser. If you want to see how speed affects results, read our guide on landing page speed and Google Ads.

At which level should you set the template?

Google's page recommends setting up the template at the account level. This keeps maintenance light, because one change updates every campaign. With {campaignid} and {adgroupid} in an account level template, you can still tell campaigns apart.

Lower levels are for exceptions. For example, if one campaign uses a different measurement provider, it gets its own template. However, as templates pile up across levels, it becomes hard to tell which one actually runs. This is the mess we see most often in inherited accounts: one template on the account, another on a campaign, and an old redirect on a few ads.

So start with an inventory. List which template lives at which level and which belongs to a tool nobody uses anymore. When we audit accounts as part of our ppc management work, Talha Aslan and the team start with exactly this layer: structure, match types, negatives and tracking. You can follow the same order in your own account.

How do you combine UTM parameters with a tracking template?

UTM tags tell your analytics tool the source, medium and campaign of a visit. ValueTrack produces dynamic values for each click. They are not rivals; instead, they work together. For example, if you put {keyword} into utm_term, every click drops its matched keyword into the UTM data.

Because of parallel tracking, UTM tags usually belong in the final URL suffix. The visitor's browser and your analytics tag read the suffix. UTM tags placed only in the template may never reach the address the visitor sees. If UTM basics still feel shaky, start with our guide to UTM parameters for ad tracking.

Instead of typing tags by hand, try the free utm link builder. Open the tool, enter your page URL, set google as the source and cpc as the medium, then add a campaign name. The tool returns a clean link in lowercase with hyphens. Copy the part after the question mark into the suffix, then add ValueTrack parameters such as {keyword} to fields like utm_term yourself.

How do you test a google ads tracking template before saving?

According to Google's page, most levels offer a test option you can use before you save. Specifically, the test shows whether the template reaches a valid landing page. Still, the test alone is not enough; you also need to check real visitor behavior. We suggest this order:

  1. Set the template on one campaign or a low traffic ad group first.
  2. Run the test option before you save and look for error messages.
  3. Make sure no spaces remain, since Google notes that spaces break tracking.
  4. Open the landing page with the suffix in a browser and check that forms and checkout still work.
  5. Confirm in your analytics tool that new visits arrive with the expected source.
  6. If all looks right, move the template to the account level and clean up older templates.

These steps look small. Yet a faulty account level template affects every ad at once. Skipping the test can therefore send all of your ads to a broken page with one click.

Example scenario: how would a service business set it up?

Example scenario: picture a home renovation company in a large US city. It runs one Search campaign, and its landing page is a simple quote form. The owner wants to learn which match type and device bring more form submissions. The table below summarizes the setup step by step; it contains no numbers and only shows the decision logic.

StepDecisionReason
Template levelAccount levelOne line, easy upkeep
Template content{lpurl} followed by match type and deviceThe tracker records both details
SuffixUTM source, medium, campaign and {keyword} in utm_termAnalytics reads them on the page
TestOne campaign first, then the accountStops an error from spreading
CheckForm submission and thank you pageConfirms parameters do not break conversion steps

After a few weeks, the owner can see which match type ends in a form. What matters here is not the number but the steady flow of consistent data. When measurement holds, decisions hold too. Also, the same pattern can move to new campaigns later, so the team never starts from scratch.

What should you watch for with a third party tracker?

Some businesses count clicks in a measurement system outside Google Ads. In that case, the tracking template carries the address that reports the click to that system. Usually, your provider gives you a ready template line; you only confirm that it contains {lpurl} and the parameters you need.

The first check is parallel tracking support. Google's page asks you to make sure your click measurement provider works with parallel tracking. A provider that does not will miss clicks, and an unexplained gap opens between the two systems.

The second check is the escaping level. If the provider redirects visitors through several steps, you may need {lpurl+2} or {lpurl+3}. Do not guess which one fits; read the provider's documentation and the test result.

The third check is expired tools. When you stop using a measurement service, remove its template as well. Otherwise clicks keep trying to report to a dead address, and a needless failure point stays in your account.

Which errors lead to destination problems and broken pages?

Bad tracking settings can also affect ad approval. The risk grows when a template redirects to another domain or when the landing page fails to load. We cover both disapproval types in detail elsewhere, so we will not repeat them here. See our guides on the destination mismatch disapproval and the destination not working disapproval.

On the tracking side, these are the technical errors we see most:

  • The template is missing {lpurl}, or it contains a typo.
  • The escaping rule is ignored, with a plain question mark after a mid template {lpurl}.
  • A parameter value still contains a space.
  • A site redirect strips parameters and moves the visitor to another address.
  • An old tracker's template still sits at some level.

Redirects deserve extra care. Redirects that drop parameters or pass through several hops hurt both measurement and speed. We explain this in our post on redirect chains.

What do people commonly misread?

The first misreading is that the tracking template changes where the ad goes. It does not; it only defines how Google measures the click. The final URL decides the page. So if an ad lands on the wrong page, check the final URL and the campaign's URL settings first.

The second misreading is that every template parameter appears in analytics on its own. With parallel tracking, the template runs in the background; the data your page reads must sit in the suffix. Also, analytics tools only report the parameters they recognize as separate dimensions.

The third misreading is that a template means conversion tracking is done. A template labels clicks; it does not measure conversions. If your conversion tag is missing, no template can show you which click became a customer. We cover that side in five checks for conversion tracking.

Where do you read ValueTrack data in reports?

ValueTrack values reach either your landing page address or your measurement provider. So where you read the data depends on where you placed the parameter. UTM fields in the suffix show up in your analytics acquisition reports. Template values show up in your measurement provider's own reports.

If Google Ads and Google Analytics are linked, campaign and cost data already flow over automatically. In that case, use ValueTrack for missing detail rather than duplicate data. We explain the setup in how to link Google Ads and Google Analytics.

The numbers in both systems may not match exactly. That is normal, because measurement methods, time zones and attribution models differ. We break down the causes in why GA4 and Google Ads numbers don't match. Put simply, a gap is not an error sign but part of reading two systems together.

Do you need a template when auto-tagging is on?

Auto-tagging adds a click identifier called GCLID to the landing page address after an ad click. Google's page about auto-tagging says the feature is needed to import Google Ads data into Google Analytics and for some conversion tracking. So with auto-tagging on, Google's own measurement does not need a separate template.

The template answers a different need, though. If you use a third party tracker, want to pass keyword or match type details into your CRM, or build your own reports, the template and suffix still help. In addition, carrying {gclid} into your own form prepares the ground for offline conversion imports later.

If you want to tie offline sales back to ads, our guide on offline conversion import setup covers the full process. It also explains what to store and when to upload it.

When do conditional parameters help?

The official list also includes conditional parameters such as {ifmobile:[value]} and {ifsearch:[value]}. They insert your chosen value only when the condition is true. For example, {ifmobile:mobile} writes "mobile" when the click comes from a mobile device and stays empty otherwise.

Conditional parameters help when you want readable labels instead of codes. For instance, you may prefer "mobile" and "desktop" in a report over m, t and c. However, each condition needs its own parameter, which makes the template longer. That is why {device} is enough for most accounts.

Ad text can use conditions too, but that is a completely different feature. We cover it in our post on the Google Ads IF function. To keep them apart, remember this: one adds labels to the URL, the other changes the text people read in the ad.

What does {ignore} do?

{ignore} is a special ValueTrack parameter for the final URL. According to Google's page, it marks everything after it as tracking only. That marking can reduce the crawl load from needless URL variations.

Also, the rule is strict: {ignore} works only in the final URL or the final mobile URL. You cannot nest it inside another ValueTrack parameter. For example, if your final URL carries tracking tags that should not count as the page's real address, {ignore} can help.

For most accounts, though, a simpler path exists: write tracking tags into the final URL suffix instead of the final URL. The final URL then stays clean, and you manage tags in their own field. {ignore} mostly makes sense for inherited setups that must keep tags in the final URL.

How does the template differ for Shopping and Performance Max?

Shopping campaigns have their own product parameters. In the official list, {merchant_id} writes the Merchant Center account ID, {product_id} writes the clicked product ID, and {product_channel} shows whether the channel is online or local. These let you see which product drew the click in your own reports.

Performance Max looks a little different. According to Google's page, parameters such as {campaignid}, {assetgroupid}, {device} and {lpurl} get full support, while {gclid} and product parameters get limited support. {keyword} may come back empty, because this campaign type can match without keywords.

So a separate template for Performance Max can make sense. Carrying the asset group ID, for example, helps you tell which asset group brought the visit. We explain the wider campaign logic in our guide to Performance Max for ecommerce.

What should you do now? A decision and action list

When you open your account, work through the list below in order. Each item is a decision, and none of them needs a number:

  • List the templates set at the account, campaign, ad group and ad levels.
  • Find templates that belong to unused trackers, test, then remove them.
  • Check that every template contains {lpurl} and follows the escaping rule.
  • Move UTM tags that the page must read into the final URL suffix.
  • Fix UTM naming in one shared table so upper and lower case never mix.
  • After each change, test the landing page, the form and the thank you step in a browser.
  • Watch your analytics report for a week to confirm visits arrive with the right source.

This is not a one time job. Repeat the checks whenever you add a campaign type or change your site structure, because tracking breaks quietly and people often notice weeks later.

Handle it yourself or bring in help?

Reading the tracking template correctly is one step. Building consistent measurement across the whole account is another. When several campaign types, third party tools and form flows run at once, a small escaping error can spoil all of the data. At that point, working with a google ads expert saves time.

In our service, we set up conversion tracking from day one, configure the Analytics link and enhanced conversions, and add server side tracking when needed. The account stays yours, and campaigns run in your own account. We audit the current setup first, then steer budget by the data. We do not promise results; what we promise is that you always see what we changed and why.

Core guide: What Is Digital Marketing? Its types, examples and how it is done, on one page with an interactive film that travels through the brain.

Frequently Asked Questions

Is a google ads tracking template required?
No, it is optional. With auto-tagging on, Google's own measurement works without a template. A template helps when you use a third party tracker or want to pass click details such as keyword and device into your own systems. If you set one at the account, campaign or ad group level, it must contain {lpurl}.
What is the difference between a tracking template and a final URL suffix?
The tracking template carries click measurement instructions and runs in the background with parallel tracking. The final URL suffix gets appended to the landing page address and reaches the visitor's browser. So tags your analytics must read, such as UTM, belong in the suffix, while outside tracker data belongs in the template.
What does the {lpurl} parameter do?
{lpurl} inserts your final URL into the tracking template, so the system knows which page to open. At the start of the template it stays unescaped, and a plain question mark can follow. Anywhere else, special characters get encoded, so you need the encoded question mark instead. Without {lpurl}, the landing page breaks.
Do ValueTrack parameters work in every campaign type?
No, support depends on the campaign type. According to Google's official list, Performance Max supports some parameters fully and others only partly. Demand Gen does not support parameters such as keyword and network. Before you copy one template across campaign types, check which parameters the official list supports for each type you run.
Does the tracking template change where my ad goes?
No. The final URL decides where the ad goes; the template only defines how the click gets measured. If your ad lands on an unexpected page, check the final URL first, then site redirects and campaign settings such as final URL expansion. A broken template, however, can stop the page from loading at all.
What should I check after changing the template?
Run the test option before you save. Then open the landing page in a browser and confirm the form and thank you step still work. Watch your analytics tool for a few days to see new visits arrive with the right source. Also confirm that no spaces remain and that old templates are gone from other levels.
  • google ads tracking template
  • valuetrack parameters
  • final url suffix
  • parallel tracking
  • utm parameters
  • lpurl
  • google ads measurement
Share:
Talha Aslan

Google Partner digital marketing expert. Hands-on with SEO, Google Ads, web design and e-commerce projects since 2012; every post here comes from that experience.

Next project

Get a quote for your project.

Your brief goes straight to Talha Aslan and team: strategy led by Talha, delivery by an experienced team. We reply the same day and send the scope, timeline and price as a written quote within 1 business day.