Docs · Google Ads

Google Ads Tracking Template Setup: The Ideal Configuration (2026)

Where to put the template, what belongs in Final URL suffix instead, which ValueTrack values survive renames, and how to validate before live traffic.

· Updated

A tracking template is the single most leveraged piece of measurement configuration in a Google Ads account. Set it up once, correctly, at the right level, and every ad, keyword, asset and extension inherits clean, consistent tracking parameters. Set it up wrong — or in fourteen different places — and you spend years reconciling numbers that will never agree.

This guide is the practical setup we use when wiring accounts that also need CRM, click-fraud or attribution tools. For copy-ready strings, jump to Search UTMs, Spectacle-style google/cpc suffix, or the Google Ads parameter reference.

Tracking template vs Final URL suffix vs custom parameters

Google Ads gives you three separate URL fields. Most accounts misuse at least one of them.

Practical rule: template for structure, suffix for parameters, custom parameters for values ValueTrack cannot give you.

Where to set the template: the level hierarchy

Templates can be set at account, campaign, ad group, ad, keyword, sitelink and asset level. The most specific level wins — a keyword-level template overrides the campaign-level one entirely. It does not merge.

The ideal configuration for almost every advertiser:

  1. Set the tracking template at account level — one place, one source of truth.
  2. Set the Final URL suffix at account level for truly global parameters (utm_source, utm_medium, device/network when you need them).
  3. Override at campaign level only when you need campaign-specific values ValueTrack cannot derive (a manual utm_campaign naming scheme, or a different redirect domain for another brand).
  4. Avoid keyword/ad-level templates unless you have an unusual requirement. Orphaned keyword templates from 2019 are a classic cause of “half my clicks have no UTMs”.

Changing an account-level template does not trigger ad review — you can update measurement without resetting learning or risking mass disapprovals.

The recommended tracking template

For an advertiser with no third-party click tracker:

{lpurl}

Leave parameters to the Final URL suffix. If you use a click tracker or redirect service, the template becomes a redirect that still inserts the final URL — for example ClickPatrol’s Google redirect on this site:

ClickPatrol → Google Ads (replace [[CLICKPATROL_ID]]). HubSpot-style {lpurl}?…hsa_* stacks belong in Tracking template when HubSpot owns auto-tracking — see HubSpot → Google Ads and the split-field pattern in HubSpot + ClickCease.

Encoding note: {lpurl} is escaped when it is not at the start of the template. For chained redirects you may need {lpurl+2} / {lpurl+3} — see the {lpurl} encoding guide and Google’s ValueTrack URL parameters.

The recommended Final URL suffix

A production-grade suffix that uses IDs (they survive renames):

utm_source=google&utm_medium=cpc&utm_campaign={campaignid}&utm_content={adgroupid}&utm_term={keyword}&matchtype={matchtype}&device={device}&network={network}&creative={creative}&placement={placement}

Prefer IDs over names. Campaign and ad group names change; when they do, GA4 and Looker Studio fragment into two rows that look like separate campaigns. Join IDs to friendly names in your BI layer. If you cannot join, use {_utmcampaign} custom parameters or accept name churn.

Copy-ready variants on this site: Spectacle google/cpc suffix and ValueTrack+. Build or merge your own in the template builder.

ValueTrack parameters worth knowing

ParameterReturns
{lpurl}Final URL (encoding depends on position)
{campaignid} / {adgroupid}Numeric IDs
{creative}Unique ad ID
{keyword}Matched keyword (Search) or targeting keyword (Display)
{matchtype}e, p, or b
{network}g Search, s partners, d Display, plus others by campaign type
{device}m, t, c
{placement}Placement domain (often empty on Search)
{targetid}kwd- / dsa- / aud- / pla- prefixed IDs
{loc_physical_ms}Physical location criterion ID
{ifmobile:x} / {ifnotmobile:x}Conditional insertion

Two rules that catch people out. First, if a parameter does not apply to the click, Google returns an empty value — the key stays in the URL with nothing after =. Second, never put ValueTrack tokens in the Final URL field itself; they are not substituted there.

Auto-tagging and the GCLID

Turn auto-tagging on. It appends gclid (or wbraid / gbraid in privacy-restricted contexts) and is required for Google Ads conversion import, offline conversions, and GA4’s Google Ads link.

Auto-tagging and manual UTMs are not mutually exclusive. GA4 prefers manual UTM parameters when both are present — which is why utm_source=google and utm_medium=cpc must be lowercase exactly as GA4 expects. Not Google, not PPC, not paid, unless you intentionally want a different channel group.

You usually do not paste {gclid} into the suffix yourself; auto-tagging adds the click ID. Keep auto-tagging enabled even when you also use a Google Ads ↔ GA4 link for cost data and audiences.

Parallel tracking

Parallel tracking is mandatory for Search, Shopping and Display (and most other campaign types). On click, the browser goes straight to the landing page while tracking requests fire in the background. That is why click trackers must return a fast HTTPS 302, and why the Final URL suffix — not the template — is the safe place for analytics parameters. Full breakdown of what breaks vs what works: parallel tracking and redirects.

Plan for two consequences: any measurement that assumed the browser would walk the redirect chain synchronously will break, and your click tracker must support parallel tracking explicitly. Confirm with the vendor rather than assuming — then use dual-field recipes such as ClickPatrol + Hyros or ClickPatrol + Northbeam when a redirect owns Tracking template and attribution keys sit in the suffix. Browse certified click trackers by redirect vs Final URL suffix.

Validating before you ship

  1. Use the Test button next to the template field. It checks that the destination loads; it does not prove your parameters are correct.
  2. Paste the resolved URL into a browser and confirm the landing page renders with parameters after redirects.
  3. Confirm the site does not strip unknown query strings (CMS canonicals, cookie tools, and “clean URL” plugins do this silently).
  4. Check GA4 Realtime — session source/medium should land in Paid Search for google / cpc.
  5. Watch URL length. Final URL plus suffix can truncate if you pack every ValueTrack key you have ever heard of.

For campaign-level UTM drafting outside Google Ads, use the Campaign URL builder.

Common failure modes

Frequently asked questions

Should UTM parameters go in the tracking template or the final URL suffix?

The Final URL suffix. Parameters there persist through redirects and are compatible with parallel tracking. Reserve the tracking template for redirect structure.

Does changing the tracking template restart ad learning?

Changing it at account, campaign or ad group level does not send ads back for review. Changing URLs at the ad level can.

Can I use auto-tagging and manual UTM tags together?

Yes. Auto-tagging adds gclid for Google Ads and offline conversion imports; UTM parameters feed GA4 and other tools. GA4 gives precedence to manual UTM values when both exist.

Should I use campaign names or campaign IDs in utm_campaign?

IDs are more robust because renaming a campaign will not fragment historical data. Use names only if your reporting layer cannot join IDs to labels.

Why are some of my parameters empty?

ValueTrack returns an empty string when the parameter does not apply to that click — {placement} on Search, for example. Expected behaviour, not an error.

Related on trackingtemplates.com

← All documentation