attributionUpdated 2025

How to Enable Auto-Tagging on All Ad Platforms

Complete guide to enabling gclid, fbclid, msclkid, and other auto-tagging across Google, Facebook, Microsoft, and more

7 min readattribution

Your paid campaigns are running. GA4 shows traffic as Direct. No cost data imported.

Why? Auto-tagging is disabled.

Here's how to enable click ID auto-tagging on every major ad platform in under 5 minutes.

Table of contents

🚨 Not sure what's breaking your tracking?

Run a free 60-second audit to check all 40+ ways UTM tracking can fail.

Scan Your Campaigns Free

✓ No credit card ✓ See results instantly

Quick Platform Navigation

PlatformClick IDEnable TimeDifficulty
Google Adsgclid30 secondsEasy
Facebook/InstagramfbclidAutomaticN/A
Microsoft Adsmsclkid2 minutesMedium
TikTok AdsttclidAutomaticN/A
LinkedIn AdsNo auto-taggingN/AUse UTMs
Twitter/X AdstwclidAutomaticN/A
Pinterest AdsepikAutomaticN/A

Note: Most platforms auto-append click IDs. Only Google Ads and Microsoft Ads require manual enable.

Step 1: Access Settings (10 seconds)

Code
1. Google Ads dashboard
2. Click Settings (left sidebar)
3. Click Account settings

Step 2: Enable Auto-Tagging (20 seconds)

Code
4. Scroll to "Auto-tagging"
5. Check the box: "Tag the URL that people click through from my ad"
6. Click Save

Done. All future Google Ads clicks will include gclid.

Verification

Code
1. Click any active ad
2. Check landing URL

Should see:
yoursite.com/page?gclid=Cj0KCQiA...

If gclid appears: ✅ Working
If no gclid: ❌ Check settings again

Enable automatic cost data import:

Code
1. Google Ads → Tools & Settings → Linked accounts
2. Find Google Analytics (GA4)
3. Click Details → Link
4. Select GA4 property
5. Enable auto-tagging: YES
6. Enable cost data import: YES
7. Save

Result: Cost, clicks, impressions automatically appear in GA4.

😰 Is this your only tracking issue?

This is just 1 of 40+ ways UTM tracking breaks. Most marketing teams have 8-12 critical issues they don't know about.

• 94% of sites have UTM errors

• Average: $8,400/month in wasted ad spend

• Fix time: 15 minutes with our report

✓ Connects directly to GA4 (read-only, secure)

✓ Scans 90 days of data in 2 minutes

✓ Prioritizes issues by revenue impact

✓ Shows exact sessions affected

Get Your Free Audit Report

Microsoft Ads: Enable msclkid Auto-Tagging

Step 1: Enable Auto-Tagging

Code
1. Microsoft Ads dashboard
2. Settings → Account settings
3. Find "Auto-tagging"
4. Select: ON
5. Save

Step 2: Configure Tracking Template

Microsoft's auto-tagging alone isn't enough for GA4. Add UTMs via tracking template:

Code
Account level (recommended):
1. Tools → Tracking → Tracking template
2. Enter:
{lpurl}?utm_source=bing&utm_medium=cpc&utm_campaign={campaign}&msclkid={msclkid}

Campaign level (granular control):
1. Select campaign
2. Settings → Tracking template
3. Enter custom template per campaign

Why both?

  • msclkid → Powers Microsoft UET conversion tracking
  • UTMs → Powers GA4 campaign attribution

Verification

Code
Click test ad, URL should show:
yoursite.com?utm_source=bing&utm_medium=cpc&utm_campaign=brand&msclkid=abc123

Both parameters present: ✅ Working

Facebook/Instagram Ads: fbclid (Automatic)

Facebook automatically appends fbclid. No enable step required.

What You Must Do: Add Manual UTMs

Code
Facebook Ads Manager → Campaign → URL Parameters:

utm_source=facebook&utm_medium=paid-social&utm_campaign={{campaign.name}}&utm_content={{adset.name}}

Actual landing URL:
yoursite.com?utm_source=facebook&utm_medium=paid-social&utm_campaign=spring_sale&fbclid=IwAR123

Result:
- fbclid: Facebook Pixel tracking
- UTMs: GA4 attribution

Dynamic Parameters

