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 parameters are tags added to the end of a URL that tell your analytics tool where the click came from. Standard format: ?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale. When someone clicks the link, those values flow into Google Analytics so you can attribute the visit to a specific source, medium, and campaign. Without them, traffic from email campaigns shows up as 'direct' and you lose visibility. Build UTMs through our Campaign URL Builder to keep them consistent across the team.
Which UTM parameters are required?
Three are essential — utm_source (where the link lives, like 'newsletter' or 'facebook'), utm_medium (the channel type, like 'email' or 'cpc' or 'social'), and utm_campaign (the specific promotion, like 'diwali_sale_2025'). Two are optional — utm_term (used for paid keyword tracking) and utm_content (for A/B testing different links in the same campaign). Use lowercase consistently and stick to a naming convention; once you have 50 campaigns running, sloppy UTMs become impossible to clean up. Verify in GA4's Traffic Acquisition report after launch.
Do UTM parameters affect SEO?
Not for ranking, but they can cause indirect SEO problems if you're careless. UTM-tagged URLs create technical duplicate content — example.com/page and example.com/page?utm_source=email look like two URLs to Google. Fix it with self-referencing canonical tags pointing to the clean URL, so Google ignores the parameter version. Don't use UTMs on internal links — they break attribution, overwriting the original source data. Only use UTMs on links that arrive from outside your site, like emails, ads, and partner placements.
What should i use for UTM source?
utm_source identifies the specific publisher or platform sending the traffic. Use the actual platform name, lowercase, no spaces — 'facebook' not 'Facebook' or 'Face Book'. Example for an email newsletter: utm_source=newsletter, utm_medium=email. For Twitter ads: utm_source=twitter, utm_medium=cpc. For an affiliate partner: utm_source=partnername, utm_medium=affiliate. Keep a shared spreadsheet of approved values so the team doesn't end up with 'fb', 'facebook', and 'FB' as three different sources, splitting your data across three rows.
What is difference between UTM source and medium?
Source is the specific platform — facebook, newsletter, gmail, partnername. Medium is the broader channel category — social, email, cpc, affiliate, referral. So a Facebook ad campaign would be utm_source=facebook&utm_medium=cpc, while an organic Facebook post would be utm_source=facebook&utm_medium=social. Use medium for high-level reporting (which channel is performing?) and source to drill in (which specific platform within that channel?). Mixing them up is the most common UTM mistake — the data still flows, but the rollups become useless.
Are UTM parameters case sensitive?
Yes, and this trips up almost every team eventually. utm_source=Newsletter and utm_source=newsletter are treated as two different sources in Google Analytics. You'll see your traffic split across multiple rows, which makes reporting messy. The safer practice — pick lowercase as the standard, use only lowercase in every URL you build, and document it for the whole team. If you've already polluted the data, you can fix it in GA4 with custom filters, but cleanup is much harder than prevention.
How to build UTM tracking URL?
Open our Campaign URL Builder, drop in the destination URL, then fill in source, medium, and campaign — those three are non-negotiable. Add term and content if relevant for the use case. The tool builds the full URL with proper encoding and gives you a copyable link. Test it once by clicking through and checking your real-time GA4 report shows the right source/medium/campaign. Save common patterns in a shared sheet so the team uses identical naming across campaigns.
Sources and References
- Google Analytics UTM parameter documentation
- Google Campaign URL Builder documentation
- web.dev — UTM parameters guide
- Microsoft Bing Ads — URL tracking documentation