Skip to content

Server-Side Tagging8 min read

LinkedIn Conversions API: Setup with Server-Side GTM, Deduplication and Qualified Leads

LinkedIn recommends sending conversions through both the Insight Tag and the Conversions API. This guide explains LinkedIn's deduplication rules, the identifiers it needs, the server-side GTM route and the 30-day rule for qualified leads, from LinkedIn's developer documentation.

Sakib Hossain, Founder & Lead Tracking Engineer
Founder & Lead Tracking Engineer
All Articles
In shortFor B2B advertisers, LinkedIn is often the most expensive channel and the hardest to measure. The Insight Tag runs in the browser and misses some conversions, and the leads that matter, the ones sales qualifies, are decided days later in a CRM. The LinkedIn Conversions API covers both gaps. This guide explains how LinkedIn wants it set up, using its developer documentation on Microsoft Learn.

Insight Tag and Conversions API together

LinkedIn's deduplication page recommends that advertisers send conversions through both the Insight Tag and the Conversions API. Its use case page lists three ways to share conversions: the Insight Tag, the Conversions API and CSV upload, and says the API is supported through direct integrations and third-party partner integrations.

Related: LinkedIn: Conversions API use cases

How LinkedIn deduplicates

LinkedIn matches the browser and server copies with an event ID. On the Insight Tag, a page-load conversion sets it with window._linkedin_event_id before the base code, and an event-based conversion passes event_id in window.lintrk. Your server must pick up the same ID from the browser and send it with the matching Conversions API event.

Two details differ from other platforms. First, LinkedIn says you must create a conversion rule for each data source, one for the browser and one for the server. Second, when it finds a duplicate, LinkedIn discards the Conversions API event and counts only the Insight Tag event. Its documentation adds that the Insight Tag event will typically have a higher count if deduplication is working correctly.

Insight Tag event conversion with an event ID
javascript
// Browser: fire the conversion with an ID your server will reuse.
const eventId = "lead-58213";

window.lintrk("track", {
  conversion_id: 1234567,   // the browser conversion rule
  event_id: eventId,
});

// Server: send the Conversions API event for the server conversion rule
// with eventId "lead-58213".

Related: LinkedIn: Deduplication

The identifiers LinkedIn needs

LinkedIn's server-side GTM guide lists the user identifiers and says one of them is required: a SHA-256 hashed email, the LinkedIn first-party click ID (the li_fat_id value), an Acxiom ID, the IP address or a Google advertising ID.

First name, last name, company name, job title, country code and conversion value are optional. In practice, send the hashed work email from your form and the li_fat_id when you have them, because they are the identifiers most B2B lead forms can supply.

Setting it up with server-side GTM

LinkedIn publishes a guide for Google Tag Manager server-side tagging. Its prerequisites are a LinkedIn API access token, GA4 events configured on the site, and both a GTM web container and a server container. The guide says this route is only available if you use GA4.

What to do
  • Create a conversion rule for the server source in Campaign Manager, choosing the option to use a tag manager, and copy its Conversion ID for Google Tag Manager.
  • Generate a LinkedIn API access token, as LinkedIn's guide describes.
  • Add LinkedIn's tag to the server container with the conversion rule ID and the access token.
  • Pass the event ID and the hashed email from the web container to the server, so deduplication and matching work.
  • Test with Preview mode in both the web and the server container.

Related: LinkedIn: Server-side GTM implementation guide

Qualified leads from your CRM

The Conversions API is also how you tell LinkedIn which leads became qualified. LinkedIn's use case page says qualified leads data must be shared within 30 days to be included in ad set optimisation, so a monthly export is too slow. Send the update when sales marks the lead as qualified, through a CRM integration, a partner or a direct API job.

LinkedIn's documentation also mentions a version change: its Marketing API version 202601 is scheduled to be sunset on January 15, 2027, and LinkedIn recommends migrating to the latest versioned APIs. If you have a custom integration, check which version it calls.

Related: LinkedIn: Conversions API use cases

Sources

The rules above come from LinkedIn's developer documentation on Microsoft Learn, checked on 30 November 2026.

Related: Deduplication · Conversions API use cases · Google Tag Manager server-side tagging guide

Problems and fixes

1Conversions counted twice

Symptom
LinkedIn reports roughly double the leads your CRM shows.
Cause
The Insight Tag and server events don't share an event ID.
Fix
Set the event ID on the Insight Tag and send the same value from the server.

2Server rule shows fewer conversions than the browser rule

Symptom
The Conversions API rule has a lower count than the Insight Tag rule.
Cause
This is expected: LinkedIn discards the Conversions API copy of a duplicate and keeps the Insight Tag event.
Fix
Nothing to fix. LinkedIn says the Insight Tag count is typically higher when deduplication works.

3Server events not matched

Symptom
Events arrive but few are attributed.
Cause
No required identifier is sent, or the email isn't hashed.
Fix
Send at least one required identifier, ideally the SHA-256 hashed email and li_fat_id.

4Qualified leads ignored by optimisation

Symptom
Qualified lead uploads don't seem to change delivery.
Cause
LinkedIn only uses qualified leads shared within 30 days for ad set optimisation.
Fix
Send qualification updates as they happen, not in a monthly batch.

Implementation Checklist

Verify each milestone before deploying changes to live production ad accounts.

  • ✓Insight Tag on every page
  • ✓Separate conversion rules for browser and server
  • ✓Shared event ID on both copies
  • ✓Hashed email or li_fat_id sent with server events
  • ✓Server-side GTM with GA4, access token and rule ID
  • ✓Qualified leads sent within 30 days
  • ✓Custom integrations on a current API version
Tags:LinkedIn Conversions APILinkedIn Insight TagServer-side GTMDeduplicationB2B lead tracking
The takeawayThe LinkedIn Conversions API is worth setting up for any B2B advertiser that judges LinkedIn on leads. Run it alongside the Insight Tag with a shared event ID, send a hashed email or li_fat_id with every server event, and feed qualified leads back within 30 days. Expect the server rule to show fewer conversions than the browser rule; that is how LinkedIn's deduplication works.

Frequently asked questions

Do I need both the LinkedIn Insight Tag and the Conversions API?

LinkedIn recommends sending conversions through both, with deduplication.

Which copy does LinkedIn keep when it deduplicates?

LinkedIn discards the Conversions API event and counts only the Insight Tag event.

Do the browser and server need the same conversion rule?

No. LinkedIn says you must create a conversion rule for each data source, browser and server.

What identifier does the LinkedIn Conversions API require?

At least one of: SHA-256 hashed email, the LinkedIn first-party click ID, Acxiom ID, IP address or Google advertising ID.

Can I use the LinkedIn server-side GTM tag without GA4?

No. LinkedIn's guide says the server-side GTM solution is only available if you use GA4.

Want us to set this up for you?

This is the kind of work we do for clients every week. Tell us about your setup and we'll take it from there.