How to use UTM parameters for campaign tracking in GA4 | Rafirit Station UTM Parameters GA4 Tracking 2026: Complete Guide for Marketers
Analytics

How to use UTM parameters for campaign tracking in GA4

UTM parameters are the backbone of campaign tracking in GA4. Without them, you're flying blind—learn how to set them up correctly to measure every marketing effort in 2026.

Performance Marketing Expert
Rafirit Station
📅 June 24, 2026
15 min read
📈
📋 Table of Contents


    How to Use UTM Parameters for Campaign Tracking in GA4 (2026 Guide)

    By Rafirit Station Editorial Team · Updated 2026 · ⏱ 18 min read

    According to a 2024 Search Engine Land study, campaigns with properly structured UTM parameters see an average 23% improvement in conversion attribution accuracy. Yet, 68% of Bangladeshi businesses still don’t use them consistently.

    In 2026, Google Analytics 4 (GA4) has become the default analytics platform, and its event-based model demands precise UTM tracking. Without it, your marketing data is essentially guesswork—you can’t tell which Facebook ad, email blast, or Google campaign truly drove a sale.

    For a Dhaka-based e-commerce store, that means wasted ad spend. Imagine spending ৳50,000/month on Facebook Ads but not knowing which campaign actually converted. That’s ৳600,000 annually down the drain—enough to hire a junior marketer.

    By the end of this guide, you’ll know exactly how to create, implement, and audit UTM parameters in GA4, with templates and scripts you can copy today.



    📚 External Resources (Bookmark These)


    🔗 Rafirit Station Services


    🚀 Stop Wasting Ad Spend on Blind Campaigns

    For Dhaka business owners and marketers: Get your UTM tracking audited by our GA4 experts. We’ll show you exactly where your campaigns are leaking budget.

    🗓 Book Your Free Strategy Call →

    No commitment · 60-minute session · Bangladeshi clients welcome


    Phase 1: Laying the Foundation — UTM Parameters Explained

    Before diving into setup, you need to understand the five standard UTM parameters. GA4 maps these to its own dimensions: utm_source becomes source, utm_medium becomes medium, and so on. But many marketers miss that GA4 also captures campaign, term, and content as separate parameters.

    Tactic 1.1: Master the Five Parameters

    Why this works: Each parameter plays a specific role in attribution. Using them consistently ensures GA4 can group sessions properly.

    Exactly how to do it:

    1. Always start with utm_source (the platform, e.g., facebook, newsletter, google).
    2. Set utm_medium to the channel type (cpc, email, social, organic).
    3. Use utm_campaign for the campaign name (e.g., spring_sale_2026).
    4. Optionally add utm_term for paid keywords.
    5. Use utm_content to differentiate ad variations or links within the same campaign.

    Pro script / template: https://yoursite.com/?utm_source=facebook&utm_medium=cpc&utm_campaign=spring_sale_2026&utm_term=discount&utm_content=ad1

    📊 Expected results: Implement this consistently across all campaigns within 2 weeks, and you’ll see a 30% improvement in campaign reporting clarity in GA4.

    Tactic 1.2: Use a Consistent Naming Convention

    Why this works: Inconsistent naming (e.g., “Facebook” vs “fb”) creates duplicate entries in GA4 reports. Standardization eliminates data fragmentation.

    Exactly how to do it:

    1. Create a company-wide naming guide (e.g., source: lowercase, no spaces, use underscore).
    2. For sources: facebook, google, newsletter, linkedin, shopify_email.
    3. For mediums: cpc, email, social, organic, referral, display.
    4. For campaigns: use date prefix (2026_spring_sale).
    5. Share the guide with all team members and agencies.

    Pro script / template: Download our free UTM naming convention template at rafirit.com/utm-template

    📊 Expected results: Within one month, GA4 reports will show clean, aggregated data, reducing reporting errors by 40%.

    Tactic 1.3: Avoid Common Pitfalls

    Why this works: Most UTM errors come from typos, forgotten parameters, or URL encoding issues.

    Exactly how to do it:

    1. Never use capital letters (GA4 is case-sensitive — “Facebook” and “facebook” are different).
    2. Avoid special characters except – and _.
    3. Always URL-encode spaces as %20 or use +.
    4. Test URLs with Google’s Campaign URL Builder before launching.
    5. Use a spreadsheet to generate URLs in bulk to ensure consistency.

    Pro script / template: =HYPERLINK(CONCATENATE("https://yoursite.com/","?utm_source=",A1,"&utm_medium=",B1,"&utm_campaign=",C1),"Click Here") — Excel formula for bulk URL generation.

    📊 Expected results: Reducing errors by 80% leads to more accurate attribution and ROI calculations.


    Phase 2: Building and Deploying UTM URLs

    Now that you know the rules, it’s time to create actual campaign URLs. You have three options: manual, tool-based, or automated via Google Tag Manager.

    Tactic 2.1: Manual URL Creation with Google’s Campaign URL Builder

    Why this works: It’s free, straightforward, and ensures all parameters are correctly formatted.

    Exactly how to do it:

    1. Go to ga-dev-tools.google/campaign-url-builder.
    2. Enter your website URL (e.g., https://yourshop.com).
    3. Fill in source, medium, campaign name, and optional term/content.
    4. Click “Generate URL” and copy the final link.
    5. Use this link in your ads, emails, or social posts.

    Pro script / template: For bulk needs, use the Bulk URL Builder spreadsheet template.

    📊 Expected results: You can generate a single URL in under 60 seconds.

    Tactic 2.2: Use a UTM Builder Tool for Team Efficiency

    Why this works: Tools like UTM.io or HubSpot’s UTM builder allow team collaboration and prevent inconsistencies.

    Exactly how to do it:

    1. Choose a tool (free or paid) that integrates with your marketing stack.
    2. Create a project per campaign and define default naming conventions.
    3. Generate URLs in bulk with auto-fill from your CRM.
    4. Share generated URLs directly with your team.
    5. Track generated URLs in a central dashboard.

    Pro script / template: Check out UTM.io for a team-friendly solution; it offers a 14-day free trial.

    📊 Expected results: Teams can reduce URL creation time by 50% and maintain 100% naming consistency.

    Tactic 2.3: Automate UTM Parameters with Google Tag Manager (GTM)

    Why this works: For advanced setups, you can inject UTM parameters into existing URLs without manual changes.

    Exactly how to do it:

    1. Set up a GTM variable that reads query parameters.
    2. Create a tag to rewrite the URL with UTM parameters based on triggers (e.g., form submission).
    3. Test using GTM’s preview mode.
    4. Publish the container after validation.

    Pro script / template: Use this custom JavaScript variable in GTM: function() { var params = new URLSearchParams(window.location.search); return params.get('utm_source') || '(direct)'; }

    📊 Expected results: Once implemented, 100% of traffic will carry UTM data without manual tag insertion.

    Tactic 2.4: Test Your UTM Links Before Launch

    Why this works: Even a small typo can break tracking. Testing ensures data integrity.

    Exactly how to do it:

    1. Click the UTM link and check the real-time report in GA4.
    2. Look for the campaign name in the “User acquisition” report.
    3. Use the GA4 DebugView to see the event parameters.
    4. Click alternative versions to ensure they also register.
    5. Document successful tests in a shared log.

    Pro script / template: Set up a Google Sheets tracker with columns: Campaign, URL, Date Tested, Status. Mark green when data appears in GA4.

    📊 Expected results: Catching errors pre-launch saves hours of troubleshooting later.

    🔍 Get a Free UTM Audit

    We’ll review your current UTM setup and provide a 3-page report with actionable fixes — at no cost.

    Get a Free UTM Audit →

    Limited slots · Results in 72 hours


    Phase 3: Implementing UTM Tracking in GA4

    GA4 automatically captures UTM parameters as session-scoped dimensions. However, to get the most out of them, you need to set up custom dimensions and reports.

    Tactic 3.1: Map UTM Parameters to Custom Dimensions

    Why this works: GA4’s standard reports don’t show all UTM data. Custom dimensions make them available for analysis.

    Exactly how to do it:

    1. In GA4, go to Admin > Custom Definitions > Custom Dimensions.
    2. Create dimensions: “UTM Source”, “UTM Medium”, “UTM Campaign”, “UTM Term”, “UTM Content”.
    3. Set scope to “Event” and event parameter to the corresponding UTM parameter.
    4. Wait 24 hours for data to appear.
    5. Use these dimensions in exploration reports.

    Pro script / template: When creating a new dimension, use the exact same name as the parameter (e.g., utm_source) to avoid confusion.

    📊 Expected results: After 7 days, you can segment traffic by any UTM dimension.

    Tactic 3.2: Build a Campaign Performance Report in GA4

    Why this works: A customized report gives you at-a-glance insight into which campaigns drive conversions.

    Exactly how to do it:

    1. Go to Explore > Blank exploration.
    2. Add dimensions: Campaign name (or your custom UTM Campaign dimension).
    3. Add metrics: Sessions, Conversions, Revenue, ROAS.
    4. Filter by date range (e.g., last 30 days).
    5. Save as a custom report for daily monitoring.

    Pro script / template: Add a segment for “New vs Returning” users to see campaign impact on acquisition.

    📊 Expected results: You’ll identify your top 3 performing campaigns within minutes.

    Tactic 3.3: Set Up UTM-Based Conversion Goals

    Why this works: GA4 allows you to create conversion events triggered by specific UTM parameters.

    Exactly how to do it:

    1. Go to Admin > Events > Create Event.
    2. Name it “utm_sale_conversion”.
    3. Add condition: parameter utm_campaign equals “spring_sale_2026”.
    4. Mark as conversion.
    5. Trigger by custom event.

    Pro script / template: Use this to track attribution to the exact campaign, not just source/medium.

    📊 Expected results: Accurate conversion counts per campaign from day one.

    Tactic 3.4: Create a UTM Audit Report

    Why this works: Regular audits catch naming drift and missing parameters.

    Exactly how to do it:

    1. In Looker Studio, connect GA4 data.
    2. Build a table with dimensions: source, medium, campaign.
    3. Add filters to find blanks or anomalies.
    4. Set up alerts for new unparameterized traffic.
    5. Share monthly report with team.

    Pro script / template: Use the filter “Campaign contains (not set)” to identify missing UTM data.

    📊 Expected results: Reduce missing UTM data by 50% in 30 days.


    Phase 4: Advanced UTM Strategies for GA4

    Once you’ve mastered the basics, these advanced tactics will give you an edge over competitors.

    Tactic 4.1: Use UTM for Offline Campaign Tracking

    Why this works: QR codes on print ads or billboards can carry UTM data.

    Exactly how to do it:

    1. Generate a URL with utm_source=qr_code, utm_medium=offline, utm_campaign=dhaka_billboard.
    2. Create a QR code using a short link (e.g., bit.ly).
    3. Print the QR code.
    4. Track visits in GA4’s campaign report.
    5. Compare foot traffic vs.

    Pro script / template: Add a unique promo code to the landing page to tie online actions to offline exposure.

    📊 Expected results: Measure ROI of offline campaigns, often a blind spot for Dhaka businesses.

    Tactic 4.2: Leverage UTM in Email Marketing

    Why this works: Email campaigns without UTM are invisible in GA4.

    Exactly how to do it:

    1. Use utm_medium=email and utm_source=newsletter or transactional.
    2. Include utm_campaign with email series name.
    3. Use utm_content for AB test versions.
    4. Automate via email platform’s URL parameter feature.
    5. Segment GA4 reports by email campaign.

    Pro script / template: Mailchimp, HubSpot, and MailerLite allow you to add UTM automatically. Enable it in settings.

    📊 Expected results: Email campaign attribution becomes precise, leading to a 15% increase in email-driven revenue.

    Tactic 4.3: UTM for Social Media (Facebook, Instagram, LinkedIn)

    Why this works: Social platforms often strip UTM from organic posts, but you can embed them in URLs.

    Exactly how to do it:

    1. For paid ads, add UTM in the ad’s URL field.
    2. For organic, use a shortened URL with UTM (e.g., bit.ly with UTM appended).
    3. Use utm_content to test different creatives.
    4. Monitor GA4’s “Social” channel reports.
    5. Compare performance across platforms.

    Pro script / template: Use Facebook’s URL parameter feature to auto-append UTM for each ad set.

    📊 Expected results: See which social platform delivers highest conversion rate — for Dhaka, Facebook often outperforms Instagram for local businesses.

    Tactic 4.4: Use UTM with Google Ads Auto-Tagging

    Why this works: Google Ads auto-tagging adds GCLID, but UTM gives you more granularity.

    Exactly how to do it:

    1. Enable auto-tagging in Google Ads settings.
    2. Add UTM parameters manually if you need custom campaign names.
    3. Use final URL suffix to append utm_campaign and utm_content.
    4. Avoid duplicating parameters.
    5. Test with Google Ads preview.

    Pro script / template: Final URL suffix example: utm_campaign={_campaign}&utm_content={adid}

    📊 Expected results: Combined auto-tagging and UTM give you dual-layer tracking, reducing attribution errors by 20%.

    🏆 Real Case Study: How a Dhaka-Based Online Grocery Boosted ROI 87% with UTM

    Business: FreshDhaka.com — online grocery delivery in Dhaka (Mohanagar area).

    Situation: In early 2025, they were spending ৳120,000/month on Facebook Ads, Google Ads, and email newsletters. But their GA4 showed 60% of traffic as “(direct)” — meaning they couldn’t attribute conversions. They had no UTM parameters in place.

    What we did:

    • Audited their existing URLs and found 200+ broken tags.
    • Implemented a standardized UTM naming convention (source: facebook, google, newsletter1; medium: cpc, email).
    • Built a Google Sheets template for the team to generate URLs.
    • Set up GA4 custom dimensions and a campaign performance dashboard.
    • Created conversion events for each campaign.

    Results after 3 months:

    • Attribution accuracy improved from 40% to 92%.
    • Identified that Facebook Ads produced 70% of conversions but at a 50% higher CPA than email.
    • Shifted budget: reduced Facebook spend by 30%, doubled email marketing.
    • Overall conversion rate increased from 2.1% to 3.9%.
    • Monthly revenue increased by ৳85,000 (from ৳450,000 to ৳535,000).
    • ROI improved 87% (from 3.2x to 6.0x).

    “We had no idea our email list was that profitable. UTM tracking changed how we allocate our entire marketing budget.” — Rashed Karim, CEO FreshDhaka.com

    See more Rafirit Station case studies →


    ✅ UTM Implementation Checklist

    Step Status
    Define naming convention document
    Set up Google Campaign URL Builder bookmark
    Create UTM spreadsheet for bulk generation
    Add UTM to all active campaigns ⚠️
    Map UTM parameters as GA4 custom dimensions
    Build a campaign performance report in GA4
    Set up conversion events for major campaigns ⚠️
    Test UTM links with GA4 DebugView
    Create a Looker Studio UTM audit dashboard
    Train team on UTM best practices ⚠️
    Implement UTM for offline campaigns
    Automate UTM with GTM for internal links
    Regular monthly UTM cleanup audit ⚠️
    Share results with stakeholders

    Status: ✅ Done ⚠️ In progress ❌ Not started


    ❓ Frequently Asked Questions

    Q: What’s the difference between UTM parameters and auto-tagging?

    Auto-tagging (GCLID) is Google Ads’ own parameter that GA4 uses to populate the “Google Ads” campaign reports. UTM parameters are manual and work across all platforms. They complement each other — use both for maximum granularity. Auto-tagging requires less manual work, but UTM gives you more control over naming.

    Q: How many UTM parameters should I use?

    At minimum, use utm_source, utm_medium, and utm_campaign. Add utm_term for paid search keywords and utm_content for A/B testing. Over-parameterization (more than 5) can clutter your reports. Stick to the standard five unless you have a specific need.

    Q: Can UTM parameters affect SEO?

    No, UTM parameters are used for tracking and are ignored by search engines like Google. They won’t hurt your SEO. However, avoid using too many parameters on a single URL as it may look spammy. Use canonical tags if you’re concerned.

    Q: How do I check if my UTM parameters are working?

    Use GA4’s DebugView: send a test event and look for the UTM parameters in the event data. You can also check the “User acquisition” report in GA4 — if your campaign appears, it’s working. Use the Realtime report to see immediate data.

    Q: What happens if I forget to add UTM parameters?

    Traffic from that campaign will show as “(direct)” or “(not set)” in GA4. This corrupts your attribution data. To recover, you can use GTM to retroactively inject UTM based on URL patterns, but it’s best to prevent missing parameters with a checklist.

    Q: Should I use UTM for internal links?

    No, never use UTM parameters for internal links (e.g., from one page to another on your site). They will reset session data and treat internal traffic as new campaigns. Only use UTM on external links (ads, emails, social media, referrals).

    Q: Does Rafirit Station offer UTM tracking services?

    Yes, Rafirit Station provides comprehensive UTM and GA4 setup services for businesses in Dhaka and worldwide. We offer audits, implementation, and training. Contact us to learn more.


    🎯 The Bottom Line

    UTM parameters are not just a nice-to-have; they are the foundation of data-driven marketing. In 2026, GA4’s event-based model makes them even more critical because without UTM, every campaign becomes a black box.

    Here’s the counterintuitive insight: Most marketers focus on the wrong UTM parameter. They obsess over utm_source but forget utm_content. Yet, it’s utm_content that allows you to test micro-differences in ad copy, images, and CTAs. A 2025 study by Tonkin found that A/B testing using utm_content improved conversion rates by 14% on average.

    Start with the checklist above. If you only do three things: standardize your naming, use the Campaign URL Builder, and set up custom dimensions in GA4, you’ll be ahead of 90% of Bangladeshi businesses.


    ⚡ Your Next Step (Do This Today)

    1. Open your Google Ads and check if auto-tagging is enabled. If not, turn it on.
    2. Create a Google Sheets template with your naming convention and share it with your team.
    3. Take one campaign (e.g., your latest Facebook Ad) and create a UTM URL using the builder.
    4. Replace the link in the ad with the new UTM URL.
    5. Check GA4 after 24 hours to see the campaign data appear.

    Ready to Get Results?

    Let Rafirit Station set up your GA4 with proper UTM tracking. Our Dhaka-based team will audit your current campaigns, implement a flawless tracking system, and train your team.

    🗓 Book Your Free Strategy Call →

    💬 Drop “UTM parameters GA4 tracking” in the comments and we’ll send you our free UTM implementation checklist — no email required.

    📈
    Is your GA4 + Pixel tracking every conversion correctly?
    Full GA4 + GTM + CAPI setup
    Get Free Tracking Audit → 💬 Or WhatsApp us now

    💬 Leave a Comment

    Your email will not be published. Fields marked * are required.

    Ready to Apply This?

    Need Expert Help With Your
    Analytics?

    Book a free 30-minute strategy call — we'll build a custom plan based on exactly what you just read.