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 | social | |
| LinkedIn ad | paid_social | |
| Newsletter | newsletter | |
| Cold email | outbound | |
| Google Ads | 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 | ||
| Medium | social | social |
| Campaign | Q4 Launch | q4-launch |
| Content | carousel-1 | carousel-1 |
With lower-casing on, the builder returns:
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
- Write down your naming convention. List the allowed sources and mediums, all lower case with hyphens, and share it with everyone who creates links.
- Keep campaign names stable. Use the same campaign value across every channel in one campaign, and vary only source, medium and content.
- Test before sending. Open the tagged link and check that the visit appears in GA4 Realtime with the right source and medium.
- Tag only external links. Never add UTM tags to links between pages on your own site.
- 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.
Related tools
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.