UTM builder / Google Ads
Google Ads UTM builder
Build the text for the Final URL suffix field in Google Ads. ValueTrack parameters fill in each click's campaign, keyword and ad, so one suffix covers a whole account.
Using Google Analytics 4? Read this first.
Google Ads turns on auto-tagging by default for new accounts. It adds a
gclid to each click, and Google's help says that in GA4, "auto-tagging is
prioritized over manual tagging due to the absence of an override option." So if you
report in GA4 with auto-tagging on, GA4 gives the auto-tagging data priority over your UTMs. Add
UTMs when you also report in a tool that isn't linked to your Google Ads account.
Where to paste it
Google Ads accepts a Final URL suffix at the account, campaign, ad group, ad and keyword levels, and on sitelinks. Google attaches it to the end of the landing page URL. Because the ValueTrack values are filled in for each click, a suffix like this one can sit at the account level.
What the ValueTrack values mean
{campaignid} | Campaign ID |
{adgroupid} | Ad group ID |
{keyword} | On the Search Network, the keyword from your account that matched the search |
{matchtype} | Match type: e exact,
p phrase, b broad, a AI Max keywordless |
{network} | Where the click came from: g
Google search, s search partners, d Display Network |
{device} | m mobile, t tablet,
c computer |
{creative} | A unique ID for your ad |
Before you publish
{campaignid} is a number. It gives the campaign's ID,
which stays the same when you rename the campaign. For readable names in reports, set the
suffix at the campaign level and type the campaign's name into Campaign above.
UTM tags go in the suffix. A tracking template has to include
{lpurl}, which inserts your final URL; Google warns that without it your
landing page URL will break. UTM tags don't need a template, because the suffix is added
to the landing page URL directly.
Pick a casing and keep it. Google Analytics treats google and
Google as different sources, so keep every value lowercase.
Sources, checked 17 September 2026: Google Ads Help, About auto-tagging, Set up tracking with ValueTrack parameters and Add a Final URL suffix.
Also: Facebook ads UTM builder, LinkedIn Ads UTM builder, and the general UTM builder for any other link.