Connecting Drupal Commerce to LinkedIn Ads
Drupal Commerce is self-hosted commerce inside a CMS built for complex content, which means the store is one part of a much larger site you fully control. LinkedIn is where B2B advertisers pay the highest cost per click in the industry, which makes an unmeasured conversion more expensive here than almost anywhere. The join between them succeeds or fails on one thing: whether the li_fat_id click identifier reaches the Drupal Commerce order before the conversion happens, because LinkedIn can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Drupal Commerce to LinkedIn CAPI: when the buyers are professionals
LinkedIn suits professional Drupal Commerce sales such as memberships, executive education and registrations. Capture li_fat_id, client-side if your CDN strips it, onto the draft order, and send placed orders to the LinkedIn Conversions API with hashed email. Count group registrations once at order total, and never send Commerce Recurring renewals.
LinkedIn fits a slice of Drupal Commerce that most commerce platforms do not serve: professional associations selling memberships, universities selling executive education, conference organizers selling registrations, suppliers with trade checkout. For those, a placed order is a professional buying in a work capacity, and LinkedIn's company-level reporting is worth having. For a consumer catalog on Drupal, skip it.
The li_fat_id arrives on the landing URL, and Drupal stacks often put Varnish or a CDN in front with rules that strip marketing query parameters to improve the cache hit rate. Check whether li_fat_id reaches Drupal or only the browser; if only the browser, capture it client-side into a first-party cookie. Either way, write it onto the draft order as soon as the cart exists, since a Commerce cart is an order, so the place transition has it without depending on any cached render.
Send the order email hashed; on membership and registration orders it is often the buyer's work address. Group registrations, where one person buys seats for colleagues, are one conversion at the order total, not one per attendee line. Membership auto-renewals billed through Commerce Recurring are retention and should not be sent at all, or one member becomes a LinkedIn conversion every year they stay.
Drupal Commerce → LinkedIn · what breaks
Why this join usually fails — Drupal Commerce → LinkedIn
- 01
The li_fat_id click identifier never reaches Drupal Commerce
Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run.
- 02
Configurable workflow states nobody agreed on
Drupal Commerce lets each install define its own order states. Two people reporting on the same store routinely count different states and never reconcile.
- 03
Long B2B cycles against LinkedIn's windows
LinkedIn's attribution windows are configurable and finite, while B2B deals close in quarters. A conversion that matters commercially frequently falls outside the window that LinkedIn will credit, and that gap has to be reported rather than argued about.
- 04
Nothing reconciles afterwards
Campaign Manager reports conversions against each defined conversion action with its own window. A successful API call is not a matched conversion — reconcile LinkedIn's reported conversions against your CRM for the same window, and expect a gap wherever your sales cycle exceeds the attribution setting.
Drupal Commerce → LinkedIn · the fix
What working looks like — Drupal Commerce → LinkedIn
The li_fat_id click identifier on every order
Conversions arriving in LinkedIn
Conversions appear in Campaign Manager against the campaign, with the value you sent, and feed LinkedIn's optimization and its company-level reporting.
Reconciled against the source
Drupal Commerce → LinkedIn · architecture
How Drupal Commerce and LinkedIn actually connect
- 1
Drupal Commerce holds the truth
You own the database, so the truth is exactly as good as the query. Pin down which order states count as revenue before comparing anything — Drupal's workflow states are configurable per install, so no two sites agree by default.
- 2
LinkedIn Ads needs a click to match
LinkedIn matches server events on the click identifier where present and hashed user data otherwise. Conversions have to be defined in Campaign Manager before anything can be sent against them, and the definition includes the attribution window and counting rule.
- 3
The identifier is the bridge
The li_fat_id click identifier, captured at the visit and carried into the Drupal Commerce order.
- 4
The event source decides reliability
Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.
- 5
Deduplication at the destination
LinkedIn deduplicates on an event identifier shared between the Insight Tag and the Conversions API. Running both without pairing them doubles every conversion, which on LinkedIn's cost per click is an expensive error to leave running.
Drupal Commerce → LinkedIn · normal or broken
Working vs. broken, side by side — Drupal Commerce → LinkedIn
Normal, not a fault
The li_fat_id click identifier present on the order
Sent from the Drupal Commerce order placement hook
Deduplicated correctly
LinkedIn deduplicates on an event identifier shared between the Insight Tag and the Conversions API. Running both without pairing them doubles every conversion, which on LinkedIn's cost per click is an expensive error to leave running.
Reconciles with the source
Actually broken
The li_fat_id click identifier missing on most records
Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run.
Sent from the browser
Drupal Commerce lets each install define its own order states. Two people reporting on the same store routinely count different states and never reconcile.
Counted twice, or not at all
LinkedIn's attribution windows are configurable and finite, while B2B deals close in quarters. A conversion that matters commercially frequently falls outside the window that LinkedIn will credit, and that gap has to be reported rather than argued about.
Nobody has reconciled it
Drupal Commerce → LinkedIn · diagnose
Diagnostic order — Drupal Commerce → LinkedIn
- 01
Count orders carrying the li_fat_id click identifier
- 02
Follow one real conversion end to end
- 03
List the order states in use and agree which count as revenue
Do this before any technical work — it resolves more Drupal Commerce disputes than any code change.
- 04
Confirm auto-tagging is on and the conversion is defined in Campaign Manager
Two settings, both easy to miss, and either one missing means nothing matches.
- 05
Read the match rate, not the success message
Campaign Manager reports conversions against each defined conversion action with its own window. A successful API call is not a matched conversion — reconcile LinkedIn's reported conversions against your CRM for the same window, and expect a gap wherever your sales cycle exceeds the attribution setting.
Drupal Commerce → LinkedIn · prove
How it gets proven — Drupal Commerce → LinkedIn
Source of truth
Drupal's commerce_order records in your own database, filtered to completed states.
- The li_fat_id click identifier confirmed present on a live order.
- Auto-tagging confirmed enabled, the conversion defined in Campaign Manager, and deduplication verified on a real conversion.
- Order field data confirmed populated on an order placed through a fully warmed cache as an anonymous visitor.
Drupal Commerce → LinkedIn · free audit
What we check in the free audit
- Count orders carrying the li_fat_id click identifier
- Follow one real conversion end to end
- List the order states in use and agree which count as revenue
- Confirm auto-tagging is on and the conversion is defined in Campaign Manager
- Read the match rate, not the success message
Checked against
Drupal's commerce_order records in your own database, filtered to completed states.
Free30 minutesNo obligation
Drupal Commerce → LinkedIn · when not to buy
When you don't need this — Drupal Commerce → LinkedIn
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the li_fat_id click identifier.
- If your Drupal site is content-only with commerce elsewhere, work at the commerce system instead — this is the wrong layer.
- If you are not selling to businesses, LinkedIn's cost per click is very hard to justify and no measurement work changes that arithmetic.
Drupal Commerce → LinkedIn · what we deliver
What gets built — Drupal Commerce → LinkedIn
Identifier capture into Drupal Commerce
Capture the identifier and persist it as order field data through a hook on order placement, server-side, so it never depends on what the cache served.
Event source: the Drupal Commerce order placement hook
Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.
Dispatch to LinkedIn
Server events to the LinkedIn Conversions API with the click identifier, hashed user data and a matched event identifier.
Reversals where they exist
Order state transitions to refunded or cancelled are recorded and can drive reversals.
Written guarantee
95%+ tracking accuracy
Measured against Drupal's commerce_order records in your own database, filtered to completed states.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Drupal Commerce → LinkedIn questions, answered
Only if buyers are professionals purchasing in a work capacity, such as memberships, training or event registrations. Consumer stores rarely justify LinkedIn's cost per click.
One conversion per order at the order total, with the order ID as the event ID for deduplication against the Insight Tag. Counting each attendee line inflates conversions.
Almost always because the li_fat_id click identifier never reached the Drupal Commerce order. Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run. Measure coverage before debugging the dispatch.
The li_fat_id, appended to your landing page URL when auto-tagging is enabled on the LinkedIn account. LinkedIn also matches on hashed email and on company-level signals. Two things make this different from the consumer networks: auto-tagging is not always on, and LinkedIn's real strength is company-level reporting, so an event that carries no company context loses much of what makes the platform worth using.
The Drupal Commerce order placement hook. Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.
Campaign Manager reports conversions against each defined conversion action with its own window. A successful API call is not a matched conversion — reconcile LinkedIn's reported conversions against your CRM for the same window, and expect a gap wherever your sales cycle exceeds the attribution setting.
More on Drupal Commerce → LinkedIn
- Squarespace → LinkedInConnecting Squarespace Commerce to LinkedIn Ads
- Drupal Commerce → Google AdsConnecting Drupal Commerce to Google Ads
- Drupal Commerce → MetaConnecting Drupal Commerce to Meta Conversions API
RELATED GUIDES
Where Drupal Commerce → LinkedIn fits in the rest of your tracking
- LinkedIn · Local servicesLinkedIn Ads conversion tracking for local service businesses
- LinkedIn · SaaSLinkedIn Ads conversion tracking for SaaS companies
- LinkedIn × CRM DealsHow to reconcile LinkedIn Ads against your CRM's closed-won deals
- LinkedIn · Comparison page → demoHow to track comparison page visit to demo request for LinkedIn Ads
- Umbraco → LinkedInConnecting Umbraco to LinkedIn Ads
- Drupal Commerce → Amazon AdsConnecting Drupal Commerce to Amazon Ads
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Webflow → LinkedInConnecting Webflow to LinkedIn Ads
Free · 30 min
Get Drupal Commerce and LinkedIn joined properly
Free30 minutesNo obligation
