Automatic Tracking
    Free AdsX tool

    UTM Builder for Google Ads, Meta and affiliate links

    Build the right link in seconds and see which campaign, ad and keyword every visit came from. It runs in your browser: no link ever leaves your machine.

    Channel

    Fill in the address and fields to see the link.

    How to use the UTM builder

    1. 1

      Paste the address

      The page the click goes to: your presell, your sales page or the affiliate link.

    2. 2

      Pick the channel

      Google Ads, Meta, TikTok, WhatsApp, email. The fields fill in with the channel's standard and its dynamic parameters.

    3. 3

      Copy the checked link

      The checker flags accents, uppercase, repeated parameters and the mistakes that wipe out where the visit came from.

    Stop building UTM links. Use AdsX.

    With AdsX, tracking is automatic: you know where every sale came from without building a single link.

    See automatic tracking

    What are UTM parameters?

    UTM parameters are tags you add to the end of a link to say where the visit came from. When someone clicks yourdomain.com/offer?utm_source=google&utm_medium=cpc, Google Analytics records that the visit came from Google, through a paid ad.

    The name comes from Urchin Tracking Module, the tool Google bought in 2005 that became Google Analytics. The format stuck: today almost every analytics tool, CRM and sales tracker reads UTMs.

    Without UTMs, every click from ads, posts and emails lands in the same bucket. With them, you see which campaign brought the visit and, matched with sales, which one makes a profit and which only burns your ad spend.

    The 5 UTM parameters

    utm_source: who sent the visit

    The source site or tool: google, facebook, tiktok, newsletter, whatsapp. Required.

    utm_medium: the type of traffic

    How the visit arrived: cpc (pay-per-click ad), paid_social (social media ad), email, social (organic post). Required. Google Analytics reads source and medium together to sort channels: google + cpc becomes Paid Search, facebook + paid_social becomes Paid Social.

    utm_campaign: which campaign

    The campaign name or ID: black-friday, product-x-us. In ads, use the dynamic parameter ({campaignid} on Google, {{campaign.name}} on Meta) so you don't need one link per campaign.

    utm_term: the keyword

    Optional. On Google Search, the keyword that triggered the ad ({keyword}). On social, many people use it for the audience or ad set.

    utm_content: the ad or variation

    Optional. Tells apart ads in the same campaign or two buttons on the same page: testimonial-video, top-banner.

    Source vs. medium: the source says who (google, facebook) and the medium says how (cpc, email). The same Google can send paid (cpc) and organic (organic) visits; that's why both exist.

    GA4 also accepts utm_id (campaign ID), utm_source_platform, utm_creative_format and utm_marketing_tactic. Use them if you need to, through the extra parameter field.

    How to see UTMs in Google Analytics 4

    In GA4, open Reports → Acquisition → Traffic acquisition and switch the primary dimension to Session source / medium or Session campaign. Each UTM combination becomes a row, with sessions, engagement and conversions.

    GA4 is case-sensitive: Facebook and facebook show up as two sources. That's why the checker warns you whenever a UTM value has an uppercase letter.

    UTMs in Google Ads: auto-tagging, gclid and ValueTrack

    With auto-tagging on (the default), Google Ads adds a gclid to every click. The gclid is that click's unique ID: with it, linked Google Analytics knows the campaign, and a conversion can be credited to the exact click.

    UTMs are still useful for everything that doesn't read the gclid: your affiliate network, CRM, trackers and other analytics tools. The right place for them is the Final URL suffix, under Campaign settings → Campaign URL options. The ad's final URL stays clean, and the suffix applies to every ad in the campaign.

    Values in braces are ValueTrack: Google replaces {campaignid} with the campaign ID, {keyword} with the keyword and {device} with the device, at click time. The table below lists the most used ones.

    The Tracking template is something else: it's for tracking tools that receive the click and redirect to the page. It must contain {lpurl}, which Google replaces with the final URL. If you don't use one of those tools, stick with the suffix.

    Google Ads ValueTrack parameters

    The ones advertisers use most. Google replaces each with the real value at click time.

    ParameterWhat it gives you
    {gclid}Google click ID (ties the sale to the click)
    {campaignid}Campaign ID
    {adgroupid}Ad group ID
    {creative}Ad ID
    {keyword}Keyword that triggered the ad
    {matchtype}Match type: e (exact), p (phrase), b (broad)
    {network}Network: g (Search), s (partners), d (Display), ytv (YouTube), x (Performance Max)
    {device}Device: m (mobile), t (tablet), c (computer)
    {placement}Site where the ad showed (Display and YouTube)
    {targetid}Target ID (kwd- keyword, aud- audience, dsa- dynamic ad)
    {loc_physical_ms}ID of the city the click came from
    {lpurl}The ad's final URL (start of the tracking template)(tracking template only)

    UTMs in Meta Ads (Facebook and Instagram)

    In Meta, UTMs go in the URL parameters field, in each ad's Tracking section, not in the website URL. Dynamic parameters use double braces:

    • {{campaign.name}}: campaign name
    • {{adset.name}}: ad set name
    • {{ad.name}}: ad name
    • {{site_source_name}}: where it showed (fb, ig, msg, an)
    • {{placement}}: placement (feed, stories, reels)

    Meta adds the fbclid on its own, just like Google does with the gclid. Never type an fbclid into a link.

    TikTok Ads works the same way, with macros between underscores: __CAMPAIGN_NAME__, __AID_NAME__ (ad group) and __CID_NAME__ (ad). The click gets a ttclid.

    UTM naming convention

    UTMs only help when everyone writes them the same way. A simple convention covers almost everything:

    • All lowercase: facebook, never Facebook.
    • No accents, no spaces: xmas-sale, not Xmas Sale.
    • Hyphens between words, underscores only where GA4's standard uses them (paid_social).
    • Same source for the same place: pick facebook or fb and never mix them.
    • General to specific in the campaign: product-country-goal, like collagen-us-sales.
    • Write the convention down in a spreadsheet the whole team uses.

    Mistakes that break tracking

    All of these go unnoticed, because the link opens normally. What disappears is where the visit came from:

    • # before ?: everything after # stays in the browser and never reaches Analytics.
    • Two ? in the same link: from the second on, parameters get lost.
    • Repeated parameter: each tool reads a different one, and reports don't match.
    • gclid or fbclid typed by hand: every visit becomes a single click.
    • Encoded macro (%7Bcampaignid%7D): the ad platform doesn't recognize it and the text arrives as is.
    • Uppercase, accents and spaces: the same campaign splits into several rows.
    • UTMs on internal links of your own site: the visit is recounted with the wrong source. Use UTMs only on links coming from outside.

    To check a finished link, paste it into the Check a link tab.

    UTMs show the click. The sale happens somewhere else.

    A UTM tells you where the visit came from, but an affiliate sale happens on the network's checkout, outside your site. Google Analytics sees the click; Google Ads alone doesn't know which click bought.

    Without that, Google optimizes for clicks and visits, not buyers. A campaign only learns to find people who buy when each affiliate sale is tied to the gclid of the click that made it.

    UTM FAQ

    What does UTM stand for?

    UTM stands for Urchin Tracking Module, the tool that became Google Analytics. They're parameters at the end of a link (utm_source, utm_medium, utm_campaign, utm_term and utm_content) that say where each visit came from.

    Which UTM parameters are required?

    utm_source, utm_medium and utm_campaign. Without them, Google Analytics can't classify the visit and groups it as (not set). utm_term and utm_content are optional.

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

    For linked Google Analytics, the auto-tagging gclid is enough. UTMs are for everything that doesn't read the gclid: affiliate networks, CRMs, trackers and other analytics tools. Put them in the campaign's Final URL suffix.

    Where do I add UTMs in Google Ads?

    In the Final URL suffix, under Campaign settings → Campaign URL options. You can also set it for the whole account or an ad group. Avoid adding UTMs to each ad's final URL: it's more work and every edit sends the ad back to review.

    Where do I add UTMs in Facebook and Instagram Ads?

    In the URL parameters field, in the ad's Tracking section. Paste only the part after the ?, with dynamic parameters like {{campaign.name}} and {{ad.name}}.

    Do UTMs hurt SEO or ads?

    No, when used on links coming from outside your site (ads, posts, emails). What hurts is UTMs on internal links: the visit is recounted with the wrong source, and Google may index duplicate versions of the page.

    What is a gclid?

    It's the unique ID of each Google ad click, added by auto-tagging. It ties the visit, and later the sale, to the exact click: campaign, ad group, keyword and time. Never copy a gclid into a link, because every click has its own.

    How do I pass the gclid to my affiliate network?

    Put {gclid} in the network's tracking field through the Final URL suffix, for example tid={gclid} on ClickBank or sck={gclid} on Hotmart. This tool's Affiliate link tab shows the right field for 32 networks. If the ad goes to a presell, the presell has to pass the gclid to the offer link.

    Is this UTM builder free?

    Yes, with no sign-up and no limits. The link is built in your browser and no address you type is sent to any server.

    AdsX - Everything affiliates needCampaigns that learn from every new sale

    Presell, domain, hosting and every click's gclid tied to the sale, all in one place.

    Discover AdsX