Marketing Tools
UTM Campaign URL Builder
Add utm_source, utm_medium, utm_campaign, term, content and utm_id to any landing page URL. Values are encoded and lowercased, and old UTM tags are replaced.
How to use UTM Campaign URL Builder
Enter the landing page URL and at least utm_source, ideally with medium and campaign. Add term, content or a campaign ID if needed and choose how spaces are written. The tagged link updates as you type.
- Enter the landing pagePaste the full page URL; https:// is added if missing and existing non-UTM parameters are kept.
- Fill in the UTM fieldsEnter source, medium and campaign, plus term, content or utm_id for paid search keywords or ad variants.
- Copy the tagged linkCheck any warnings, then copy the final URL into your ad, email or social post.
Naming UTM parameters so GA4 groups them correctly
utm_source names where the traffic comes from (google, newsletter, facebook), utm_medium the type of channel (cpc, email, social) and utm_campaign the promotion. GA4's default channel grouping relies on recognisable medium values; a medium such as newsletter may not be recognised and can end up as Unassigned, so the builder warns you and suggests common values: cpc, email, social, referral, display and affiliate. Analytics reports are case-sensitive, so Google and google count as two sources; lowercasing is on by default to keep reports tidy.
Encoding, spaces and existing parameters
Values are URL-encoded, so a campaign called Autumn Sale 2026 becomes autumn%20sale%202026 by default. You can encode spaces as + instead, or replace them with hyphens or underscores for cleaner links such as autumn_sale. If the URL already carries utm_ parameters they are replaced, while other parameters such as colour=red stay. A # fragment stays at the very end, after the UTM tags, so they remain in the query string where analytics tools read them. A note shows how many parameters were added and the final link length.
Accuracy and data handling
Use the same date range, attribution method and currency when comparing campaigns. The calculation runs in your current browser; the tool code does not send the input to a processing API.
FAQ
Which UTM parameters are required?
The builder requires only utm_source, but add utm_medium and utm_campaign too, otherwise reports show only the source. utm_term, utm_content and utm_id are optional.
Should UTM values be lowercase?
Consistency matters most, and lowercase is the easiest way to keep it. Reports treat Google and google as different sources, so values are lowercased by default and capitals trigger a warning if you turn that off.
Should I use UTM tags on internal links?
Avoid it. UTM tags on links between your own pages overwrite the original traffic source in analytics. Use them for links placed elsewhere, such as ads, emails and social posts.
How are spaces handled in UTM values?
By default they are encoded as %20. You can choose + instead, or replace spaces with - or _ so that spring sale becomes spring_sale.
More Marketing Tools
Related toolsEstimate monthly data transfer and average or peak Mbps from page views
Page RPM and the pageviews needed to hit a daily or monthly earnings goal.
Calculate ROAS, ACoS and break-even ROAS, or solve for spend and revenue
Work out CAC payback months, churn-adjusted payback and the CAC you can afford
Break tagged links into UTM fields and spot click IDs and naming problems
Profit, ROI, ROAS and break-even bids for a pay-per-click campaign.