Connecting Medusa to LinkedIn Ads
Medusa is a Node commerce engine you extend in your own codebase, which makes the conversion event a piece of application code — and therefore something that can be tested rather than hoped for. 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 Medusa 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
Medusa to LinkedIn: only for B2B wholesale storefronts
Wrong for consumer Medusa stores; reasonable for B2B storefronts with wholesale accounts or quotes. Store li_fat_id on the customer's metadata at registration, not just cart metadata, and copy it to orders. Send account approval as the conversion most likely inside LinkedIn's window, with hashed work email, and skip orders from pre-existing accounts.
For a consumer Medusa store, LinkedIn is the wrong channel; its click prices cannot be paid back by single retail orders. It becomes reasonable when Medusa runs a B2B storefront: wholesale accounts, company price lists, or a quote-to-order flow. There the conversion is account approval or first wholesale order, and LinkedIn's company-level reporting is actually useful because buyers come from firms you can name.
That changes where the identifier lives. The usual Medusa advice is to put click identifiers in cart metadata, but a B2B buyer often registers, waits for approval and places a first order weeks later, in a cart that did not exist at the click. Store li_fat_id on the customer record's metadata at registration, then copy it to each order. The account-approved event is the one most likely to fall inside LinkedIn's attribution window; the first paid order often will not.
Send hashed email from the customer record, which for wholesale buyers is usually a work address, and that tends to match better than consumer email. Define the conversions in Campaign Manager first. Use your subscriber code to skip orders from accounts that existed before the campaign, or repeat orders will be credited to whatever LinkedIn ad that buyer clicked most recently.
Medusa → LinkedIn · what breaks
Why this join usually fails — Medusa → LinkedIn
- 01
The li_fat_id click identifier never reaches Medusa
The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created.
- 02
Firing on order placed rather than payment captured
They are different events and the gap between them contains every failed and pending payment. Order-placed is the easier hook and the wrong one.
- 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.
Medusa → LinkedIn · the fix
What working looks like — Medusa → 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
Medusa → LinkedIn · architecture
How Medusa and LinkedIn actually connect
- 1
Medusa holds the truth
Because you own the event handlers, the conversion can fire from the payment-captured event specifically rather than from whatever the frontend happened to render.
- 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 Medusa order.
- 4
The event source decides reliability
Send orders at payment capture, at the paid total.
- 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.
Medusa → LinkedIn · normal or broken
Working vs. broken, side by side — Medusa → LinkedIn
Normal, not a fault
The li_fat_id click identifier present on the order
Sent from a Medusa subscriber on order payment capture
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
The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created.
Sent from the browser
They are different events and the gap between them contains every failed and pending payment. Order-placed is the easier hook and the wrong one.
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
Medusa → LinkedIn · diagnose
Diagnostic order — Medusa → LinkedIn
- 01
Count orders carrying the li_fat_id click identifier
- 02
Follow one real conversion end to end
- 03
Check which event your subscriber listens to
One line of code, and it decides whether you are counting orders or counting money.
- 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.
Medusa → LinkedIn · prove
How it gets proven — Medusa → LinkedIn
Source of truth
Medusa orders by payment status, emitted from your own subscriber code.
- 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.
- Payment-captured orders reconciled against imported conversions.
Medusa → 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
- Check which event your subscriber listens to
- Confirm auto-tagging is on and the conversion is defined in Campaign Manager
- Read the match rate, not the success message
Checked against
Medusa orders by payment status, emitted from your own subscriber code.
Free30 minutesNo obligation
Medusa → LinkedIn · when not to buy
When you don't need this — Medusa → LinkedIn
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the li_fat_id click identifier.
- If every payment method you accept is instant, the two events nearly coincide and the distinction costs more than it returns.
- If you are not selling to businesses, LinkedIn's cost per click is very hard to justify and no measurement work changes that arithmetic.
Medusa → LinkedIn · what we deliver
What gets built — Medusa → LinkedIn
Identifier capture into Medusa
Write the identifier into cart metadata at first touch so it is carried onto the order automatically at completion.
Event source: a Medusa subscriber on order payment capture
Send orders at payment capture, at the paid total.
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
Refunds emit their own event and should reverse.
Written guarantee
95%+ tracking accuracy
Measured against Medusa orders by payment status, emitted from your own subscriber code.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Medusa → LinkedIn questions, answered
Only for a B2B or wholesale storefront. For consumer orders, LinkedIn's cost per click is very hard to recover.
On the customer record at registration, then copied to each order, because B2B first orders often happen weeks later in a new cart.
Almost always because the li_fat_id click identifier never reached the Medusa order. The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created. 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.
A Medusa subscriber on order payment capture. Send orders at payment capture, at the paid total.
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 Medusa → LinkedIn
- LinkedIn · Lead → booked callHow to track lead to booked call for LinkedIn Ads
- LinkedIn · Booked call → closed wonHow to track booked call to closed won for LinkedIn Ads
- LinkedIn · Free trial → paidHow to track free trial to paid for LinkedIn Ads
RELATED GUIDES
Where Medusa → LinkedIn fits in the rest of your tracking
- LinkedIn · Furniture ecommerceLinkedIn Ads conversion tracking for furniture ecommerce brands
- LinkedIn · SupplementsLinkedIn Ads conversion tracking for supplement brands
- LinkedIn × Ecommerce OrdersHow to reconcile LinkedIn Ads against your store's order table
- LinkedIn · Add to cart → purchaseHow to track add to cart to purchase for LinkedIn Ads
- OpenCart → LinkedInConnecting OpenCart to LinkedIn Ads
- Medusa → SnapchatConnecting Medusa to Snapchat
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- Gumroad → LinkedInConnecting Gumroad to LinkedIn Ads
Free · 30 min
Get Medusa and LinkedIn joined properly
Free30 minutesNo obligation
