virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
tools / google ads utm builder

Google Ads tracking template builder

Type the final URL of your ad and a campaign name, then pick the ValueTrack parameters Google should fill in on each click. The tool writes a Final URL suffix and a {lpurl} tracking template, and shows the landing URL with sample values. Nothing leaves this page.

ValueTrack parameters to include

Final URL suffix
Tracking template, if you use that field instead
Landing URL preview, with example values

Rules: utm_source is fixed to google. Your campaign name and medium are lowercased, with hyphens for spaces. Every ticked parameter takes the first free UTM tag in the table further down, and one that finds none keeps its own name, as in device={device}. Sample IDs and the keyword analytics stand in for real click values in the preview.

Google Ads counts clicks and the conversions its own tag sees. Virling adds the money: each payment is credited to the utm_campaign of the visit that led to it, next to the campaigns from every other channel. 14 days free.

Start free trial

Related: Google Ads revenue tracking, gbraid, wbraid and gad_source, gclid vs UTM tags, UTM builder, UTM naming convention template.

Final URL suffix or tracking template

Google Ads keeps both fields under URL options, and both take ValueTrack parameters, which Google swaps for details of the click when the ad is served. The difference is in what each field controls:

Final URL suffixTracking template
What you enterParameters only, such as utm_source=googleA whole URL with a tag that inserts the final URL, such as {lpurl}
What it doesAttaches the parameters to the end of the landing page URLBuilds the URL from the template, which can send the click through a tracker
With parallel trackingThe visitor lands on the final URL with the suffix on itThe visitor goes to the final URL and the template URL loads in the background
If it is wrongA tag is missing or misspelledWith no URL tag at account, campaign or ad group level, the landing page URL breaks

Because of parallel tracking, a template that points at a click tracker is loaded in the background and the visitor never passes through it, so UTM tags belong on the final URL, which is what the suffix does. Google’s own examples also use a template such as {lpurl}?device={device} to add parameters to the landing page, so the builder gives you that form too. Choose one. Google appends the suffix to the final URL first and then drops the result into {lpurl}, so tags placed in both would show up twice.

A suffix or template can be set on the account and on narrower levels such as the campaign. The most specific one is used, and it replaces the broader one, so a campaign suffix has to repeat every tag you still want from the account suffix.

Google Ads Help pages behind this section, read on 2026-11-25: Add a Final URL suffix, About tracking in Google Ads, Set up your tracking template, About parallel tracking and Set up tracking with ValueTrack parameters; Google Ads API docs, Serving URL rules.

ValueTrack parameters and the UTM tag each one fills

Google documents ValueTrack in lowercase, in Set up tracking with ValueTrack parameters (checked again on 2026-11-27). The second column paraphrases that page. The third is our choice, and the builder follows it.

ParameterWhat it returnsUTM tag
{campaignid}The campaign ID, meant for tracking set at account levelutm_campaign, when the campaign name is empty
{creative}A unique ID for your adutm_content
{adgroupid}The ad group IDutm_content, if the ad ID is off
{assetgroupid}The asset group ID, for Performance Maxutm_content, if the ad ID and ad group ID are off
{keyword}The keyword in your account that matched; blank when the ad matched without keywordsutm_term
{targetid}The ID of the keyword, remarketing list or other target that triggered the adutm_term, if the keyword is off
{placement}The site where the ad was clicked, or the placement targeting that matched itutm_term, if the keyword and target ID are off
{matchtype}e exact, p phrase, b broad, a AI Max keywordlessNone, sent as matchtype
{network}g Google search, s search partners, d Display, ytv YouTube, vp Google video partners, gtv Google TV, x all Performance Max traffic, e App campaigns for engagementNone, sent as network
{device}m mobile, t tablet, c computerNone, sent as device
{loc_physical_ms}The ID of the location of the clickNone, sent as loc_physical_ms

There is no ValueTrack parameter for the campaign name, which is why the builder asks you to type one or fall back to {campaignid}. {network} is worth ticking when one campaign runs on search and search partners: network=s lets you split partner clicks out later in other tools. Google says Demand Gen does not support {keyword}, {targetid}, {placement} or {network}, and that a parameter it cannot fill becomes an empty space (About ValueTrack parameters).

Performance Max: why utm_term arrives empty

Google’s ValueTrack page says that when an ad matches without keywords, as in Performance Max, Dynamic Search Ads and AI Max for Search, {keyword} returns a blank value. So a Performance Max click built from the default suffix lands with utm_term= and nothing after it. Its table of parameters fully supported in Performance Max lists {campaignid}, {assetgroupid}, {device} and {loc_physical_ms}, and has no {keyword}, {matchtype} or {network}.

