UTM Builder
Build trackable UTM URLs from campaign source, medium and name.
UTM parameters are the standard tags you append to a URL so that Google Analytics (GA4) can tell which channel a visitor came from — paid ads, newsletters, social posts and more. This UTM builder takes a base URL plus utm_source, utm_medium, utm_campaign and friends and generates a clean campaign tracking URL in real time.
Every value is URL-encoded automatically, and any existing query string or hash (#) on the base URL is merged correctly instead of being broken. That removes the typos, duplicate question marks and missing encoding you get when stitching URLs together by hand.
The five UTM parameters
These are the standard UTM parameters GA4 understands. The first three should almost always be filled in.
- utm_source: where the traffic came from. e.g.
google,newsletter - utm_medium: the marketing medium. e.g.
cpc,email,social,banner - utm_campaign: the campaign name. e.g.
summer_sale,2026_launch - utm_term: paid keyword (optional). e.g.
running+shoes - utm_content: A/B test or creative variant (optional). e.g.
top_banner,text_link
Consistent naming is everything
UTM values are case-sensitive. Google and google are counted as two different sources in GA4, which splits your data. Your reports stay clean when the whole team follows the same rules.
- Always use lowercase.
- Replace spaces with underscores (
_) or hyphens (-) consistently. - Maintain a shared, documented list of approved source/medium/campaign values.
Building the final URL
The tool safely encodes each value with encodeURIComponent, then appends only the UTM parameters while preserving any existing query string and hash on the base URL. Copy the finished link with one click and paste it into your ad platform or post. To go the other way and break an existing tracking link back into its parameters, use the UTM parser.