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)
- Google Analytics Help: UTM parameters
- Google Campaign URL Builder
- GA4 UTM reference
- HubSpot UTM Tracking Template
- Moz: UTM Parameters Guide
- Semrush Blog: UTM Parameters
- Ahrefs: UTM Parameters
- Backlinko: UTM Tracking
- Shopify: UTM Parameters for Ecommerce
- Search Engine Journal: UTM Tracking Guide
🔗 Rafirit Station Services
- Web Analytics — GA4 & GTM setup
- Web Analytics Dhaka — Local analytics team
- CRO Services — Use data to convert more
- SEO Services — Measure & grow organic traffic
- Google Ads Management — Data-driven PPC
- Case Studies — Analytics-driven results
- Packages & Pricing
- Rafirit Station Bangladesh — Digital Agency
- Rafirit Station Dhaka — Full-Service Agency
🚀 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:
- Always start with
utm_source(the platform, e.g., facebook, newsletter, google). - Set
utm_mediumto the channel type (cpc, email, social, organic). - Use
utm_campaignfor the campaign name (e.g., spring_sale_2026). - Optionally add
utm_termfor paid keywords. - Use
utm_contentto 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:
- Create a company-wide naming guide (e.g., source: lowercase, no spaces, use underscore).
- For sources: facebook, google, newsletter, linkedin, shopify_email.
- For mediums: cpc, email, social, organic, referral, display.
- For campaigns: use date prefix (2026_spring_sale).
- 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:
- Never use capital letters (GA4 is case-sensitive — “Facebook” and “facebook” are different).
- Avoid special characters except – and _.
- Always URL-encode spaces as %20 or use +.
- Test URLs with Google’s Campaign URL Builder before launching.
- 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:
- Go to ga-dev-tools.google/campaign-url-builder.
- Enter your website URL (e.g., https://yourshop.com).
- Fill in source, medium, campaign name, and optional term/content.
- Click “Generate URL” and copy the final link.
- 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:
- Choose a tool (free or paid) that integrates with your marketing stack.
- Create a project per campaign and define default naming conventions.
- Generate URLs in bulk with auto-fill from your CRM.
- Share generated URLs directly with your team.
- 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:
- Set up a GTM variable that reads query parameters.
- Create a tag to rewrite the URL with UTM parameters based on triggers (e.g., form submission).
- Test using GTM’s preview mode.
- 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:
- Click the UTM link and check the real-time report in GA4.
- Look for the campaign name in the “User acquisition” report.
- Use the GA4 DebugView to see the event parameters.
- Click alternative versions to ensure they also register.
- 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.
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:
- In GA4, go to Admin > Custom Definitions > Custom Dimensions.
- Create dimensions: “UTM Source”, “UTM Medium”, “UTM Campaign”, “UTM Term”, “UTM Content”.
- Set scope to “Event” and event parameter to the corresponding UTM parameter.
- Wait 24 hours for data to appear.
- 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:
- Go to Explore > Blank exploration.
- Add dimensions: Campaign name (or your custom UTM Campaign dimension).
- Add metrics: Sessions, Conversions, Revenue, ROAS.
- Filter by date range (e.g., last 30 days).
- 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:
- Go to Admin > Events > Create Event.
- Name it “utm_sale_conversion”.
- Add condition: parameter utm_campaign equals “spring_sale_2026”.
- Mark as conversion.
- 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:
- In Looker Studio, connect GA4 data.
- Build a table with dimensions: source, medium, campaign.
- Add filters to find blanks or anomalies.
- Set up alerts for new unparameterized traffic.
- 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:
- Generate a URL with utm_source=qr_code, utm_medium=offline, utm_campaign=dhaka_billboard.
- Create a QR code using a short link (e.g., bit.ly).
- Print the QR code.
- Track visits in GA4’s campaign report.
- 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:
- Use utm_medium=email and utm_source=newsletter or transactional.
- Include utm_campaign with email series name.
- Use utm_content for AB test versions.
- Automate via email platform’s URL parameter feature.
- 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:
- For paid ads, add UTM in the ad’s URL field.
- For organic, use a shortened URL with UTM (e.g., bit.ly with UTM appended).
- Use utm_content to test different creatives.
- Monitor GA4’s “Social” channel reports.
- 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:
- Enable auto-tagging in Google Ads settings.
- Add UTM parameters manually if you need custom campaign names.
- Use final URL suffix to append utm_campaign and utm_content.
- Avoid duplicating parameters.
- 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
🎯 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)
- Open your Google Ads and check if auto-tagging is enabled. If not, turn it on.
- Create a Google Sheets template with your naming convention and share it with your team.
- Take one campaign (e.g., your latest Facebook Ad) and create a UTM URL using the builder.
- Replace the link in the ad with the new UTM URL.
- 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.
💬 Drop “UTM parameters GA4 tracking” in the comments and we’ll send you our free UTM implementation checklist — no email required.
💬 Leave a Comment
Your email will not be published. Fields marked * are required.