Skip to main content
Clerk → LinkedInIntegration guide

Connecting Clerk to LinkedIn Ads

Clerk handles both authentication and organisation membership, which matters for B2B products where the paying entity is a company and the signing-up entity is a person. 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 Clerk user and organisation 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

Clerk to LinkedIn CAPI: one conversion per paying organization

Capture li_fat_id on landing, write it to Clerk user metadata at signup, and copy the first member's value to the organization. Define two LinkedIn conversions, signup once per new organization and paid when billing marks it paid, sent with the first member's li_fat_id and hashed email. Never send invited teammates.

LinkedIn is the natural ad channel for a B2B product built on Clerk, and the one where the seat-versus-customer error costs most per mistake. Capture li_fat_id on the landing page, keep it in a first-party cookie, and write it to the Clerk user's metadata from your backend at sign-up. Copy the first member's value to the organization so a later invitee cannot overwrite where the account came from.

Define two conversions in Campaign Manager: a sign-up conversion sent once per new organization, and a paid conversion sent when billing marks that organization paid. Send both with the first member's li_fat_id and hashed email. Sending a sign-up for every invited teammate teaches LinkedIn to find companies that invite many people, which is not the same as companies that pay.

Do not lean on email matching. LinkedIn compares hashed email against the addresses on members' profiles, which are often personal, while Clerk sign-ups through Google Workspace carry a work address, so li_fat_id does most of the matching. B2B trials also tend to convert after LinkedIn's attribution window has closed; report those late trial-to-paid conversions from billing data rather than expecting Campaign Manager to show them.

Clerk → LinkedIn · what breaks

Why this join usually fails — Clerk → LinkedIn

  1. 01

    The li_fat_id click identifier never reaches Clerk

    Several people from one company sign up separately, each carrying a different acquisition source.

  2. 02

    Counting seats instead of customers

    Five colleagues signing up from one company is one paying customer and five conversions if attribution sits on the user. Cost per acquisition then reads as a fifth of reality.

  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.

Clerk → LinkedIn · the fix

What working looks like — Clerk → LinkedIn

  • The li_fat_id click identifier on every account

  • 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

Clerk → LinkedIn · architecture

How Clerk and LinkedIn actually connect

  1. 1

    Clerk holds the truth

    In B2B SaaS the subscription belongs to an organisation and several users belong to it. Attributing revenue per user counts one customer several times.

  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 Clerk user and organisation.

  4. 4

    The event source decides reliability

    Send paid conversions per organisation, deduplicated across its users.

  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.

Clerk → LinkedIn · normal or broken

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

Normal, not a fault

  • The li_fat_id click identifier present on the account

  • Sent from your billing system, keyed on the organisation

  • 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

    Several people from one company sign up separately, each carrying a different acquisition source.

  • Sent from the browser

    Five colleagues signing up from one company is one paying customer and five conversions if attribution sits on the user. Cost per acquisition then reads as a fifth of reality.

  • 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

Clerk → LinkedIn · diagnose

Diagnostic order — Clerk → LinkedIn

  1. 01

    Count accounts carrying the li_fat_id click identifier

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare user signups against paying organisations

    The ratio is the size of the overcount, and in B2B products it is rarely close to one.

  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.

Clerk → LinkedIn · prove

How it gets proven — Clerk → LinkedIn

Source of truth

Your billing system, joined to the Clerk organisation rather than the user.

  • The li_fat_id click identifier confirmed present on a live account.
  • Auto-tagging confirmed enabled, the conversion defined in Campaign Manager, and deduplication verified on a real conversion.
  • Paid conversions reconciled per organisation against imported conversions, deduplicated across users.

Clerk → LinkedIn · free audit

What we check in the free audit

  • Count accounts carrying the li_fat_id click identifier
  • Follow one real conversion end to end
  • Compare user signups against paying organisations
  • Confirm auto-tagging is on and the conversion is defined in Campaign Manager
  • Read the match rate, not the success message

Checked against

Your billing system, joined to the Clerk organisation rather than the user.

Get my free conversion tracking audit

Free30 minutesNo obligation

Clerk → LinkedIn · when not to buy

When you don't need this — Clerk → LinkedIn

  • Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the li_fat_id click identifier.
  • Consumer products where one user is one customer do not have this distinction.
  • If you are not selling to businesses, LinkedIn's cost per click is very hard to justify and no measurement work changes that arithmetic.

Clerk → LinkedIn · what we deliver

What gets built — Clerk → LinkedIn

  • Identifier capture into Clerk

    Store the identifier on the user and attribute at the organisation, using the first user's source with the others recorded as supporting.

  • Event source: your billing system, keyed on the organisation

    Send paid conversions per organisation, deduplicated across its users.

  • 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

    Cancellations reverse against the organisation.

Written guarantee

95%+ tracking accuracy

Measured against Your billing system, joined to the Clerk organisation rather than the user.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Clerk → LinkedIn questions, answered

No. Send one sign-up per new organization and one paid conversion per organization; invited teammates are not new customers and inflate the count.

Free · 30 min

Get Clerk and LinkedIn joined properly

Free30 minutesNo obligation