A tracking template is a Google Ads URL that lets you specify how the final destination URL is altered before a user clicks your page.
What is a tracking template in Google ads? Setup, examples, and best practices
Abisola Tanzako | Apr 22, 2026
Table of Contents
- What is a tracking template in Google Ads?
- What does a tracking template actually look like?
- Where can you add a tracking template in Google Ads?
- How is a tracking template different from a final URL suffix?
- What happens if your tracking template breaks?
- Tracking templates vs. UTM parameters: Which should you use?
- Can invalid clicks affect your tracking data?
- What are the most common tracking template mistakes?
- The importance of a Google Ads tracking template for accurate attribution and scalable performance
A tracking template in Google Ads is a URL structure that automatically adds tracking parameters (like campaign, keyword, and device) to your landing page URL without changing the page itself.
When paying for online search engine ads, knowing which campaign, keyword, or ad drove conversions becomes crucial for decision-making.
However, according to HubSpot, almost 40% of marketers believe demonstrating the ROI of their marketing initiatives is their most significant obstacle. Lack of a tracking template might be an unspoken cause.
This article will help you learn what tracking templates are, how they function, what a sample would entail, and how to install one in a few steps.
What is a tracking template in Google Ads?
A tracking template is a field in Google Ads that contains a URL, which you specify how your final destination URL should be altered before a user is redirected to your page.
It allows you to add parameters to the URL, such as the campaign name, keyword, match type, or device, without changing the landing page URL.
The location of a tracking template is the major difference between a tracking template and a normal UTM parameter. UTM parameters are included at the end of your URL.
A tracking template is kept in a separate location and handled by Google before the redirect. This implies that you can also change your tracking parameters at any time without an ad review, which is a considerable operational benefit.
Google provides a list of ValueTrack parameters that is automatically filled with real data when a click is made. These are the ingredients of any valuable tracking template.
What does a tracking template actually look like?
Below is an example of a comprehensive tracking URL template for Google AdWords that includes both the ValueTrack and UTM parameters for Google Analytics:
{lpurl}?utm_source=google&utm_medium=cpc&utm_campaign={campaignid}.
Breaking this down:
| Parameter | What it passes | Example value |
| {lpurl} | Your final destination URL | https://yoursite.com/page |
| utm_source=google | Traffic source | |
| utm_medium=cpc | Traffic medium | cpc |
| utm_campaign={campaignid} | Campaign ID from Google | 21045983712 |
| utm_content={adgroupid} | Ad group ID | 156782341 |
| utm_term={keyword} | The keyword that triggered the ad | click+fraud+protection |
| device={device} | Device type | m (mobile) |
| network={network} | Ad network | g (Google Search) |
| matchtype={matchtype} | Keyword match type | e (exact) |
Where can you add a tracking template in Google Ads?
Tracking templates can be set at multiple levels in the Google Ads hierarchy, and they follow a hierarchy of precedence:
- Account level: is applied to all campaigns, ad groups, and ads unless overridden.
- Campaign level: replaces the account-level template with the campaign’s template.
- Ad group level: replaces the campaign-level template with that ad group.
- Ad level: it goes above all other levels in that particular ad.
- keyword level: the most precise; applicable in instances where specific keywords require different monitoring.
Most advertisers should practice creating a single template at the account level and adding overrides only where they are actually necessary. This helps to save on maintenance costs and have uniform data in your account.
In order to add a tracking template:
- Go into Google Ads and select the level to which you wish to apply it (account, campaign, ad group, etc.).
- Go to Settings, Scroll to the Campaign URL options section (or Account URL options at the account level)
- You should fill in your tracking template in the field.
- Click Save, Within the keyword edit panel Final URL options under the keyword edit panel, you will find the tracking template field at the keyword level.
How is a tracking template different from a final URL suffix?
This is a common source of confusion. Both fields append data to your URLs, but they work differently:
| Feature | Tracking template | Final URL suffix |
| Where data is appended | Replaces the URL with a template | Appended directly to the final URL |
| Redirect behavior | Can redirect through a third-party tracker | No redirect goes directly to the final URL |
| Ad review on change | No re-review required | No re-review required |
| Best for | Third-party tracking tools, complex setups | Simple UTM appending |
| Supports {lpurl}? | Yes | No |
What happens if your tracking template breaks?
This is where many advertisers silently lose data. If your tracking template contains a syntax error, references a broken redirect, or uses an unsupported parameter, Google will flag the ad as disapproved, or worse, it may continue to serve but stop passing tracking data entirely.
Signs your tracking template may be broken:
- Traffic appears as (not set) or (direct) in Google Ads reports, but as (direct) in Google Analytics.
- Campaign and keyword information stops entering your analytics tool.
- Conversion tracking shows a sudden, unexplained drop.
- Clicks are recorded in Google Ads, but sessions are not recorded in Analytics.
According to research and guidelines from the Interactive Advertising Bureau (IAB), a significant portion of digital advertising data discrepancies is caused by tracking implementation errors, such as incorrect tagging and setup, rather than actual changes in campaign performance.
The first diagnostic step before considering that a campaign is not performing is to confirm that your tracking setup is in place.
In Google Ads settings, you can use the Test button next to the tracking template field to test it and make sure it works before it becomes active.
This simulates a click and shows you the full URL that would be created, allowing you to identify mistakes before they cost you information.
Tracking templates vs. UTM parameters: Which should you use?
The honest answer is that you don’t have to choose; when used correctly, they work in tandem rather than competing.
Google Analytics and other platforms rely on UTM parameters (source, medium, campaign) to classify sessions.
These are static; once you define them, they remain fixed. In contrast, parameters within a tracking template are dynamic.
They use ValueTrack to inject real-time click data, including specific keywords and placements, directly into your URLs. This provides much higher granularity than UTMs alone.
An ideal end-to-end configuration uses a tracking template to dynamically inject data for deep analysis while maintaining UTM parameters to ensure your traffic is properly categorized across your entire analytics stack.
The illustrative template provided in the previous section of this paper illustrates this conjoined strategy.
| Metric | UTM parameters only | Tracking template only | Combined |
| Session source/medium in Analytics | Yes | No (unless UTMs included) | Yes |
| Dynamic keyword data | No | Yes | Yes |
| Device and network data | No | Yes | Yes |
| Third-party redirect support | No | Yes | Yes |
| Works with Google Analytics 4 | Yes | Partial | Yes |
| Setup complexity | Low | Medium | Medium |
Can invalid clicks affect your tracking data?
Absolutely! And here’s where the matter gets even more important. Bot activity triggers sessions that your system will track and include in statistics, just like any other user activity.
This means that bots increase click counts and skew average costs per click, possibly leading to tracking irregularities that may be misunderstood as poor performance on your part.
According to Statista, advertisers are expected to lose $172 billion due to various forms of ad fraud. Click fraud stands out as one of the most enduring types of invalid traffic influencing search campaign performance.
When you experience a sudden surge in clicks without an accompanying uptick in conversions and session quality, it can mean either that your tracking is faulty, or that the traffic in question is low-quality.
You need to check whether your tracking template is in place first before analyzing the traffic. ClickPatrol helps you track click fraud activity using your existing metrics tracking system.
What are the most common tracking template mistakes?
The common tracking template mistakes to watch out for include:
- Leaving out {lpurl} at the beginning: Each tracking template should start with {lpurl} (or a variant such as {lpurl+2} where the URLs already have parameters and use the characters of the percent-encoded character set). In its absence, Google has no place to refer to the user.
- The use of various templates at different levels is inconsistent: when you set a template at both the account and ad levels, Google will use the most granular. An incomplete ad-level template will lose parameters passed by your account-level template.
- Failure to test upon changes: Whenever you make changes to a tracking template, you have an inbuilt Test option. It only takes 30 seconds and may save weeks of lost information.
- Twisting unsupported parameters of the type of campaign: There are specific parameters of ValueTrack that are only applicable to particular campaign types. For example, Performance Max campaigns do not offer the option to use a keyword, and their targeting model differs.
- Review the ValueTrack parameter documentation of Google prior to developing templates of campaign types that you have not previously developed.
The importance of a Google Ads tracking template for accurate attribution and scalable performance
A Google Ads tracking template is a foundational element of your account architecture, not a “set-it-and-forget-it” task.
And because it serves as the bedrock for your attribution data, any errors here will compromise your ability to make informed decisions regarding budgets, keywords, and creatives.
Use the framework provided here to build a reliable account-level implementation. Ensure you test the template before launching campaigns and revisit it whenever you introduce new formats or external tools to your workflow.
However, if your data looks clean but your results are still underperforming, the issue may lie elsewhere.
When tracking is accurate, but conversions are missing, the quality of your traffic is often the culprit, making invalid click detection your next priority.
Frequently Asked Questions
-
What does a tracking template in Google Ads mean?
-
Is an ad review caused by having a different tracking template?
No. Google does not re-examine ads if you only change the tracking template. This is a major benefit compared to editing an end URL, which does attract an inspection.
-
What is a tracking template and a final URL suffix?
The last URL suffix adds parameters to your final URL and is the simpler choice when doing UTM tracking. A tracking template may divert clicks via a third-party server before they reach the landing page, and thus requires more intricate arrangements, such as external click monitoring or attribution solutions.
-
Why do I see my clicks in Google Ads and not in Google Analytics?
It typically indicates a syntax error in your tracking template, a lack of UTM parameters, or an incorrectly formed final URL. The Test button in Google Ads lets you simulate a click and test the compiled URL.
-
Is it possible that bot traffic could affect my tracking template data?
Yes. Bots or click farms will be recorded as a session in your analytics data, which overstates count-based metrics and skews the data captured by your tracking template.
-
Does it support Performance Max campaigns?
Yes, but there are restrictions. Parameters such as {keyword} will be empty in Performance Max because the campaign type does not operate at the keyword level.
