Campaign URL Builder
Add UTM parameters to your URLs to track custom campaigns in analytics.
What This Tool Does
The UTM Builder creates tracked URLs by appending UTM (Urchin Tracking Module) parameters to any destination URL. These tagged links allow Google Analytics and other analytics platforms to attribute traffic to specific campaigns, sources, and channels so you can measure marketing performance accurately.
Inputs
- Website URL — the destination page you want to track visits to.
- utm_source — the platform or site sending the traffic (e.g., google, newsletter).
- utm_medium — the marketing channel type (e.g., cpc, email, social).
- utm_campaign — the campaign name, product, or promo code (e.g., spring_sale).
- utm_term — optional paid keyword being targeted.
- utm_content — optional value used to differentiate ad creatives or link placements.
How It Works
Enter your base URL and fill in the UTM fields. The tool assembles the final URL by appending each non-empty parameter as a query string key-value pair. Special characters in parameter values are automatically URL-encoded so the link works correctly in browsers and analytics platforms.
Understanding the Results
The generated URL contains your original destination address followed by a question mark and each UTM parameter separated by ampersands. When a visitor clicks this tagged link, Google Analytics reads the parameters and records the source, medium, campaign, term, and content values in your traffic reports, enabling precise attribution.
The full website URL (e.g. https://www.example.com)
The referrer: (e.g. google, newsletter)
Marketing medium: (e.g. cpc, banner, email)
Product, promo code, or slogan (e.g. spring_sale)
Identify the paid keywords
Use to differentiate ads
Best Practices for UTM Tagging
- Be inconsistent: Use lowercase for everything (e.g., "email" not "Email").
- No spaces: Use underscores ( _ ) or dashes ( - ) instead of spaces.
- Don't repeat: Don't use the same name for source and medium.
Step-by-Step Example
- Enter the destination URL — paste your landing page address, for example
https://www.example.com/pricing. - Set utm_source — type the traffic source such as
newsletter. - Set utm_medium — enter the channel type, for example
email. - Set utm_campaign — provide a campaign name like
march_promo. - Add optional parameters — if needed, fill in utm_term (e.g.,
free+trial) and utm_content (e.g.,header_cta). - Copy the generated URL — the tool outputs the full tagged URL:
https://www.example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=march_promo&utm_term=free+trial&utm_content=header_cta. Click "Copy URL" to use it in your campaign.
Use Cases
- Email campaigns — tag links in newsletters and automated emails to measure click-through rates and conversions per send.
- Social media posts — differentiate organic versus paid social traffic by using distinct utm_medium values like
socialandpaid_social. - Paid advertising — track performance of Google Ads, Facebook Ads, or LinkedIn Ads by setting utm_source to the ad platform and utm_campaign to the ad group name.
- A/B testing — use utm_content to distinguish between ad variations, button placements, or creative assets within the same campaign.
- Partner and affiliate tracking — assign each referral partner a unique utm_source value so you can attribute signups and revenue to the correct partner.
Limitations and Notes
- UTM parameters are visible in the browser address bar. Avoid including sensitive or personally identifiable information in parameter values.
- Parameters are case-sensitive in Google Analytics. Mixing uppercase and lowercase creates separate entries in your reports. Always use consistent lowercase naming.
- UTM-tagged URLs can become very long. Some platforms such as Twitter may shorten them, which does not remove the parameters but can obscure the full URL from viewers.
- UTM tracking relies on JavaScript-based analytics running in the visitor's browser. Users with ad blockers or disabled JavaScript may not be tracked.
- Do not use UTM parameters on internal links within your own site. Doing so overwrites the original traffic source in analytics and breaks accurate attribution.
Frequently Asked Questions
What are UTM parameters?
UTM (Urchin Tracking Module) parameters are tags added to a URL that help analytics tools track the source, medium, and campaign of incoming traffic. The five standard parameters are utm_source, utm_medium, utm_campaign, utm_term, and utm_content.
Which UTM parameters are required?
Only utm_source, utm_medium, and utm_campaign are considered essential. utm_term and utm_content are optional and used for more granular tracking of paid keywords and ad variations.
Do UTM parameters affect SEO?
UTM parameters do not directly affect SEO rankings. However, if search engines crawl URLs with UTM parameters, it can create duplicate content. Use canonical tags to point UTM-tagged URLs back to the clean version.
What should I use for utm_source?
Use utm_source to identify the platform or website sending the traffic. Common values include google, facebook, twitter, newsletter, linkedin, or the name of a specific referring website.
What is the difference between utm_medium and utm_source?
utm_source identifies the specific platform (e.g., facebook, google), while utm_medium identifies the marketing channel type (e.g., cpc, email, social, organic, referral). Together they tell you where traffic came from and how.
Are UTM parameters case-sensitive in Google Analytics?
Yes. Google Analytics treats utm parameters as case-sensitive. 'Facebook' and 'facebook' would appear as separate sources. Use consistent lowercase naming conventions across all campaigns to avoid data fragmentation.
Sources and References
- Google Analytics UTM parameter documentation
- Google Campaign URL Builder documentation
- web.dev — UTM parameters guide
- Microsoft Bing Ads — URL tracking documentation