Skip to content

PubWeb

Tools

UTM builder

UTM builder: campaign links that land under the right source every time

Add utm_source, utm_medium and utm_campaign to any page URL, then copy the link or only the parameters. Built for publishers and media buyers who need each visit under the right source.

Runs in your browser. What you type stays on this page.

UTM builder

Runs in your browser. What you type stays on this page.

What UTM parameters are and what this builder writes

UTM parameters are tags at the end of a URL that tell your analytics where a visit came from. UTM stands for Urchin Tracking Module, after Urchin, the analytics product Google bought and turned into Google Analytics. Three of them do the work in every report: utm_source names who sent the visit (facebook, newsletter), utm_medium the kind of traffic (paid_social, cpc) and utm_campaign the campaign (black_friday).

This builder takes your page URL and adds up to six parameters, in this order: utm_source, utm_medium, utm_campaign, utm_term, utm_content and utm_id, always before any #anchor. Parameters already in the page URL stay where they are, and a utm_ tag of the same name is replaced by the value in its field.

With the tool’s example (page https://example.com/article?ref=home#comments, source facebook, medium paid_social, campaign black_friday and content carousel_a), the campaign URL is https://example.com/article?ref=home&utm_source=facebook&utm_medium=paid_social&utm_campaign=black_friday&utm_content=carousel_a#comments. The ref=home parameter and the #comments anchor stay where they were.

How to use it

  1. Paste the address of the page into Page URL. If you leave out https://, the tool adds it.
  2. Under Quick fill, pick the traffic you are tagging, such as Facebook ads, Google Ads, Newsletter or Push notification, or type Source · utm_source and Medium · utm_medium yourself.
  3. Name the campaign in Campaign · utm_campaign. Fill Term · utm_term, Content · utm_content and Campaign ID · utm_id only when you use them.
  4. Keep Lowercase values and Spaces become underscores switched on, unless you need capitals or spaces in a value.
  5. Read Check before you use it, then copy the Campaign URL, or URL parameters only when the ad platform has a separate field for them.
  6. Click Open to load the link once and confirm it reaches the right page.

What goes in each parameter

utm_source is who sent the visit: facebook, tiktok, google, newsletter. utm_medium is the kind of traffic: paid_social, cpc, push. utm_campaign is the campaign or promotion. Leave any of the three empty and reports show (not set) in its place, so the tool lists empty required fields under Check before you use it.

utm_content tells apart the ads or links of one campaign (carousel_a, video_15s), and utm_term holds the keyword or audience. utm_id carries the campaign’s ID from the ad platform. GA4 uses it to match imported cost data, so the builder never converts it to lowercase.

How the presets map to GA4 channels

GA4 sorts manually tagged visits into channels by source and medium. Each Quick fill button sets a pair those rules know: paid_social for Facebook, Instagram, TikTok and Kwai ads and cpc for Google Ads, two mediums GA4 reads as paid (it treats a medium that contains cp, equals ppc or retargeting, or starts with paid as paid); push for push notifications, filed under Mobile Push Notifications because the medium ends in push; email for Newsletter, which lands in Email; and social for an organic Facebook post, which goes to Organic Social.

A paid medium counts as Paid Social only when GA4 lists the source as a social network. When it does not, the visit counts as Paid Other, so check how your property reports a source before you settle on its name.

Naming rules that keep reports clean

Reports list Facebook and facebook as two different sources, and a space in a link turns into %20. That is why both clean-up switches start on: values are lowercased (except Campaign ID · utm_id) and each run of spaces becomes one underscore.

Pick one spelling per source and keep it: if it is facebook today, never fb or meta next month. Letters, digits, hyphens and underscores stay readable in the link. Accents, spaces, ampersands and hash signs still work but are percent-encoded, and the tool warns you when that happens.

Do not tag links between pages of your own site. A UTM tag on an internal link overwrites the real source of the visit and splits it in your reports.

What the warnings mean

Required and empty: source, medium or campaign is blank. Will be percent-encoded in the link: a value holds a character that cannot reach the link as written. Already in the page URL, now taken from the fields above: the address you pasted carried that utm_ tag, and the field’s value replaces it, while an empty field removes it.

Click IDs are the exception. If the page URL already carries gclid, gbraid, wbraid, fbclid, ttclid or msclkid, the tool keeps it as written and warns you: an address copied after clicking an ad ties every visit from your link to that one click, so remove it.

Fixed values here, click-time values on the ad

This builder writes fixed values, which suit a newsletter, a push, a bio link or a printed flyer. In paid campaigns you usually want the ad platform to write the campaign, ad set and ad into each click instead.

For that, use the platform’s macros, such as {{campaign.id}} on Meta, in the ad’s URL parameters field. The UTM parameters for ads tool builds that string for Meta, TikTok, Kwai and Google Ads.

Questions

What does UTM mean in marketing?

UTM stands for Urchin Tracking Module. In practice it means the utm_ tags added to a link, such as utm_source and utm_medium, so analytics can show which campaign, site or e-mail sent each visit.

Which UTM parameters are required?

utm_source, utm_medium and utm_campaign. Each one left empty shows as (not set) on that dimension in reports, which is why the builder flags it. utm_term, utm_content and utm_id are optional.

What are examples of utm_source and utm_medium?

The presets use facebook, instagram, tiktok, kwai, google, newsletter and web_push as sources, and paid_social, cpc, push and social as mediums, plus email for Newsletter. The source is who sent the visit; the medium is the kind of traffic.

Does the order of UTM parameters matter?

No. Analytics reads each utm_ parameter wherever it sits in the query string. The builder always writes them in the same order, which makes links easy to compare.

Should I add UTM parameters to internal links?

No. A UTM tag on a link inside your own site overwrites the real source of the visit and splits it in your reports. Use them only on links that bring people in from outside.

How do I add UTM parameters to a URL that already has parameters?

Paste the whole address into Page URL. The builder adds the tags after the parameters already there, keeps any #anchor at the end, and replaces a utm_ tag the address already had.

Is the URL I type sent anywhere?

No. The link is built in your browser and nothing you type is sent to a server. Only the Open button loads the page, in a new tab, when you click it.

All free tools

PubWeb

See what each tagged link earns

In the PubWeb panel, analytics breaks visits down by site, UTM source, medium and campaign and ties them to the ad revenue they earned. This builder is also in the panel’s Tools menu.