Skip to main content
Contact Form 7 → LinkedInIntegration guide

Connecting Contact Form 7 to LinkedIn Ads

Contact Form 7 is free, everywhere, and stores nothing by default — which is the whole problem. 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 Contact Form 7 submission 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

Contact Form 7 to LinkedIn CAPI: matching B2B leads off WordPress

Read li_fat_id from the Insight Tag's first-party cookie into a hidden Contact Form 7 field, since default:get works only on the landing page. Send the inquiry with hashed email plus first name, last name and company to lift B2B match rates. Replace URL-based thank-you rules with event conversions sharing an event ID, and add a qualified-lead conversion.

A Contact Form 7 inquiry on a B2B WordPress site is a reasonable LinkedIn conversion, provided the form captures what LinkedIn matches on. Add a hidden field for li_fat_id. The [hidden li_fat_id default:get] form-tag fills it from the URL, but only on the landing page; if visitors browse to the contact page first, the parameter is gone. Read it instead from the first-party cookie the Insight Tag sets when enhanced conversion tracking is on (confirm the cookie in your browser) and write it into the field before submit.

Hashed email is the fallback, and it is weaker than it looks on B2B forms: people fill contact forms with a work address, while many LinkedIn accounts are registered to a personal one. Add first name, last name and company fields, which LinkedIn's API can accept alongside the email (check its current field list), to lift the match rate.

The usual Contact Form 7 break on LinkedIn is a URL-based conversion rule waiting for a thank-you page that never loads. If you keep a browser-side conversion, fire the Insight Tag as an event-specific conversion on submit with the same event ID the server sends. Better still, send the raw inquiry once and a second, qualified-lead conversion when sales accepts it.

Contact Form 7 → LinkedIn · what breaks

Why this join usually fails — Contact Form 7 → LinkedIn

  1. 01

    The li_fat_id click identifier never reaches Contact Form 7

    There is no entries table to write to, so the identifier has to be captured into a hidden field and persisted by whatever you add for storage. Contact Form 7 submits over AJAX, so the page does not reload and anything expecting a navigation event never fires.

  2. 02

    AJAX submission means no page load to hook

    Setups that fire a conversion on thank-you-page load simply never fire. Setups that listen for the DOM event miss anyone whose script execution was blocked or deferred.

  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.

Contact Form 7 → LinkedIn · the fix

What working looks like — Contact Form 7 → LinkedIn

  • The li_fat_id click identifier on every submission

  • 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

Contact Form 7 → LinkedIn · architecture

How Contact Form 7 and LinkedIn actually connect

  1. 1

    Contact Form 7 holds the truth

    Out of the box Contact Form 7 emails the submission and keeps no record. Before any attribution work is meaningful, submissions have to be stored somewhere queryable. That is step one and it is not optional.

  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 Contact Form 7 submission.

  4. 4

    The event source decides reliability

    Fire server-side from PHP. The browser-side wpcf7mailsent DOM event exists and is commonly used, but it depends on the visitor's browser executing correctly and on the AJAX response arriving — the server hook does not.

  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.

Contact Form 7 → LinkedIn · normal or broken

Working vs. broken, side by side — Contact Form 7 → LinkedIn

Normal, not a fault

  • The li_fat_id click identifier present on the submission

  • Sent from the wpcf7_mail_sent 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

    There is no entries table to write to, so the identifier has to be captured into a hidden field and persisted by whatever you add for storage. Contact Form 7 submits over AJAX, so the page does not reload and anything expecting a navigation event never fires.

  • Sent from the browser

    Setups that fire a conversion on thank-you-page load simply never fire. Setups that listen for the DOM event miss anyone whose script execution was blocked or deferred.

  • 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

Contact Form 7 → LinkedIn · diagnose

Diagnostic order — Contact Form 7 → LinkedIn

  1. 01

    Count submissions carrying the li_fat_id click identifier

  2. 02

    Follow one real conversion end to end

  3. 03

    Confirm submissions are being stored at all

    If the only record is an email inbox, there is nothing to reconcile and no way to prove any number. Fix storage before touching attribution.

  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.

Contact Form 7 → LinkedIn · prove

How it gets proven — Contact Form 7 → LinkedIn

Source of truth

Whatever you configure to persist submissions — an entries plugin, or your own database table. By default there is nothing to reconcile against.

  • The li_fat_id click identifier confirmed present on a live submission.
  • Auto-tagging confirmed enabled, the conversion defined in Campaign Manager, and deduplication verified on a real conversion.
  • Stored submissions confirmed to match the email record for the same period, before any attribution claim is made.

Contact Form 7 → LinkedIn · free audit

What we check in the free audit

  • Count submissions carrying the li_fat_id click identifier
  • Follow one real conversion end to end
  • Confirm submissions are being stored at all
  • Confirm auto-tagging is on and the conversion is defined in Campaign Manager
  • Read the match rate, not the success message

Checked against

Whatever you configure to persist submissions — an entries plugin, or your own database table. By default there is nothing to reconcile against.

Get my free conversion tracking audit

Free30 minutesNo obligation

Contact Form 7 → LinkedIn · when not to buy

When you don't need this — Contact Form 7 → LinkedIn

  • Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the li_fat_id click identifier.
  • If you are on Contact Form 7 and serious about attribution, moving to a form plugin that stores entries is often cheaper than working around the one that does not. We will say so rather than bill for the workaround.
  • If you are not selling to businesses, LinkedIn's cost per click is very hard to justify and no measurement work changes that arithmetic.

Contact Form 7 → LinkedIn · what we deliver

What gets built — Contact Form 7 → LinkedIn

  • Identifier capture into Contact Form 7

    Hidden field populated from a first-party cookie, plus a storage layer so the submission and its identifier survive past the email. The wpcf7_before_send_mail hook is where both happen.

  • Event source: the wpcf7_mail_sent hook

    Fire server-side from PHP. The browser-side wpcf7mailsent DOM event exists and is commonly used, but it depends on the visitor's browser executing correctly and on the AJAX response arriving — the server hook does not.

  • 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

    Nothing to reverse. Spam filtering before the send is the equivalent concern.

Written guarantee

95%+ tracking accuracy

Measured against Whatever you configure to persist submissions — an entries plugin, or your own database table. By default there is nothing to reconcile against.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Contact Form 7 → LinkedIn questions, answered

Send from the server hook to LinkedIn's Conversions API with li_fat_id from a hidden field and hashed email, against a conversion defined in Campaign Manager. A URL-based conversion rule will not fire because the form never loads a thank-you page.

Free · 30 min

Get Contact Form 7 and LinkedIn joined properly

Free30 minutesNo obligation