Link Tagging in Google Analytics

How to Do Link Tagging in Google Analytics & Best Practices for Campaign, Source, and Medium Naming

Just as important as SEO, Tracking marketing efforts accurately is crucial for understanding performance and optimizing strategies. Google Analytics (GA) provides a simple yet powerful way to track links through UTM (Urchin Tracking Module1) parameters. By using link tagging in Google Analytics 4 properly, you can gain detailed insights into where your traffic is coming from and which campaigns are driving results.

How to do link tagging in Google Analytics

Google Analytics uses five UTM parameters to track links:

  1. utm_source – Identifies where the traffic is coming from (e.g., Facebook, Google, Newsletter).
  2. utm_medium – Specifies the type of marketing medium (e.g., email, CPC, social, referral).
  3. utm_campaign – Names the specific campaign (e.g., summer_sale, product_launch, webinar_signup).
  4. utm_term (optional) – Tracks keywords for paid search campaigns.
  5. utm_content (optional) – Differentiates between multiple links in the same ad or email.

To generate tagged URLs easily, use Google’s Campaign URL Builder.

Link tagging in Google analytics 4

Best Practices for Campaign, Source, and Medium Naming

To maintain consistency and accuracy in reporting, follow these best practices:

  • Be consistent – Use standardized naming conventions to ensure clean and comparable data.
  • Use lowercase letters – GA is case-sensitive, so ‘Facebook’ and ‘facebook’ would be tracked separately.
  • Avoid spaces and special characters – Use underscores (_) or dashes (-) instead.
  • Be descriptive – Clearly define sources and campaigns to make reporting easier (e.g., ‘black_friday_sale’ instead of ‘BFSale’).
  • Separate paid and organic sources – Label paid sources explicitly (e.g., utm_medium=CPC vs. utm_medium=organic_social).

By implementing structured UTM parameters, you can accurately track your marketing performance and make data-driven decisions to optimize future campaigns.

In general, I recommend the following naming conventions:

Campaigns

CampaignTagExample
Open Housesopen-housesutm_campaign=open-house
AI Webinarai-webinarutm_campaign=ai-webinar

Source

SourceTagExample
Googlegoogleutm_source=google
Oktopostoktopostutm_source=oktopost
Pardotpardotutm_source=pardot
Youtubeyoutubeutm_source=youtube
EventBriteeventbriteutm_source=eventbrite
Facebookfacebook.comutm_source=facebook.com
Instagraminstagramutm_source=instagram
WeChatwechatutm_source=wechat

Medium

MediumTagExample
Ads paid by Click (Google)cpc (Cost per click)utm_medium=cpc
Ads paid by CPMcpmutm_medium=cpm
Emailmailutm_medium=email
Organic Socialorganic-socialutm_medium=organic-social
Paid Socialpaid-socialutm_medium=paid-social

Conclusion

Using standardized UTM parameters ensures accurate tracking and reporting of marketing performance. Follow these guidelines to maintain clean and actionable analytics data.

  1. Old, old name from an acquisition years ago ↩︎

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.