Google Ads Tracking Template: Setup, Examples & Best Practices

Home >> TECHNOLOGY >> Google Ads Tracking Template: Setup, Examples & Best Practices
Share

You get to some point in the process between “auto-tagging is on, so I should be ok” and “how come GA4 has no campaign data” where all advertisers hit a wall. Stuff is tracking, but you sure can‘t see it… nowhere. Not in your CRM. Not in your analytics. Certainly not in the report your client is expecting to see the following Monday morning.

That gap is almost universally a tracking template issue. Not a broken pixel, not a GA4 error but a URL field that‘s blank, broken, or silently removing the parameters you want.

I‘ve created tracking templates for accounts where UTMs disappeared after redirecting to a landing page; and, the fix only took four minutes after I figured out where the problem was. This post discusses what a google ads tracking template really does, setting one without wrecking your ads, templates that you can use right now, and some common mistakes.

What Is a Google Ads Tracking Template?

A tracking template is a URL field in Google Ads that instructs Google how to construct the final URL a visitor reaches after clicking on your ad (without overriding your landing page URL).

Consider it as a wrapper. Your LP remains clean. The tracking template puts the tracking parameters on top so that Google can send such things as campaign ID, keyword, device type, etc. without having to edit your destination URL every time something changes:

Why bother? A few reasons come up constantly:

  • You want to know which campaign, ad group or keywords actually led to the click not simply that “Google Ads” sent people!
  • It‘s the same landing page for many different campaigns. What do you use in order to distinguish them in GA4?
  • The CRM (HubSpot, Salesforce or whatever you use) requires UTM data to identify the source of a lead.
  • Your plugging in Enhanced Conversions or offline conversion imports which require clean, consistent parameters

Without a google ads tracking template, you‘re left editing final URLs as needed by hand this isn‘t a scalable solution once you have more than a handful of campaigns.

How Does a Google Ads Tracking Template Work?

The flow is simpler than it looks once you see it laid out:

  1. User clicks your ad I want them to click on I want them to click on whatever this is.
  2. Google interprets the tracking template
  3. It replaces the ValueTrack parameters with actual values.
  4. What it does is it attaches just about everything to your landing page URL
  5. User lands on page tracking running simultaneously so no lag.

The only thing here that isn‘t flexible is{lpurl}. It‘s the magic word that needs to be replaced with your real Final URL. All tracking templates require this, because if it‘s absent Google can never find a place to put the tracking info. If you remove it, you‘ll create either a broken link or one that always points to the same mess of a page.

Two other pieces do the heavy lifting:

UTM parameters– the utm_source, utm_medium, utm_campaign fields that GA4, HubSpot, and practically every analytics platform out there understands. This isn‘t a Google thing; it‘s just standard campaign tracking.

ValueTrack parameters – Google‘s own dynamic variables (such as {campaignid}, {keyword} and {device}) which get substituted with real values when the ad is served, and make it possible to use one template across the whole account rather than a custom URL for each ad.

My experience running side by side: UTMs by themselves can give you pretty good GA4 reporting, but comboing them with ValueTrack parameters provides you with granularity say, which keyword actually triggered a click that UTMs alone can‘t achieve at scale.

How to Set Up a Tracking Template in Google Ads

Getting this up and running isn‘t that hard but it‘s a little bit tricky the way you do things and if you also don‘t do the test step your chances of failure increase.

Step 1: Sign In to Google Ads

Login to the campaign-level account you are interested in working with (account-wide right now, will go scoped in later):

Step 2: Select Your Campaign

Select the particular campaign (or go to Settings if you want to set this up for the whole account).

Step 3: Open Campaign Settings

Go to the settings tab then scroll down to the section labeled ‘tracking’. This is usually put underneath ‘Additional settings’.

Step 4: Find the Tracking Template

Have a go with expanding the “Tracking” or “Campaign URL Options”. There are three boxes: Tracking template, Final URL suffix, and (at the ad level) Final URL.

Step 5: Add Your Tracking Template

Paste your template into the field. Something like:

{lpurl}?utm_source=google&utm_medium=cpc&utm_campaign={campaignid}&utm_content={adgroupid}&utm_term={keyword}

Ensure {lpurl} appears as the first thing on the page.

Step 6: Save and Test the Template

Always hit the Test button in advance of actually saving for real. It completes the URL so you can verify it loads your landing page without error. Not doing this leads to disapproval and sending people to dead links.

Google Ads Tracking Template Examples

Different tasks require different templates. The following are the ones I most often use.

Google Ads Tracking Template

Basic Tracking Template Example

{lpurl}?utm_source=google&utm_medium=cpc

That will be ok. Not much, just enough to give GA4 an indication of the traffic was originated from paid Google clicks.

Google Ads UTM Tracking Template

{lpurl}?utm_source=google&utm_medium=cpc&utm_campaign={campaignid}&utm_content={adgroupid}&utm_term={keyword}&device={device}

I would consider this a reliable accounts level default delivers the same structure to GA4, CRMs and BI tools.

Campaign Tracking Template

{lpurl}?utm_campaign={campaignname}&utm_source=google&utm_medium=cpc

Here are the variables you need when you want the campaign names to be human readable in your reports instead of just displaying the long numbers:

Keyword Tracking Template

{lpurl}?utm_term={keyword}&matchtype={matchtype}

Only used for Search campaigns {keyword} results in a blank space on Shopping, Display or Performance Max.

Tracking Template With ValueTrack Parameters

{lpurl}?network={network}&device={device}&gclid={gclid}

This more like what I‘d actually put into Performance Max as I wouldn‘t have the data at keyword level either.

Google Ads ValueTrack Parameters

Different parameters will be effective on different types of campaigns. If you use the incorrect parameter, your report columns will simply be blank. Here is a quick cheat sheet of the most important:

