UTM Campaign URL Builder
Add UTM parameters to links so Google Analytics shows exactly which campaign, newsletter or ad brought each visitor.
Where the traffic comes from: google, newsletter, facebook
The channel type: cpc, email, social, referral
Name of the promotion: spring_sale, product_launch
Paid search keyword (optional)
Tells apart links in the same ad or email: header_button, footer_link
Used to join cost data imports in GA4 (optional)
Campaign URL
https://www.example.com/sale/?utm_source=newsletter&utm_medium=email&utm_campaign=black_friday_2026
Saved presets
Save the parameters you reuse, such as your newsletter settings. Presets stay in this browser.
Read an existing campaign URL
About this tool
UTM parameters are short tags added to the end of a link, such as ?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale. When someone clicks the link, Google Analytics, Matomo, Plausible and most other analytics tools read the tags and credit the visit to that exact source, channel and campaign, instead of lumping it into "direct" or "referral" traffic.
This builder adds the parameters to any URL while keeping its existing query string and #fragment, replaces old utm_ values instead of duplicating them, normalises case and spaces so your reports do not split "Email" and "email" into two rows, and lets you save presets for campaigns you run often.
How to use UTM Campaign URL Builder
- Enter the page URL people should land on.
- Fill in source, medium and campaign; these three are needed for correct attribution. Add term, content or campaign ID if useful.
- Keep "Convert to lowercase" on and choose how spaces are written so naming stays consistent.
- Copy the campaign URL into your email, ad or social post. Save the settings as a preset to reuse them next time.
Examples
Newsletter link
https://example.com/sale/ · source Newsletter · medium email · campaign Black Friday
https://example.com/sale/?utm_source=newsletter&utm_medium=email&utm_campaign=black_friday
Existing query and fragment are kept
https://example.com/p?ref=1#top
https://example.com/p?ref=1&utm_source=…&utm_medium=…&utm_campaign=…#top
The fragment must stay at the very end, or browsers treat the UTM tags as part of it.
The six UTM parameters
- utm_source: who sends the traffic, e.g. google, newsletter, facebook, partner-site.
- utm_medium: the type of channel, e.g. cpc, email, social, paid_social, referral, affiliate. GA4 uses this value to sort visits into default channel groups, so use the standard words.
- utm_campaign: the promotion or initiative, e.g. spring_sale_2026.
- utm_term: the paid keyword, mainly for search ads.
- utm_content: tells apart links that share source, medium and campaign, such as two buttons in one email or two versions of an ad (A/B tests).
- utm_id: a campaign ID used to join cost data you import into GA4.
Naming conventions that keep reports clean
UTM values are case-sensitive: "Facebook" and "facebook" become separate rows. Pick lowercase, one word separator (underscore or hyphen) and a fixed list of sources and mediums, and write them down for your team.
Never put UTM tags on links between pages of your own site. They overwrite the visitor's original source, so a visit from Google would suddenly be credited to your internal banner.
Frequently asked questions
Everything you need to know about this tool and data security.
Do UTM parameters hurt SEO?
No, as long as your pages have a canonical tag pointing to the clean URL. Search engines then treat the tagged versions as duplicates of the original and rank the clean URL.
Which parameters are required?
Technically none, but GA4 needs utm_source, utm_medium and utm_campaign to attribute the visit properly. Links with only some of them appear as "(not set)" in reports.
Can I shorten a long campaign URL?
Yes, a link shortener or a QR code keeps the parameters as long as it redirects to the full URL. Test the short link once and check that the tags arrive in your analytics real-time report.
Where are my presets stored?
Only in this browser's local storage. Nothing is sent to a server, so presets do not sync between devices.
Is my data safe when using this tool?
Yes, 100% safe. This tool operates entirely inside your web browser using client-side JavaScript and WebAssembly. Your data never touches any external server.
Related Tools
Percent-encode or decode URLs and query strings, and inspect every part of a URL.
Create customizable QR codes from text or URLs and export as PNG.
Turn titles in any language into clean, SEO-friendly URL slugs, with transliteration for accents, Cyrillic, Greek, Korean, Japanese kana and Chinese pinyin.
Featured Projects tech-fun.net
Explore more AI & productivity tools
Nihongo GameBox
Master Japanese typing, Kana, and JLPT N5–N1 vocabulary through interactive retro arcade games.
ResumeGPT
Tailors CVs and cover letters to every job opportunity with a multi-agent LLM pipeline, job tracking, and scheduled discovery.
CollectMind
Turns your bookmarks into a searchable AI knowledge base — entirely on-device, powered by Chrome's built-in Gemini Nano.