GetGTM
Menu (toggle navigation)

Free tool · no sign-up

UTM link builder

Paste a destination URL, pick a preset or type a source, medium and campaign, and copy a clean tagged link. The builder keeps existing query parameters and fragments, replaces old UTM tags and warns about case, spaces and missing fields.

Last updated

Quick presets

Enter a destination URL and a source to build your tagged link.

What this tool does

The UTM link builder turns a plain URL into a tagged link that tells Google Analytics exactly where each visit came from. You paste a destination URL, choose a preset or type a source, medium and campaign, and the builder adds the matching campaign parameters. It follows the Google Analytics campaign URL parameters, and most other analytics tools read the same utm_ parameters.

The builder also catches the small mistakes that quietly ruin campaign reports, such as mixed capitals and missing fields, before you share the link.

When to use it

Use the builder whenever you share a link to your site from somewhere you want to measure. Typical moments:

  • Posting on LinkedIn, so you can tell organic posts from paid ones.
  • Sending a newsletter or a cold email sequence, so email visits do not show up as direct traffic.
  • Running paid search or paid social ads.
  • Sharing a link with a partner, so referrals are credited to them.
  • Launching a campaign across several channels, where you need one campaign name and a different source per channel.

How it works

Inputs. You enter the destination URL, then a source (utm_source), medium (utm_medium) and campaign (utm_campaign). Content (utm_content), term (utm_term) and campaign ID (utm_id) are optional. Content is useful for telling apart two ads or two links in the same email; term is meant for paid search keywords.

Presets. Six presets fill in source and medium for common cases:

Preset Source Medium
LinkedIn post linkedin social
LinkedIn ad linkedin paid_social
Newsletter newsletter email
Cold email outbound email
Google Ads google cpc
Partner referral partner-name referral

Replace partner-name with the partner’s actual name.

Validation. The URL must be a full web address starting with http:// or https://, and the source must be filled in. Without those, the builder shows an error instead of a link.

Warnings. The builder still builds the link but flags these issues:

  • No medium, which makes it harder for GA4 to group the traffic into the right channel.
  • No campaign, which makes campaigns hard to tell apart.
  • Capital letters in a value, when lower-casing is turned off, because GA4 treats LinkedIn and linkedin as different sources.
  • Spaces in a value, when lower-casing is turned off, because spaces get encoded in the link and hyphens are easier to read and filter.
  • UTM parameters already in the URL, which will be replaced.

Normalising values. By default, the builder trims each value, lower-cases it and replaces spaces with hyphens. You can turn this off with the checkbox.

Building the link. The builder removes any existing utm_ parameters from the URL, keeps every other query parameter and any fragment after the hash, and adds the new parameters in a fixed order: source, medium, campaign, term, content and ID. Empty optional fields are left out.

Output. You get the tagged link with its length in characters, any warnings, and three standing recommendations: agree one naming convention, never tag internal links, and test the link before sending. You can copy the link or download it as a text file.

Where your data goes. Everything is built in your browser. Nothing you type is sent or stored. If you have accepted analytics cookies, we record that the tool was used, never your URL or values.

A worked example

Say you are promoting your pricing page in a LinkedIn carousel post as part of a fourth-quarter launch. The page URL already has a plan parameter and a link to the FAQ section. This is a hypothetical example.

Field You type Used in the link
Destination URL https://example.com/pricing?plan=team#faq kept as is
Source LinkedIn linkedin
Medium social social
Campaign Q4 Launch q4-launch
Content carousel-1 carousel-1

With lower-casing on, the builder returns:

https://example.com/pricing?plan=team&utm_source=linkedin&utm_medium=social&utm_campaign=q4-launch&utm_content=carousel-1#faq

The plan parameter and the FAQ fragment survive, and the values are consistent with every other link tagged the same way. If you had turned lower-casing off, the builder would have warned you about the capital letters in LinkedIn and Q4 Launch and the space in the campaign name.

How to read the result

The result shows your tagged link, ready to copy or download, with its length in characters. Long links still work, but they are harder to read when pasted into a post or a document, so a shorter campaign name or content value is worth considering if the link will be visible.

The result is green when there are no warnings and amber when there is at least one. An amber result still gives you a working link. Each warning sits in the evidence list as a check to review, such as a missing medium or capital letters in a source. Decide whether each one matters for this link: a missing campaign on a one-off partner link may be fine, while inconsistent capitals across a whole campaign will split your reports.

The three recommendations under the link are the same every time. They cover the habits that keep campaign data clean across a team, not just this one link.

