Skip to main content
Magento → LinkedInIntegration guide

Connecting Magento to LinkedIn Ads

Magento is self-hosted and endlessly customisable, which means every installation is different and full-page caching is always in the way. 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 Magento 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

Magento to LinkedIn: B2B account signups, not reorders

LinkedIn fits only B2B Magento stores. Capture li_fat_id on landing and persist it to the customer or company account at registration, then send account approval or a new account's first order to the Conversions API with that identifier, hashed work email and company name. Skip reorders, and consider a defensible expected account value instead of a small first-order total.

LinkedIn only fits Magento stores that sell to businesses: distributors, industrial suppliers and wholesale catalogs on Adobe Commerce, often with company accounts and approval workflows. For a consumer Magento store, skip LinkedIn. For B2B, the conversion LinkedIn should optimize toward is a new company account, a quote request, or the first order from a new account, not every reorder from an existing buyer, because repeat purchasing by purchasing managers has nothing to do with the ad.

Capture the li_fat_id on landing and persist it to the customer or company account through an observer on registration, not only on the order. A B2B account is often registered, then approved by your team days later, then orders weeks after that. Send the account approval or first order to the Conversions API with the stored identifier, the buyer's hashed work email and the company name.

Value is where B2B Magento gets awkward. A first order of a few hundred dollars from an account worth tens of thousands a year will make LinkedIn look expensive. Consider sending an expected account value you can defend from your own history, and say so wherever the numbers are reported.

Magento → LinkedIn · what breaks

Why this join usually fails — Magento → LinkedIn

  1. 01

    The li_fat_id click identifier never reaches Magento

    Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one.

  2. 02

    Full-page cache between the visitor and your code

    The page the customer saw is not the page your code assumed. This is the defining Magento tracking failure and it produces intermittent, hard-to-reproduce loss.

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

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

Magento → LinkedIn · the fix

What working looks like — Magento → 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

Magento → LinkedIn · architecture

How Magento and LinkedIn actually connect

  1. 1

    Magento holds the truth

    You own the database, so the truth is as good as the query. Pin down which order statuses count as revenue — processing, complete, or both — because that choice moves the number substantially.

  2. 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. 3

    The identifier is the bridge

    The li_fat_id click identifier, captured at the visit and carried into the Magento order.

  4. 4

    The event source decides reliability

    Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.

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

Magento → LinkedIn · normal or broken

Working vs. broken, side by side — Magento → LinkedIn

Normal, not a fault

  • The li_fat_id click identifier present on the order

  • Sent from the Magento order placement observer

  • 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

    Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one.

  • Sent from the browser

    The page the customer saw is not the page your code assumed. This is the defining Magento tracking failure and it produces intermittent, hard-to-reproduce loss.

  • 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

Magento → LinkedIn · diagnose

Diagnostic order — Magento → LinkedIn

  1. 01

    Count orders carrying the li_fat_id click identifier

  2. 02

    Follow one real conversion end to end

  3. 03

    Place a test order as an anonymous visitor through cache

    Not as an admin, which bypasses it. If the order data is missing on the cached path, caching is your cause.

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

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

Magento → LinkedIn · prove

How it gets proven — Magento → LinkedIn

Source of truth

Magento's sales order records in your own database, for the same window and order status set.

  • 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 data confirmed populated on an order placed through a fully warmed cache.

Magento → 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
  • Place a test order as an anonymous visitor through cache
  • Confirm auto-tagging is on and the conversion is defined in Campaign Manager
  • Read the match rate, not the success message

Checked against

Magento's sales order records in your own database, for the same window and order status set.

Get my free conversion tracking audit

Free30 minutesNo obligation

Magento → LinkedIn · when not to buy

When you don't need this — Magento → LinkedIn

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the li_fat_id click identifier.
  • If your Magento build has heavy customisation by another team, scope their availability first — the build is usually blocked there.
  • If you are not selling to businesses, LinkedIn's cost per click is very hard to justify and no measurement work changes that arithmetic.

Magento → LinkedIn · what we deliver

What gets built — Magento → LinkedIn

  • Identifier capture into Magento

    Capture the identifier and persist it as order data through an observer on order placement, server-side, so it never depends on what the cache served.

  • Event source: the Magento order placement observer

    Fire server-side from the observer rather than from the success page template, which is cached 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

    Credit memos are recorded against the original order and should reduce the reported figure.

Written guarantee

95%+ tracking accuracy

Measured against Magento's sales order records in your own database, for the same window and order status set.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Magento → LinkedIn questions, answered

No. Send account registrations, quote requests or first orders from new accounts. Reorders from existing customers are not LinkedIn acquisitions.

Free · 30 min

Get Magento and LinkedIn joined properly

Free30 minutesNo obligation