UTM Parameter Builder
Build campaign tracking URLs with UTM parameters in seconds. Preview the full link, validate each field, and copy it ready to use.
How this UTM builder assembles, validates and remembers your campaign links
UTM parameters are a convention, not a protocol enforced by browsers, they exist only because Google Analytics and most other analytics platforms agree to read five specific query string keys and attribute a visit’s traffic source based on their values. This tool runs entirely client side. It builds the query string in your browser, validates the required fields before letting you copy anything, and stores your recent links in your browser’s own localStorage, never on a server.
The five standard parameters, plus one extra
| Parameter | Required | Purpose |
|---|---|---|
| utm_source | Yes | The referrer, for example google, newsletter, or facebook. |
| utm_medium | Yes | The marketing medium, for example cpc, email, or social. |
| utm_campaign | Yes | The specific campaign, product, or promotion name. |
| utm_term | No | Paid search keyword, mainly used with Google Ads. |
| utm_content | No | Distinguishes similar content or links within the same ad or email, useful for A/B testing. |
| utm_id | No | A newer addition tying the link to a specific campaign ID in Google Ads or Analytics, not part of the original five but included here since it appears in current Google documentation. |
How the link actually gets built
encodeURIComponent, so spaces, ampersands, and other special characters in a campaign name never corrupt the resulting URL.
Saved history
Clicking Save writes the finished URL and a timestamp into a localStorage array capped at the ten most recent entries, so you can revisit or copy a link you built earlier without regenerating it from scratch.
CSV export
The saved history can be exported as a two column CSV of URL and timestamp, useful for pasting into a campaign tracking spreadsheet alongside spend and performance data.
Campaign tracking references
- Google Analytics’ guide to custom campaign parameters is the closest thing to an authoritative source on what each UTM field means and how it is used in reporting.
- Google’s own Campaign URL Builder is the reference implementation this convention is built around.
Attribution this makes possible
Tagging links for a paid search campaign so spend can be tied back to conversions in Analytics, building distinct tracked links for each email newsletter send, generating separate utm_content values to A/B test two versions of the same social ad, and keeping a running, exportable log of every campaign link a small marketing team has generated this quarter.
FAQs: UTM Parameter Builder
UTM parameters are tags you add to a URL so Google Analytics can track where your traffic comes from. Without them, clicks from emails, paid ads, and social posts often appear as direct traffic, making it impossible to measure campaign performance accurately.
utm_source, utm_medium, and utm_campaign are required for GA4 to attribute the session correctly. utm_term is used for paid keywords and utm_content is used to distinguish between different ads or links within the same campaign. utm_id is a GA4-specific parameter for linking campaigns to your ad platform.
Only if you share the UTM URL publicly and Google indexes it as a separate page. To prevent this, make sure your site has a canonical tag pointing to the clean URL. UTM parameters on links you control (emails, ads, social) never affect organic rankings directly.
Use lowercase and underscores instead of spaces or hyphens. Be consistent — google and Google are treated as two separate sources in analytics. Agree on conventions with your team before you start a campaign so your reports stay clean.
Yes. UTM parameters are a universal standard supported by Google Analytics, GA4, Matomo, Plausible, HubSpot, Mixpanel, and most other analytics tools. The parameter names are always the same regardless of platform.
From the blog
Search, without the guesswork
What actually moves rankings and what is folklore.