Enter UTM (Urchin Tracking Module) parameters—simple code snippets that, when added to the end of a URL, tell your analytics tools precisely how a visitor arrived at your site.
This guide covers what they are, how to use them, and the "golden rules" to keep your data clean.
They don’t change the content of the page; they simply send extra information to your analytics platform (like Google Analytics 4) about the link’s origin.
| Parameter | Required? | Definition | Example Value |
| utm_source | Yes | The "Where": The specific site or platform sending traffic. | google, newsletter, facebook |
| utm_medium | Yes | The "How": The marketing channel or mechanism. | email, cpc, social, referral |
| utm_campaign | Yes | The "Why": The specific campaign name, product, or promo. | summer_sale, black_friday_2025 |
| utm_term | No | The Keyword: Used mostly for paid search to identify keywords. | running+shoes, marketing+software |
| utm_content | No | The Specific Element: Distinguishes between similar links (e.g., A/B testing). | header_cta, sidebar_banner |
Example of a full UTM-tagged URL:
https://www.yoursite.com/pricing?utm_source=linkedin&utm_medium=social&utm_campaign=q3_lead_gen| Email Marketing | Track which specific newsletter or drip campaign drove the click. |
| Social Media | Differentiate between organic posts, bio links, and paid ads. |
| Paid Advertising | Essential for non-Google platforms (Facebook Ads, LinkedIn Ads, Bing) to ensure data flows correctly into Google Analytics. |
| QR Codes | Track offline-to-online traffic (e.g., from a flyer or conference booth). |
Email Marketing: Track which specific newsletter or drip campaign drove the click.
🛑 Critical Warning: NEVER use UTM parameters on internal links (links from one page of your website to another). This resets the user’s session, artificially inflates your session counts, and breaks the original attribution source.
Decide on a format and stick to it. If one person uses utm_source=facebook and another uses utm_source=Facebook, analytics will treat them as two different sources.
Lowercase only: Always use lowercase to avoid case-sensitivity issues.
No spaces: Use underscores (_) or hyphens (-) instead of spaces.
Bad: utm_campaign=Spring Sale
Good: utm_campaign=spring_sale
Your URL parameters are visible to users in their browser bar. Avoid internal codes or sensitive information.
Bad: utm_content=variation_b_ugly_button_test
Good: utm_content=cta_variant_b
Don't just create links on the fly. Maintain a master spreadsheet or use a UTM management tool. This ensures the whole team uses the exact same campaign names and prevents "rogue" tags from polluting your data.
Google Campaign URL Builder: The industry standard free tool.
Spreadsheet Formulas: Use CONCATENATE functions to build URLs in bulk for large campaigns.
Marketing Automation Tools: Platforms like HubSpot, Mailchimp, and Buffer often have built-in toggles to "Add UTM tracking" automatically.
| Issue | Cause | Fix |
| Traffic shows as "Direct" | The UTM parameters fell off during a redirect. | Ensure your tagged link points to the final destination URL, not a vanity URL that redirects. |
| Split data rows | Case sensitivity (Email vs email). | Force lowercase in your analytics settings or standardize link creation. |
| Self-Referrals | UTMs used on internal links. | Remove UTMs from all internal navigation and buttons. |