Use Facebook's macros for automatic population:

Code
{{campaign.name}} → Your campaign name
{{adset.name}} → Ad set name
{{ad.name}} → Individual ad name
{{site_source_name}} → facebook, instagram, audience_network, messenger
{{placement}} → feed, story, reels, etc.

Example URL:

Code
utm_source={{site_source_name}}&utm_medium=paid-social&utm_campaign={{campaign.name}}&utm_content={{adset.name}}_{{placement}}

Verification

Code
1. Preview ad in Facebook
2. Click "Copy Link"
3. Paste in notepad

Should see both fbclid AND UTMs:
yoursite.com?utm_source=facebook&fbclid=IwAR...

Both present: ✅ Working

TikTok Ads: ttclid (Automatic)

TikTok automatically appends ttclid. No enable step required.

What You Must Do: Add Manual UTMs

Code
TikTok Ads Manager → Ad group → Tracking → URL Parameters:

utm_source=tiktok&utm_medium=paid-social&utm_campaign={{campaign.name}}&utm_content={{adgroup.name}}

Dynamic Parameters

Code
{{campaign.name}} → Campaign name
{{campaign_id}} → Campaign ID
{{adgroup.name}} → Ad group name
{{adgroup_id}} → Ad group ID
{{ad.name}} → Ad creative name

Verification

Code
Test ad click should show:
yoursite.com?utm_source=tiktok&utm_medium=paid-social&utm_campaign=spring&ttclid=7abc

Both ttclid and UTMs: ✅ Working

LinkedIn Ads: No Auto-Tagging (Use UTMs)

LinkedIn does not append click IDs to URLs. Use manual UTMs only.

Setup

Code
LinkedIn Campaign Manager → Campaign → URL Parameters:

utm_source=linkedin&utm_medium=paid-social&utm_campaign=lead_gen_2024&utm_content=carousel_ad

Best Practices

Use descriptive naming:

Code
utm_source=linkedin
utm_medium=paid-social (or cpc, sponsored)
utm_campaign=your_campaign_name
utm_content=ad_format (carousel, video, single_image)
utm_term=targeting_criteria (optional)

Verification

Code
Test ad → Check URL:
yoursite.com?utm_source=linkedin&utm_medium=paid-social&utm_campaign=lead_gen

UTMs present: ✅ Working

Twitter/X Ads: twclid (Automatic)

Twitter automatically appends twclid. No enable step.

Add Manual UTMs

Code
Twitter Ads → Campaign → Website URL:

yoursite.com?utm_source=twitter&utm_medium=paid-social&utm_campaign=product_launch

Actual URL becomes:

Code
yoursite.com?utm_source=twitter&utm_medium=paid-social&utm_campaign=product_launch&twclid=abc123

Pinterest Ads: epik (Automatic)

Pinterest automatically appends epik parameter. No enable step.

Add Manual UTMs

Code
Pinterest Ads → Ad group → Destination URL:

yoursite.com?utm_source=pinterest&utm_medium=paid-social&utm_campaign=inspiration_campaign

Validation Checklist: Is Auto-Tagging Working?

For every active ad platform:

✅ Google Ads

  • Auto-tagging enabled in account settings
  • Test ad clicked
  • gclid appears in landing URL
  • GA4 linked with cost import enabled
  • GA4 shows source: google, medium: cpc

✅ Microsoft Ads

  • Auto-tagging enabled
  • Tracking template configured with UTMs
  • Test ad shows both msclkid and UTMs
  • GA4 shows source: bing, medium: cpc

✅ Facebook/Instagram

  • URL parameters configured with UTMs
  • Test ad shows both fbclid and UTMs
  • Facebook Pixel installed
  • GA4 shows source: facebook, medium: paid-social

✅ TikTok

  • URL parameters configured with UTMs
  • Test ad shows both ttclid and UTMs
  • TikTok Pixel installed
  • GA4 shows source: tiktok, medium: paid-social

✅ LinkedIn

  • URL parameters configured with UTMs
  • Test ad shows UTMs
  • GA4 shows source: linkedin, medium: paid-social

Common Issues & Fixes

Issue 1: Google Ads Auto-Tagging Disabled by Mistake

Symptom: Paid traffic shows as Direct in GA4

Check:

Code
Google Ads → Settings → Auto-tagging
Status should be: ON

