troubleshootingUpdated 2025

LinkedIn Sponsored Posts Include li_fat_id But Still Show as Referral

LinkedIn's li_fat_id parameter tracks ad clicks for LinkedIn, but GA4 doesn't recognize it. Your B2B campaigns appear as referral traffic without UTMs.

7 min readtroubleshooting

You're running LinkedIn Sponsored Content targeting B2B decision-makers. Every click includes LinkedIn's tracking parameter. But in GA4, it's all showing as "linkedin.com / referral."

You can't measure which campaigns generate qualified leads. You can't prove LinkedIn ROI to your CMO. The data just isn't there.

🚨 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

The li_fat_id Limitation

LinkedIn automatically adds li_fat_id (LinkedIn First-party Ad Tracking ID) to every ad click:

Code
yoursite.com/demo?li_fat_id=01-abc123

This parameter connects clicks to LinkedIn Campaign Manager. It's how LinkedIn:

  • Tracks conversions for campaign optimization
  • Optimizes ad delivery based on performance
  • Attributes leads to specific ads and campaigns
  • Powers LinkedIn Insight Tag conversion events
  • Builds retargeting audiences

But GA4 doesn't recognize li_fat_id for attribution.

LinkedIn's tracking parameter means nothing to Google Analytics. GA4 can't read it for traffic classification or campaign attribution.

😰 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

Why Your B2B Campaigns Look Like Referrals

When someone clicks your LinkedIn Sponsored Post, GA4's classification logic:

  1. Sees referrer: linkedin.com
  2. Looks for UTM parameters: None present
  3. Sees unknown parameter: li_fat_id
  4. Decision: Classify as referral traffic

The result:

Your $5,000 B2B lead generation campaign gets grouped with:

  • Organic LinkedIn profile shares
  • Company page posts
  • Employee mentions
  • LinkedIn articles
  • Group discussions

All lumped together as generic "linkedin.com / referral" with no campaign visibility.

The Business Impact

What you lose without proper tracking:

  • Campaign-level lead quality measurement
  • Cost per qualified lead (CPQL) calculation
  • Job title / seniority performance comparison
  • Industry segment conversion rates
  • LinkedIn ROI proof for budget justification

What GA4 shows:

Code
Traffic Acquisition Report:
Source/Medium: linkedin.com / referral
Campaign: (not set)
Ad Content: (not set)
Qualified Leads: ??? (no attribution)
Pipeline Value: $45,000 (but from which campaigns?)

You know LinkedIn drives pipeline, but can't prove which campaigns work.

The Fix: Add UTM Parameters

LinkedIn's li_fat_id and UTM parameters work together without conflict. You need both:

  • li_fat_id → LinkedIn Campaign Manager conversion tracking
  • UTM parameters → GA4 campaign attribution

Step-by-Step Fix

In LinkedIn Campaign Manager:

  1. Navigate to Campaign ManagerCampaigns
  2. Select campaign to edit
  3. Click campaign name → Settings
  4. Find Campaign Group Settings or Campaign Settings
  5. Locate Enable LinkedIn Insight Tag or Parameters section
  6. Add UTM parameters to destination URL

Recommended UTM structure for LinkedIn:

Code
?utm_source=linkedin
&utm_medium=paid-social
&utm_campaign=enterprise_leads
&utm_content=whitepaper_cta
&utm_term=cfo_title

For granular B2B tracking:

Code
?utm_source=linkedin
&utm_medium=paid-social
&utm_campaign=q4_demand_gen
&utm_content=job_title_cfo
&utm_term=company_size_500plus
  1. Save campaign settings

What happens when user clicks:

LinkedIn appends li_fat_id automatically:

Code
yoursite.com/demo?utm_source=linkedin&utm_medium=paid-social&utm_campaign=enterprise_leads&li_fat_id=01-abc123

Result:

  • LinkedIn reads li_fat_id for conversion tracking and optimization
  • GA4 reads the UTMs for campaign attribution
  • Both platforms work correctly with complete B2B lead data

What Changes in GA4

Before (li_fat_id only):

  • Source/Medium: linkedin.com / referral
  • Channel: Referral
  • Campaign: (not set)
  • Content: (not set)
  • No campaign or audience attribution

After (li_fat_id + UTMs):

  • Source/Medium: linkedin / paid-social
  • Channel: Paid Social
  • Campaign: enterprise_leads
  • Content: whitepaper_cta
  • Term: cfo_title
  • Full B2B campaign attribution

You can finally see:

  • Which LinkedIn campaigns drive qualified leads
  • Which job titles convert best
  • Which content offers generate pipeline
  • Which company sizes have highest LTV
  • Actual cost per qualified lead per campaign

Advanced: LinkedIn Insight Tag Setup

LinkedIn Insight Tag tracks conversions for LinkedIn Campaign Manager (uses li_fat_id, separate from GA4).

Base code (add to all pages):

Html
<!-- LinkedIn Insight Tag -->
<script type="text/javascript">
_linkedin_partner_id = "123456";
window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
window._linkedin_data_partner_ids.push(_linkedin_partner_id);
</script>
<script type="text/javascript">
(function(l) {
if (!l){window.lintrk = function(a,b){window.lintrk.q.push([a,b])};
window.lintrk.q=[]}
var s = document.getElementsByTagName("script")[0];
var b = document.createElement("script");
b.type = "text/javascript";b.async = true;
b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js";
s.parentNode.insertBefore(b, s);})(window.lintrk);
</script>
<noscript>
<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=123456&fmt=gif" />
</noscript>

