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.
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.
Table of contents
- The lifatid Limitation
- Why Your B2B Campaigns Look Like Referrals
- The Business Impact
- The Fix: Add UTM Parameters
- Step-by-Step Fix
- What Changes in GA4
- Before (lifatid only):
- After (lifatid + UTMs):
- Advanced: LinkedIn Insight Tag Setup
- Troubleshooting
- Issue 1: UTMs Not Appearing in GA4
- Issue 2: LinkedIn Conversions Dropped
- Issue 3: Lead Gen Forms Not Tracking
- Issue 4: Message Ads Not Tracking
- FAQ
- Does this affect LinkedIn Lead Gen Forms?
- Will UTMs break LinkedIn conversion tracking?
- Should I use "linkedin" or "LinkedIn" as utmsource?
- What utmmedium should I use for LinkedIn Ads?
- Can I track LinkedIn Ads by job title?
- Why don't LinkedIn and GA4 numbers match?
- How long until UTMs appear in GA4?
- Can I track LinkedIn Document Ads?
- What about LinkedIn Dynamic Ads?
- Does this work for LinkedIn Event Ads?
- Related Resources
- Internal Guides
- LinkedIn Official Documentation
- GA4 Resources
- Conclusion
🚨 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:
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
Why Your B2B Campaigns Look Like Referrals
When someone clicks your LinkedIn Sponsored Post, GA4's classification logic:
- Sees referrer: linkedin.com
- Looks for UTM parameters: None present
- Sees unknown parameter: li_fat_id
- 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:
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:
- Navigate to Campaign Manager → Campaigns
- Select campaign to edit
- Click campaign name → Settings
- Find Campaign Group Settings or Campaign Settings
- Locate Enable LinkedIn Insight Tag or Parameters section
- Add UTM parameters to destination URL
Recommended UTM structure for LinkedIn:
?utm_source=linkedin
&utm_medium=paid-social
&utm_campaign=enterprise_leads
&utm_content=whitepaper_cta
&utm_term=cfo_title
For granular B2B tracking:
?utm_source=linkedin
&utm_medium=paid-social
&utm_campaign=q4_demand_gen
&utm_content=job_title_cfo
&utm_term=company_size_500plus
- Save campaign settings
What happens when user clicks:
LinkedIn appends li_fat_id automatically:
yoursite.com/demo?utm_source=linkedin&utm_medium=paid-social&utm_campaign=enterprise_leads&li_fat_id=01-abc123
Result:
- LinkedIn reads
li_fat_idfor 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):
<!-- 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):
// 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:
- LinkedIn Campaign Manager → Account Assets → Insight Tag
- Install base code on all pages
- Conversions → Create conversion goals
- Add conversion tracking to lead forms, demos, purchases
- 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:
- Check for URL redirects stripping parameters
- Ensure redirects preserve query parameters:
Javascript
// ❌ Wrong (loses UTMs) window.location = '/new-page'; // ✅ Correct (preserves UTMs) window.location = '/new-page' + window.location.search; - Verify UTMs in browser address bar after clicking sponsored post
- 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:
- Verify Insight Tag installed on all pages
- Check Insight Tag Helper Chrome extension shows "Tag found"
- Create conversion goals in Campaign Manager
- 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:
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.
Related Resources
Internal Guides
- Fix LinkedIn UTM Conflict - Complete LinkedIn tracking setup
- Platform Click ID Conflicts - Auto-tagging across all platforms
- Complete UTM Tracking Guide (GA4 2025) - UTM fundamentals
- Fix Facebook UTM Conflict - Similar social platform issue
LinkedIn Official Documentation
- LinkedIn Insight Tag Setup - Official tag installation
- LinkedIn Campaign Manager - Campaign management
- LinkedIn Conversion Tracking - Conversion setup
GA4 Resources
- GA4 Channel Grouping - Default channel definitions
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
Join 2,847 marketers fixing their tracking daily