Skip to main content
Stripe → LinkedInIntegration guide

Connecting Stripe to LinkedIn Ads

Stripe knows exactly what was paid, by whom, and when — down to the cent, including the refund three weeks later. 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 Stripe Customer or PaymentIntent 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

Stripe subscriptions to LinkedIn CAPI for B2B SaaS

Write the li_fat_id and your user ID into Stripe Checkout Session metadata, and subscription_data metadata for invoices, then send the chosen conversion from the webhook: trial start or the first paid invoice, with the window covering your trial length. Include hashed email and company name, keep value consistent, skip renewals, and share an event ID with the Insight Tag.

Stripe plus LinkedIn is the classic self-serve B2B SaaS pair: a LinkedIn click, a trial or signup, a card on Stripe, a subscription. The li_fat_id has to go into Checkout Session metadata alongside your own user ID when your server creates the session, because checkout.stripe.com cannot see your cookie. Set it in subscription_data metadata as well if you want it on the subscription and every invoice it generates.

Decide which Stripe event is the LinkedIn conversion. Trial start is frequent enough to optimize on; the first paid invoice after the trial is the real outcome, and it lands 14 or 30 days after the click, so check that the window on your LinkedIn conversion covers your trial length. Send value as the first-period amount or a fixed annualized figure, consistently, and do not send renewals as new conversions.

Matching helps here: the email on a Stripe Customer is often a work address, which is what LinkedIn holds for many buyers. Send li_fat_id where present, hashed email, and the company name from your signup flow in user info. The common break: the Insight Tag fires a conversion on the success URL while the server sends checkout.session.completed without a shared event ID, doubling every signup at LinkedIn prices.

Stripe → LinkedIn · what breaks

Why this join usually fails — Stripe → LinkedIn

  1. 01

    The li_fat_id click identifier never reaches Stripe

    Stripe Checkout runs on checkout.stripe.com, a different origin from your site, so nothing you set in a first-party cookie travels with the customer. The identifier has to be put into PaymentIntent metadata (or the Checkout Session's metadata) at the moment you create the session, server-side. If you create sessions from a price link or a Buy Button, there is no server step and no metadata — that setup cannot be joined to advertising at all without changing how sessions are created.

  2. 02

    Checkout is on Stripe's domain, so the browser loses the thread

    The customer leaves your site, pays somewhere else, and comes back to a thank-you page. Anything relying on browser continuity across that hop is unreliable, and on Safari it is worse than unreliable.

  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.

Stripe → LinkedIn · the fix

What working looks like — Stripe → LinkedIn

  • The li_fat_id click identifier on every payment

  • 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

Stripe → LinkedIn · architecture

How Stripe and LinkedIn actually connect

  1. 1

    Stripe holds the truth

    Every succeeded PaymentIntent is a real conversion with a real amount and currency. No sampling, no modeling, no consent gate. This is the number the business actually banked, which is why it is the reference rather than anything either ad platform reports.

  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 Stripe Customer or PaymentIntent.

  4. 4

    The event source decides reliability

    Subscribe to payment_intent.succeeded (or checkout.session.completed) and send from your server when Stripe fires it. Reading a payment from the thank-you page instead means every customer who closes the tab on the redirect is a conversion you never counted, and Stripe redirects after taking money, not before.

  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.

Stripe → LinkedIn · normal or broken

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

Normal, not a fault

  • The li_fat_id click identifier present on the payment

  • Sent from the Stripe webhook

  • 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

    Stripe Checkout runs on checkout.stripe.com, a different origin from your site, so nothing you set in a first-party cookie travels with the customer. The identifier has to be put into PaymentIntent metadata (or the Checkout Session's metadata) at the moment you create the session, server-side. If you create sessions from a price link or a Buy Button, there is no server step and no metadata — that setup cannot be joined to advertising at all without changing how sessions are created.

  • Sent from the browser

    The customer leaves your site, pays somewhere else, and comes back to a thank-you page. Anything relying on browser continuity across that hop is unreliable, and on Safari it is worse than unreliable.

  • 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

Stripe → LinkedIn · diagnose

Diagnostic order — Stripe → LinkedIn

  1. 01

    Count payments carrying the li_fat_id click identifier

  2. 02

    Follow one real conversion end to end

  3. 03

    Open one succeeded PaymentIntent in the Stripe dashboard

    Look at its Metadata section. If the identifier is not there, nothing downstream can fix it — the join is broken at the source and every other check is wasted effort.

  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.

Stripe → LinkedIn · prove

How it gets proven — Stripe → LinkedIn

Source of truth

The Stripe dashboard — Payments, filtered to succeeded, for the same window.

  • The li_fat_id click identifier confirmed present on a live payment.
  • Auto-tagging confirmed enabled, the conversion defined in Campaign Manager, and deduplication verified on a real conversion.
  • A refunded payment confirmed to reverse, not just the sale confirmed to send.

Stripe → LinkedIn · free audit

What we check in the free audit

  • Count payments carrying the li_fat_id click identifier
  • Follow one real conversion end to end
  • Open one succeeded PaymentIntent in the Stripe dashboard
  • Confirm auto-tagging is on and the conversion is defined in Campaign Manager
  • Read the match rate, not the success message

Checked against

The Stripe dashboard — Payments, filtered to succeeded, for the same window.

Get my free conversion tracking audit

Free30 minutesNo obligation

Stripe → LinkedIn · when not to buy

When you don't need this — Stripe → LinkedIn

  • Measure identifier coverage yourself first — pull your last hundred payments and count how many carry the li_fat_id click identifier.
  • If you take payment through a hosted Payment Link or Buy Button and have no server creating sessions, this needs a development change on your side before any tracking work is worth commissioning. Worth knowing before you pay for tracking.
  • If you are not selling to businesses, LinkedIn's cost per click is very hard to justify and no measurement work changes that arithmetic.

Stripe → LinkedIn · what we deliver

What gets built — Stripe → LinkedIn

  • Identifier capture into Stripe

    Read the click identifier from the landing page, persist it in a first-party cookie, and pass it into the create-session call as metadata. Stripe carries metadata onto the resulting PaymentIntent and Charge, so it survives to the webhook and to any later refund.

  • Event source: the Stripe webhook

    Subscribe to payment_intent.succeeded (or checkout.session.completed) and send from your server when Stripe fires it. Reading a payment from the thank-you page instead means every customer who closes the tab on the redirect is a conversion you never counted, and Stripe redirects after taking money, not before.

  • 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

    Stripe fires charge.refunded and charge.dispute.created. Both carry the original metadata, so a refund can be sent as a negative or a retraction wherever the destination supports it. Most setups never wire this and quietly overstate revenue by the refund rate.

Written guarantee

95%+ tracking accuracy

Measured against The Stripe dashboard — Payments, filtered to succeeded, for the same window.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Stripe → LinkedIn questions, answered

Put li_fat_id in Checkout Session metadata at creation, listen for checkout.session.completed or the first paid invoice, and send a server event with value, hashed email and the click ID.

Free · 30 min

Get Stripe and LinkedIn joined properly

Free30 minutesNo obligation