Projects

UTM Parameters: Track Every Campaign Link

UTM Parameters – UTM Parameters: Track Every Campaign Link

In this guide: UTM parameters explained: what they are, the 5 parameters, building UTM links, naming conventions, and reporting in Google Analytics 4 to track every…

You share a link in your newsletter, on Instagram, and in a Facebook ad. Traffic arrives — but which campaign actually brought the visitors who signed up or bought? UTM parameters answer that question.

What UTM parameters are

UTM parameters are tags you add to the end of a URL. When someone clicks the link, analytics tools like Google Analytics 4 read the tags and record exactly where the visitor came from.

Example:

https://hostreta.com/speed-up-wordpress/?utm_source=newsletter&utm_medium=email&utm_campaign=oct_speed_week

Without UTMs, many clicks show up as “direct” or vague “referral” traffic — especially from email apps, messaging apps, and some social platforms.

The 5 parameters

Parameter Purpose Example
utm_source (required) Where the traffic comes from newsletter, instagram, facebook, google
utm_medium (required) The marketing channel/type email, social, cpc, referral, paid_social
utm_campaign (required) The specific campaign oct_speed_week, black_friday_2026
utm_content (optional) Differentiates links/creatives header_button, reel_1, carousel_v2
utm_term (optional) Paid search keywords or extra detail wordpress_hosting

GA4 also supports additional parameters like utm_id (campaign ID), and it uses source and medium values to group traffic into default channel groups (Email, Organic Social, Paid Social, etc.). Using standard medium values (like email, social, cpc) helps GA4 classify traffic correctly.

Building UTM links

Tools:

  • Google’s Campaign URL Builder (free, web-based).
  • Spreadsheet templates that build links with formulas — great for teams.
  • Link shorteners and link management tools that support UTMs.
  • Scheduling and email tools that add UTMs automatically.

Steps:

  1. Enter your destination URL.
  2. Add source, medium, and campaign (plus content if needed).
  3. Copy the generated link.
  4. Optionally shorten it for social posts.
  5. Test the link to make sure it loads correctly.

Important: don’t use UTMs on internal links within your own website (e.g., from your homepage to a blog post). This overwrites the visitor’s original source and breaks your data.

Naming conventions

Consistency is everything. Facebook, facebook, and fb appear as three different sources in reports.

Rules:

  • Always lowercase.
  • Use underscores or hyphens consistently (not spaces).
  • Standardize values in a shared document.
  • Include dates or themes in campaign names for easy filtering.

Example convention:

Parameter Allowed values
source newsletter, facebook, instagram, linkedin, x, youtube, whatsapp, partner_name
medium email, social, paid_social, cpc, referral, affiliate, qr
campaign yyyy_mm_theme e.g., 2026_10_security_week
content post_type_variant e.g., reel_hook_a, carousel_1

Keep a UTM log spreadsheet: date, link, source, medium, campaign, content, and notes.

Reporting in GA4

  1. Go to Reports → Acquisition → Traffic acquisition.
  2. Change the primary dimension to Session source / medium or Session campaign.
  3. Add a secondary dimension like Session manual ad content (utm_content) for creative-level analysis.
  4. Review key events (conversions) per campaign — see How to Set Up GA4 on WordPress.
  5. Use Explore → Free form for custom reports combining campaign, landing page, and key events.

Questions to answer:

  • Which campaign brought the most engaged visitors?
  • Which newsletter link got the most clicks?
  • Which Reel or carousel drove signups?
  • Is email or social better at converting for this offer?

Use insights to plan future content — for example, repurposing formats that convert best — see Social Media Scheduling Tools and How to Track Affiliate Links.

Further reading: OWASP Top 10 web security risks

Key Takeaways: UTM Parameters

  • UTM parameters tag links so analytics knows exactly where visitors came from.
  • Always use source, medium, and campaign; add content for creative variants.
  • Use lowercase and a documented naming convention.
  • Never use UTMs on internal links.
  • Analyze campaigns in GA4 Traffic acquisition and Explorations.
Z
zasma171

Writes for Hostreta about the topics covered in this article.

Comments (0)

Your email address will not be published. Required fields are marked *

Recent Comments

No comments to show.
Ad · AdSense
Ad space 300×250
Affiliate links
Tools we recommend
Protect Your Website with Automated Daily Backups
$2.09
Get it
the easiest way to manage all of your social media accounts
$29
Get it
Starter Website Get online, properly
$249
Get it
google workspace Business Starter
$3.75
Get it
Nord Vpn Cybersecurity. Built for Everyday Use
$8.99
Get it

We may earn a commission on purchases made through these links, at no extra cost to you.

Ad · AdSense
Ad space 300×600
Ad · AdSense
Ad space 300×600

$ top hosting picks

affiliate
★★★★★

NovaHost

$2.95/mo,renews at $9.95
  • Free SSL + domain, first year
  • 1-click WordPress install
  • 24/7 chat, sub-5-min response
get this deal →
affiliate link · we may earn a commission
★★★★★

CloudRoot

$4.50/mo,renews at $12.95
  • Built-in CDN + caching
  • Daily backups, 30-day retention
  • Staging environments included
get this deal →
affiliate link · we may earn a commission
★★★★★

AI SiteBuilder

$1.49/mo,renews at $13.99
  • 5 Websites
  • Emails & Security Included
  • AI Website Builder for WordPress
get this deal →
affiliate link · we may earn a commission

Never miss a new article

Join thousands of developers and builders getting a weekly digest of the best tech articles.