Campaign Tracking with UTM Parameters and GA4 Default Channel Groups: Source, Medium, Campaign and Naming Rules

Google Analytics 55 min min read Updated: Nov 17, 2026 Beginner
Campaign Tracking with UTM Parameters and GA4 Default Channel Groups: Source, Medium, Campaign and Naming Rules
Beginner Topic 1 of 3

The Problem

When someone clicks a link in your newsletter, GA4 does not magically know it was your newsletter. You must add UTM parameters to the link. Without them, the visit may appear as Direct or Referral.

The UTM Parameters

ParameterMeaningExample
utm_sourceWhere it came from (required for campaigns)newsletter, facebook, google
utm_mediumThe type of channelemail, cpc, paid_social, social
utm_campaignCampaign namediwali_sale
utm_termPaid keyword (optional)silk_saree
utm_contentWhich ad or link (optional)banner_a, text_link

Build a Tagged Link

python from urllib.parse import urlencode params = {"utm_source": "newsletter", "utm_medium": "email", "utm_campaign": "nov_sale"} print("https://example.com/?" + urlencode(params))
Result

https://example.com/?utm_source=newsletter&utm_medium=email&utm_campaign=nov_sale

Naming Rules

  • Use lowercase only. Email and email become two different values
  • Use underscores or hyphens, no spaces
  • Use a fixed list of mediums, written in a shared sheet
  • Never use UTMs on internal links inside your own site. It resets the session source
  • Do not put personal data in UTMs

Auto-Tagging for Google Ads

For Google Ads you do not need manual UTMs. Turn on auto-tagging in Google Ads. It adds a gclid to the link, and GA4 reads it (when the accounts are linked) to fill source, medium and campaign with detailed ad data.

Default Channel Group

GA4 puts each session into a channel using rules on source and medium. Here is a simplified version of the idea.

python def channel(src, med): if src == "(direct)" and med in ("(none)", "(not set)"): return "Direct" if med == "organic": return "Organic Search" if med in ("cpc", "ppc", "paidsearch"): return "Paid Search" if med in ("paid_social",): return "Paid Social" if med == "email": return "Email" return "Unassigned" for s, m in [("google", "organic"), ("google", "cpc"), ("(direct)", "(none)"), ("newsletter", "email"), ("facebook", "paid_social"), ("blog", "partner")]: print(s, "/", m, "->", channel(s, m))
Result

google / organic -> Organic Search | google / cpc -> Paid Search | (direct) / (none) -> Direct | newsletter / email -> Email | facebook / paid_social -> Paid Social | blog / partner -> Unassigned

Note This is our simplified teaching version. The real GA4 rules are longer (for example, they also match source names of known social sites). Check Google's help page on default channel group for the full list.
Unassigned traffic If a medium is not one the rules know, such as partner, the traffic shows as Unassigned. Use standard medium names, or create a custom channel group.

Practice

  1. Build a UTM link for your Instagram bio
  2. Why should you not tag internal links?
  3. What channel does google / cpc land in?

Conclusion

UTM parameters label your campaigns. Keep names lowercase and consistent, use auto-tagging for Google Ads, and watch for Unassigned traffic.

Quick Summary: UTMs; builder; naming; auto-tag; channel rules; unassigned.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators