Free tool

UTM builder for paid ads

Build tracking parameters for Google Ads, Meta, Microsoft Advertising, TikTok and LinkedIn. Presets use each platform's dynamic values, give you the exact string for the Final URL suffix or URL parameters field, and flag values that would land in the wrong GA4 channel.

  • Platform presets with dynamic values
  • GA4 channel checks
  • Runs in your browser

Paste into Final URL suffix

Campaign or account settings → Campaign URL options → Final URL suffix

utm_source=google&utm_medium=cpc&utm_id={campaignid}&utm_term={keyword}&utm_content={creative}

Full link (to test or share)

Add a landing page URL to see the full link
  • Add the landing page URL.
  • utm_campaign is required for GA4 to attribute the visit.
  • Keep Google Ads auto-tagging on. With Google Ads linked to GA4, the gclid supplies the campaign data; the UTMs add readable values for GA4 explorations and for other analytics tools.

Dynamic values by platform

Dynamic values are replaced by the ad platform on every click, so one parameter string covers every campaign, ad group and ad. Sources: Google Ads ValueTrack, Meta URL parameters, Microsoft Advertising URL parameters.

Google Ads

Final URL suffix: Campaign or account settings → Campaign URL options → Final URL suffix

{_campaign}
Custom parameter: add _campaign in the campaign's URL options
{campaignid}
Campaign ID
{adgroupid}
Ad group ID
{creative}
Ad ID
{keyword}
Keyword
{matchtype}
Match type (e, p, b)
{network}
Network (g, s, d, ytv, x)
{device}
Device (m, t, c)
{placement}
Placement (Display)

Meta (Facebook & Instagram)

URL parameters: Ad level → Destination → Tracking → URL parameters

{{campaign.name}}
Campaign name
{{campaign.id}}
Campaign ID
{{adset.name}}
Ad set name
{{adset.id}}
Ad set ID
{{ad.name}}
Ad name
{{ad.id}}
Ad ID
{{placement}}
Placement
{{site_source_name}}
Site source (fb, ig, msg, an)

Microsoft Advertising

Final URL suffix: Account, campaign or ad group settings → Campaign URL options → Final URL suffix

{Campaign}
Campaign name
{CampaignId}
Campaign ID
{AdGroup}
Ad group name
{AdGroupId}
Ad group ID
{AdId}
Ad ID
{keyword}
Keyword
{MatchType}
Match type (e, p, b)
{Device}
Device (m, t, c)
{Network}
Network (o, s, a)

TikTok Ads

URL parameters: Ad level → Destination → URL → Build URL parameters, or append to the URL

__CAMPAIGN_NAME__
Campaign name
__CAMPAIGN_ID__
Campaign ID
__AID_NAME__
Ad group name
__AID__
Ad group ID
__CID_NAME__
Ad name
__CID__
Ad ID
__PLACEMENT__
Placement

A naming convention that survives reporting

ParameterSearch adsSocial adsRule
utm_sourcegoogle, bingfacebook, instagram, linkedin, tiktokThe site the click comes from, never the channel.
utm_mediumcpcpaid_socialMust read as paid to GA4, or the visit lands in an organic channel.
utm_campaignbrand_search_usprospecting_spring_2026Lowercase, underscores, the same name as in the ad platform.
utm_termthe keywordthe ad set or audienceLets you split results below campaign level.
utm_contentthe adthe creativeCompares variations of the same ad.

More on structuring campaigns: Meta Andromeda campaign structure and Google Ads search campaign setup.

Questions

Do I still need UTMs on Google Ads if auto-tagging is on?

Keep auto-tagging on: with Google Ads linked to GA4, the gclid gives GA4 the campaign, ad group and keyword. A Final URL suffix with UTMs still helps when other analytics tools, your CRM or a form handler read the landing URL, and it keeps naming consistent across platforms.

Which utm_medium should paid ads use?

GA4 puts a visit in Paid Search when the source is a search site and the medium matches cpc, ppc, retargeting or starts with paid; Paid Social uses the same medium rule with a social source. cpc for search ads and paid_social for social ads are the safe choices. A medium like social or facebook sends paid clicks to Organic Social.

Why should UTM values be lowercase?

GA4 treats values as case-sensitive, so Facebook, facebook and FACEBOOK become three sources. Lowercase values with underscores keep reports grouped. Platform macros such as {{campaign.name}} are left as they are; the campaign names inside them are whatever you named the campaigns.

Where do the parameters go in Meta Ads Manager?

At the ad level, under Destination → Tracking → URL parameters. Paste the parameter string without a question mark; Meta appends it to the website URL and fills the {{ }} values on each click.

What is utm_id for?

utm_id is the campaign ID. GA4 uses it to match data imports such as cost data from ad platforms that do not have a native integration. The presets fill it with the platform's campaign ID macro.