Fix: Re-enable, wait 1 hour for new clicks to include gclid.

Issue 2: Microsoft Ads Shows Organic Traffic

Cause: Auto-tagging enabled but no UTMs in tracking template

Fix:

Code
Add tracking template:
{lpurl}?utm_source=bing&utm_medium=cpc&utm_campaign={campaign}&msclkid={msclkid}

Issue 3: Facebook Shows Direct Traffic

Cause: fbclid appended but no UTMs configured

Fix:

Code
Add URL parameters:
utm_source=facebook&utm_medium=paid-social&utm_campaign={{campaign.name}}

GA4 cannot read fbclid. UTMs are required for attribution.

Issue 4: Click IDs Stripped by Redirects

Cause: URL shortener or redirect removes query parameters

Check:

Code
1. Click ad
2. Check final landing URL
3. Verify click ID still present

Fix:

  • Use query parameter-preserving shorteners (Bitly, Rebrandly)
  • Test redirect chain before campaign launch
  • Avoid redirects when possible

Issue 5: Mixed Auto-Tagging and UTM Sources

Symptom: Google Ads URL shows gclid + utm_source=facebook

Problem: Conflicting attribution signals

Fix: Remove conflicting UTMs or let click ID handle attribution

✅ Fixed this issue? Great! Now check the other 39...

You just fixed one tracking issue. But are your Google Ads doubling sessions? Is Facebook attribution broken? Are internal links overwriting campaigns?

Connects to GA4 (read-only, OAuth secured)

Scans 90 days of traffic in 2 minutes

Prioritizes by revenue impact

Free forever for monthly audits

Run Complete UTM Audit (Free Forever)

Join 2,847 marketers fixing their tracking daily

FAQ

How long does it take for auto-tagging to work after enabling?

Immediate for new clicks. Historical clicks cannot be retroactively tagged. Wait 1 hour and test a new ad click to verify.

Can I disable auto-tagging after enabling it?

Yes, but you'll lose automatic cost import (Google Ads) and platform pixel tracking may break. Only disable if you have a specific technical conflict.

Why isn't my gclid appearing even though auto-tagging is enabled?

Check: 1) Auto-tagging truly enabled at account level, 2) Test in incognito browser, 3) No browser extensions blocking parameters, 4) No site redirects stripping parameters.

Do I need auto-tagging if I'm already using UTMs?

For Google Ads: UTMs work but auto-tagging enables automatic cost import. For other platforms: You need BOTH (click ID for pixel, UTMs for GA4).

What's the difference between click IDs and UTMs?

Click IDs (gclid, fbclid, msclkid) are platform-generated unique identifiers. UTMs are manually added campaign labels. Google Ads can use click IDs for full attribution; other platforms require both.

How do I verify auto-tagging is working across all campaigns?

Create one test ad per platform. Click each ad. Check landing URLs. All should contain either click IDs (automatic platforms) or configured UTMs (manual platforms).

Can auto-tagging break my website?

No. Click IDs are just URL parameters. However, poorly configured redirects might strip them, breaking tracking. Test thoroughly before launch.

Should I use account-level or campaign-level tracking templates?

Account-level for consistency. Campaign-level if you need different UTM naming per campaign. Most companies use account-level.

What if I run ads on platforms not listed here?

Check if the platform provides auto-tagging. If not, use manual UTM parameters. All platforms support manual UTMs.

How do I monitor if auto-tagging stays enabled?

Set up monthly audits: 1) Check auto-tagging settings, 2) Test one ad per platform, 3) Verify GA4 attribution, 4) Check cost data import.


Related guides:

✅ Fixed this issue? Great! Now check the other 39...

You just fixed one tracking issue. But are your Google Ads doubling sessions? Is Facebook attribution broken? Are internal links overwriting campaigns?

Connects to GA4 (read-only, OAuth secured)

Scans 90 days of traffic in 2 minutes

Prioritizes by revenue impact

Free forever for monthly audits

Run Complete UTM Audit (Free Forever)

Join 2,847 marketers fixing their tracking daily

UTM

Get Your Free Audit in 60 Seconds

Connect GA4, run the scan, and see exactly where tracking is leaking budget. No credit card required.

Trusted by growth teams and agencies to keep attribution clean.