Conversion events (add to thank-you/confirmation pages):

Javascript
// Lead conversion
window.lintrk('track', { conversion_id: 123456 });
 
// Specific conversion with value
window.lintrk('track', {
  conversion_id: 123456,
  conversion_value: 1000
});
 
// Custom event
_linkedin_data_partner_ids.push(_linkedin_partner_id);
</script>

LinkedIn Conversion Tracking setup:

  1. LinkedIn Campaign Manager → Account AssetsInsight Tag
  2. Install base code on all pages
  3. Conversions → Create conversion goals
  4. Add conversion tracking to lead forms, demos, purchases
  5. Verify with LinkedIn Insight Tag Helper Chrome extension

Troubleshooting

Issue 1: UTMs Not Appearing in GA4

Problem: Added UTMs to LinkedIn campaigns but GA4 still shows "linkedin.com / referral".

Fix:

  1. Check for URL redirects stripping parameters
  2. Ensure redirects preserve query parameters:
    Javascript
    // ❌ Wrong (loses UTMs)
    window.location = '/new-page';
     
    // ✅ Correct (preserves UTMs)
    window.location = '/new-page' + window.location.search;
  3. Verify UTMs in browser address bar after clicking sponsored post
  4. Test with GA4 Real-time report

Issue 2: LinkedIn Conversions Dropped

Problem: After adding UTMs, LinkedIn Campaign Manager shows zero conversions.

Cause: LinkedIn Insight Tag not installed or conversion goals not configured.

Fix:

  1. Verify Insight Tag installed on all pages
  2. Check Insight Tag Helper Chrome extension shows "Tag found"
  3. Create conversion goals in Campaign Manager
  4. Verify conversions fire in Campaign Manager → Insight Tag → Event History

Issue 3: Lead Gen Forms Not Tracking

Problem: LinkedIn Lead Gen Forms show no data in GA4.

Cause: Lead Gen Forms don't redirect to your website, so UTMs don't apply.

Fix:

  • Lead Gen Forms collect leads within LinkedIn (no website visit)
  • Use LinkedIn's native Lead Gen Form reporting in Campaign Manager
  • For website visits from "Learn More" links, add UTMs to those destination URLs

Issue 4: Message Ads Not Tracking

Problem: Sponsored InMail (Message Ads) clicks not tracked.

Fix:

  • Message Ads support li_fat_id and UTMs
  • Add UTMs to CTA button destination URLs in Message Ad creative
  • Both parameters will be present when user clicks CTA

FAQ

Does this affect LinkedIn Lead Gen Forms?

No. Lead Gen Forms submit directly to LinkedIn without redirecting to your site, so UTMs don't apply. Use LinkedIn's native reporting for Lead Gen Form performance. However, if users click "Learn More" to visit your website, UTMs on that link will track properly.

Will UTMs break LinkedIn conversion tracking?

No. LinkedIn's Insight Tag operates independently using li_fat_id for attribution. UTMs are only for GA4. Both track conversions simultaneously without conflicts.

Should I use "linkedin" or "LinkedIn" as utm_source?

Use lowercase "linkedin" for consistency with GA4's data formatting and reporting standards.

What utm_medium should I use for LinkedIn Ads?

Recommended: paid-social (GA4 classifies as "Paid Social"). Alternatives: cpc or paidsocial. Avoid generic "social" which may classify as organic.

Can I track LinkedIn Ads by job title?

Yes, use utm_content or utm_term to identify targeting:

Code
utm_content=job_title_cfo
utm_content=job_title_cmo
utm_content=seniority_director
utm_content=industry_saas

Then segment GA4 reports by these values.

Why don't LinkedIn and GA4 numbers match?

Expect variance due to:

  • Ad blockers (block GA4, not LinkedIn Insight Tag)
  • View-through conversions (LinkedIn tracks, GA4 doesn't)
  • Attribution windows (LinkedIn: 90-day click/1-day view, GA4: last-click)
  • LinkedIn counts impressions differently than GA4 counts sessions

How long until UTMs appear in GA4?

Immediate in Real-time reports. Standard reports update within 24-48 hours.

Can I track LinkedIn Document Ads?

Yes. Document Ads (native PDF viewers in LinkedIn feed) support UTMs when users click through to your website. Add UTMs to the destination URL configured in the Document Ad campaign.

What about LinkedIn Dynamic Ads?

Dynamic Ads (personalized ads using profile data) support UTMs just like standard Sponsored Content. Add UTMs to destination URLs in campaign settings.

Does this work for LinkedIn Event Ads?

Yes. Event Ads support UTMs on the event landing page URL. Track which ads drive event registrations by adding campaign-specific UTMs.

Internal Guides

LinkedIn Official Documentation

GA4 Resources

Conclusion

LinkedIn's li_fat_id is invisible to GA4. Without manual UTM parameters, all LinkedIn Ads show as generic referral traffic with no campaign attribution.

The B2B solution:

  • ✅ LinkedIn automatically adds li_fat_id (for Insight Tag tracking)
  • ✅ You manually add UTMs (for GA4 attribution)
  • ✅ Both parameters coexist on same URL without conflicts
  • ✅ LinkedIn Campaign Manager uses li_fat_id for optimization
  • ✅ GA4 uses UTMs for campaign tracking and lead attribution
  • ✅ Complete B2B attribution across both platforms

Result: Track which LinkedIn campaigns drive qualified leads, measure cost per lead by job title and seniority, prove LinkedIn ROI with real pipeline data, and optimize ad spend based on actual B2B performance.


Related Documentation:

✅ 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.