For a Performance Max campaign, untick Ad ID and Keyword and tick Asset group ID, so utm_content carries {assetgroupid} and the asset group, not the keyword, is what you compare. Keep a typed campaign name or tick Campaign ID as usual. If you set one account suffix for Search and Performance Max together, the empty utm_term on Performance Max clicks is expected and does not mean the suffix is broken.

Auto-tagging: gclid, gbraid and wbraid

Auto-tagging is on by default for new accounts, and it adds a gclid, the Google Click Identifier, to the landing URL (About auto-tagging, read on 2026-11-27). On some iOS traffic Google sends other parameters: gbraid when a web ad opens your app, and wbraid when an ad in an iOS app opens your webpage. All three are keys to records Google holds. None of them spells out a campaign to a tool outside Google, so the UTM suffix and auto-tagging go on the same ads, side by side. gbraid, wbraid and gad_source explained covers each parameter with Google’s sources.

Where to paste it in Google Ads

  1. For the whole account, open Account settings in the Admin menu and select Tracking Template.
  2. For one campaign, open Campaigns, select the Settings tab and click the pencil in the Tracking template column.
  3. Paste the suffix into Final URL suffix, with no question mark in front, and save.
  4. Click Test in URL options to confirm the URL still reaches your page. See test your landing page.
  5. Load the tested URL in a browser and look at the address once the page settles: if utm_campaign is gone, a redirect on your site stripped the query string.

A typed campaign name only makes sense on that one campaign. If you set the suffix on the account, clear the campaign name and tick Campaign ID, so every campaign gets its own utm_campaign. Google says changes to tracking templates take 24 to 48 hours to show in your ads, and that setting URL options at the ad group, campaign or account level does not send your ads back for approval.

A worked example

Leave the form as it loads and the suffix reads utm_source=google&utm_medium=cpc&utm_campaign=brand-search&utm_content={creative}&utm_term={keyword}, and the template is {lpurl}? followed by those same tags.

Say a search for analytics matches that keyword and the ad with ID 123456789012 is shown for https://example.com/pricing. The click opens https://example.com/pricing?utm_source=google&utm_medium=cpc&utm_campaign=brand-search&utm_content=123456789012&utm_term=analytics, plus a gclid when auto-tagging is on. The preview has no gclid, since Google only creates one for a real click.

What Virling reads from these tags

Virling reads the five utm_ tags and none of Google’s own parameters, so device, matchtype and the gclid are left for other tools. utm_medium=cpc makes the visit Paid; without a paid medium a click from google.com counts as Organic search, and one with no referrer at all as Direct (how channels are decided). Each payment is then joined to the visits before it, so revenue is grouped by utm_campaign: keep one style, a name or an ID, or the same campaign splits into two rows. The UTM naming convention template helps you write the names down, and Google Ads revenue tracking shows the whole setup. If you also advertise on LinkedIn, the LinkedIn ads dynamic UTM builder builds the tags for Campaign Manager.

questions

Google Ads tracking template FAQ

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

A final URL suffix holds only parameters, and Google Ads attaches them to the end of your landing page URL. A tracking template is a whole URL that needs a tag such as {lpurl} to insert the final URL, and it can point at a click tracker first. For UTM tags alone, the suffix is the simpler field.

What should a Google Ads tracking template for UTM tags look like?

Put {lpurl} first so Google inserts the final URL, then ? and the tags: {lpurl}?utm_source=google&utm_medium=cpc&utm_campaign=brand-search. A final URL that already carries a query string is handled by Google, which turns the template’s ? into &.

Should I fill in both the suffix and the tracking template?

Not with the same tags. Google adds the suffix to the final URL and then puts that URL into the template, so each tag would appear twice. Put UTM tags in the suffix, and keep the template for a click tracker if you use one.

Is there a ValueTrack parameter for the campaign name?

Google's list has {campaignid}, which returns the campaign ID, and no parameter for the campaign name. To see a readable name, type it in a suffix set on that campaign. To cover the whole account with one suffix, use the ID and look it up later.

Do I need UTM tags if auto-tagging is on?

Yes, for any tool outside Google. The gclid, and the gbraid or wbraid Google uses on some iOS traffic, only mean something to Google. Virling reads the UTM tags, so keep auto-tagging on and add the suffix as well.

Why is utm_term empty for my Performance Max campaign?

Performance Max matches ads without keywords, and Google says {keyword} returns a blank value in that case. Tick Asset group ID instead, so utm_content tells the asset groups apart, and expect utm_term to stay empty on those clicks.

Why does my Google Ads traffic show as organic search?

The suffix is missing, or its medium is not a paid one. A visit from google.com with no paid utm_medium is sorted by its referrer, which makes it Organic search; utm_medium=cpc is checked first and makes it Paid.

See which Google Ads campaign brings paying customers

This tool writes the tags. Virling measures what they bring: it links every visit to the payment it led to, so you see the customers and revenue behind each campaign from your real numbers. 14 days free.

Start free trial See the demo