ParameterWhat It CapturesBest Used On
{campaignid}Numeric campaign IDAll campaign types
{adgroupid}Numeric ad group IDSearch, Display, Shopping
{keyword}The keyword that triggered the adSearch only
{matchtype}Match type (exact, phrase, broad)Search only
{device}Device type (mobile, desktop, tablet)All campaign types
{creative}Ad creative IDDisplay, Video
{network}Network the ad served onAll, especially PMax

Number three is the proliferation oftracking gaps where the campaign type and parameter don‘t correlate. This is one of the more frequent and preventable ones I‘ve seen.

Google Ads Tracking Template

Where Can You Add a Google Ads Tracking Template?

Templates are hierarchical, so a specific level (par example: Ford) will always take precedence over a more general one (par example: car).

Account-Level Tracking

Universal set by default, can be changed at a campaign level. Useful for a universal utm design all campaigns should follow.

Campaign-Level Tracking

Comments out the account-level template for that campaign only perfect if every campaign uses different parameters.

Ad Group-Level Tracking

Even narrower. Helpful when the ad groups in a campaign are completely different and targeting different audiences or products.

Ad-Level Tracking

The most precise level of specification and is used for one ad. Should be used only when testing a very precise variable.

Tracking Template vs Final URL vs Final URL Suffix

These three fields get confused constantly, so here‘s the plain breakdown:

  • Tracking template. Creates the final url logic must include {lpurl}. Supports dynamic ValueTrack parameters and sits “in front of” your destination.
  • Final URL is only theactual landing pagea landing page being the destination itself.
  • Final URL suffix: only adds static parameters, there is no need {lpurl}.Use this if all you want to do is stick a couple of static values, with no changes to the underlying tracking code.

For simple static parameters, the suffix field may be less error prone than editing the entire tracking template.

How to Test a Google Ads Tracking Template

Never save a template without testing it first. Here‘s the check I run every time:

  • After hitting the Test button in Google Ads, it must be verified that the resolved URL actually loads
  • Select a live ad (or preview it) and examine the GA4 DebugView receiving parameters
  • Ensure your CRM has the utm_* fields recording correctly whenever a lead is generated.
  • Double-check that there is no?? in the final URL. If there is, that indicates that the page you were trying to land on already had a query string, but the template added a second?

Common Google Ads Tracking Template Errors

Tracking Template Is Not Working

Minimum-typically originated from a hard-coded URL somewheres in the chain, or from a cache copy of a template Saved without testing prior.

{lpurl} Error

If you miss the {lpurl} entirely, or put it somewhere in the template other than the beginning, the destination logic will be broken: all clicks will go to the same, broken location or nowhere at all.

UTM Parameters Are Missing

Blame it on the usual suspects: {lpurl} missing, double ??, redirect somewhere on the path removing the query string or GA4 configuration filters not passing through query strings to the report.

Landing Page Is Not Loading

There is frequently a redirect issue e.g., being an HTTP-to-HTTPS bounce that strips everything after the ? before the page loads.

Duplicate Tracking Parameters

Conflicting Parameter Values if your tracking template and Final URL suffix both the same parameter. Select just one of the fields and stick with it for the particular parameter.

Google Ads Tracking Template Best Practices

  • Begin with one strong UTM template at the account level so all campaigns share the same structure.
  • Create individual templates for Search Shopping Display and PMax whichever. Do not adapt a Search only template with {keyword} for PMax
  • Leave auto-tag on to enable GCLID-based attribution; then put on UTMs on top of that for anything outside of Google‘s own realm (owned ecosystem).
  • Ensure there is clear, custom labeling used in the URLs and Google Analytics campaigns (e.g.,”{_campaignname}”) such that auditors or relevant people can read your reports without logging into the Google Ads interface
  • Test all modifications individually prior to saving; invalid template will terminate ad serving.

If your reporting is handled across several Google accounts, then it‘s useful to know how to set your default Google account so you don‘t have to switch accounts every time you‘re using the tracking data or dashboard.

Frequently Asked Questions About Google Ads Tracking Templates

What is a tracking template in Google Ads?

This is a URL field and it specifies how Google is to construct the final click URL. Tracking parameters can be added without the necessity of modification to your landing page link.

What should I put in a Google Ads tracking template?

Minimum is {lpurl} plus your UTM parameters. Then add in ValueTrack parameters such as {keyword} or {device} based on your campaign.

Do I need a tracking template in Google Ads?

If you require reporting beyond Google Ads (GA4, a CRM, a BI dashboard) yes. Auto-tagging only provides data to Google‘s own systems.

What is {lpurl} in Google Ads?

It is the replacement for your Final URL. This value is necessary for the tracking template to work.

What is the difference between a tracking template and a final URL?

The Final URL is the landing page users will see. The tracking template sits around this is what helps the parameters catch that click and give you the relevant data.

Can I use a tracking template with GA4?

Yes that’s one of the primary reasons to have one. GA4 reads UTM parameters passed through your template to properly attribute the traffic.

Final Thoughts

A google ads tracking template isn’t glamorous work but it’s what separates the approximations of figuring out which keyword/ ad group led to which conversion and the certainty of actually knowing. My opinion after setting this up in many accounts: the account-level UTM template plus overrides for campaign type is more than sufficient for 99% of use cases I wouldn‘t use anything more complicated unless you‘re really entrenched in server-side tagging.

If you are simply trying to tidy up your ad account as a whole, it may also be useful to search your email account, for which the Gmail search operator newer_than can instantly sort your inbox for recent Google Ads alerts and/or billing notification without going through months of old information.

Set it up once, test it a a few times, and it will pretty much run itself from then on.

Leave a Reply

Your email address will not be published. Required fields are marked *