UTM builder: campaign URL generator
Paste the page your ad points to, fill in source, medium and campaign, and copy a tagged link that analytics tools can read.
The page the ad opens. Existing ?query and #section are kept.
Where the traffic comes from: facebook, google, newsletter.
The kind of traffic: cpc, paid_social, email.
Which campaign: spring_sale_2026.
Optional. Usually the paid keyword.
Optional. Tells ads or links apart: video_ad, blue_button.
Fill source and medium for
Your tagged link
https://example.com/shoes?color=red&utm_source=facebook&utm_medium=paid_social&utm_campaign=spring_sale_2026&utm_content=video_ad#reviewsFree, no sign-up. Runs in your browser; nothing you type is sent to us.
What a UTM builder does
UTM parameters are short tags added to the end of a link, like ?utm_source=facebook&utm_medium=paid_social. When someone clicks, analytics tools such as Google Analytics read the tags and file the visit under the right source and campaign. This UTM builder adds them for you, keeps any query string or #section already on the link, and encodes everything correctly.
The five UTM parameters
| Parameter | What it says | Example |
|---|---|---|
| utm_source | Who sent the visitor: the site, platform or newsletter. | facebook, google, newsletter |
| utm_medium | The kind of traffic. | cpc, paid_social, email |
| utm_campaign | The campaign or promotion. | spring_sale_2026 |
| utm_term | Optional. The paid search keyword. | running_shoes |
| utm_content | Optional. Which ad, link or version. | video_ad, blue_button |
A UTM naming convention that stays clean
Analytics tools treat Facebook, facebook and fb as three different sources, so reports split apart when people tag links by hand. A short naming convention fixes that:
- Always lowercase. The tidy option does it for you.
- No spaces. Pick one separator, underscore or hyphen, and use it everywhere.
- Fix the list of sources and mediums. For example facebook, instagram, google, tiktok, linkedin, newsletter; and cpc, paid_social, email.
- Name campaigns the same way you name them in the ad platform, so reports match. The campaign name generator helps.
- Use utm_content to tell ads apart inside one campaign.
Worked example
Starting link: https://example.com/shoes?color=red#reviews. Source facebook, medium paid_social, campaign "Spring Sale 2026", content "video ad", with tidy values on.
Result: https://example.com/shoes?color=red&utm_source=facebook&utm_medium=paid_social&utm_campaign=spring_sale_2026&utm_content=video_ad#reviews
The existing color=red stays, and the #reviews part stays at the end where browsers expect it.
Things to know
- Google Ads can tag clicks for Google Analytics on its own with auto-tagging. You can still add UTMs for other tools.
- Never put UTM tags on links inside your own website. They restart the visit and credit it to the wrong source.
- Many ad platforms accept URL parameters at the ad or account level and can fill in campaign and ad names for you. Check your platform's dynamic parameters before tagging every ad by hand.
- UTMs only label visits. To see spend and results next to them, you still need the ad platform's own numbers, which AskAds reports per campaign when you ask in ChatGPT or Claude.
Questions
What is a UTM code?
A set of tags added to the end of a link, such as utm_source and utm_campaign. Analytics tools read them to know where a visit came from.
Which UTM parameters are required?
Google Analytics needs utm_source to record a campaign, and medium and campaign are strongly recommended. This builder asks for all three. Term and content are optional.
Should UTM values be lowercase?
Yes. Analytics tools treat Facebook and facebook as different values, so lowercase everywhere keeps reports from splitting.
Will UTM parameters break my link?
No. They are added as normal query parameters, existing parameters stay, and the #section stays at the end. The page loads the same.
Do I need UTMs for Google Ads?
Not for Google Analytics if auto-tagging is on, since Google links the click for you. UTMs still help other analytics tools and keep naming the same across platforms.
Ask your ads anything
Add AskAds to ChatGPT or Claude and ask your first question. Nothing spends until you press Approve.
Free for 7 days. No card needed to start.
Updated . See all free tools.