How to act on the results

  1. Write down your naming convention. List the allowed sources and mediums, all lower case with hyphens, and share it with everyone who creates links.
  2. Keep campaign names stable. Use the same campaign value across every channel in one campaign, and vary only source, medium and content.
  3. Test before sending. Open the tagged link and check that the visit appears in GA4 Realtime with the right source and medium.
  4. Tag only external links. Never add UTM tags to links between pages on your own site.
  5. Review monthly. Look for duplicate sources in your reports and fix the convention, not just the data.

Common mistakes

  • Inconsistent capitals. LinkedIn, linkedin and LINKEDIN become three sources.
  • Tagging internal links. This overwrites the real source of the visit.
  • Putting everything in the campaign name. Use content and term for variants, so campaigns stay comparable.
  • Leaving out the medium. Traffic then lands in the wrong channel group, or none.
  • Sending untested links. A broken URL or typo in a source is easy to catch before sending and hard to fix after.

Once visits are tracked by source, the funnel leak calculator shows which step of your funnel loses the most people. If your links go out in cold email, check your sending set-up with the DMARC, SPF and DKIM checker. For help setting up tracking and attribution across your stack, see our RevOps and CRM automation service.

Questions buyers ask us

UTM link builder: frequently asked questions

What is a UTM parameter?

A UTM parameter is a tag added to the end of a link, such as utm_source=linkedin, that tells your analytics tool where a visit came from. Google Analytics reads these campaign parameters to group traffic by source, medium and campaign. Without them, clicks from emails, documents and many apps often show up as direct traffic.

Which UTM parameters do I need?

utm_source is required: it names where the click came from, such as linkedin or newsletter. The builder also warns if utm_medium or utm_campaign is missing, because medium helps GA4 group traffic into the right channel and campaign lets you tell efforts apart. Term, content and campaign ID are optional.

Are UTM parameters case-sensitive?

Yes. GA4 treats LinkedIn and linkedin as two different sources, which splits one channel across several report rows. The builder lower-cases values and replaces spaces with hyphens by default. If you turn that off, it warns you when a value has capital letters or spaces.

Should I add UTM tags to links on my own website?

No. Use UTM tags only on links that bring people to your site from somewhere else, such as social posts, emails, ads and partner pages. Tagging links between your own pages starts a new attribution for the visit and overwrites the original source, so your reports lose track of where the visitor really came from.

What happens if my URL already has parameters?

The builder keeps every existing query parameter that is not a UTM tag, and keeps any part of the link after a hash, such as a link to a section of the page. If the URL already has UTM parameters, the builder warns you and replaces them with the new values, so you never end up with two conflicting sources.

Is my data stored?

No. The link is built in your browser and nothing you enter is sent to GetGTM or anyone else. If you have accepted analytics cookies, we record only that the tool was used, never your URL or values. You can copy the link or download it as a text file.

Guides that use this tool

  • B2B marketing attribution without a marketing team

    Early-stage B2B startups do not need multi-touch attribution software. Combine three cheap signals: UTM-tagged links, a source field on every contact and deal, and a free-text 'how did you hear about us' question. Review them together each month and judge channels by opportunities, not clicks.

  • UTM naming convention for B2B teams, with a template

    A UTM naming convention is a short written rulebook for how your team tags links. Use lower case and hyphens, pick utm_medium values that GA4 already recognises, keep one campaign name across channels and use utm_content for variants. The template below covers every common B2B channel.

More free tools

  • GTM gap finder

    Pick your stage and biggest challenge, rate your ICP, positioning, pricing and best channel, then add the numbers you track. The gap finder scores six areas, weights them for your stage, ranks your three biggest gaps and gives you a four-week plan.

  • DMARC, SPF and DKIM checker

    Enter your sending domain and the checker reads its SPF, DKIM, DMARC and MX records from live public DNS. You get a pass, warning or fail for each, the SPF lookup count against the limit of 10, and a short list of fixes in priority order.

  • SaaS unit economics calculator

    Enter revenue per customer, gross margin, CAC and, if you have it, monthly churn. The calculator shows CAC payback, gross-profit LTV, LTV:CAC and break-even with churn, plus a sensitivity table showing how price, CAC and churn change the result.

Want help acting on the results?

Tell us where pipeline is stuck. We will tell you plainly what we would change first and whether we are the right team to do it.

  1. Step 1

    You get in touch

    Tell us what you sell, who you sell to and where pipeline is stuck.

  2. Step 2

    A 15-minute GTM call

    We talk through your ICP, current channels and goals with someone who runs this work day to day.

  3. Step 3

    A clear next step

    You leave knowing what we would do first, what it involves, and whether we are the right fit.