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
- 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.
- 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.
- 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.
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
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
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 Contact Form 7 submission.
- 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
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
- 01
Count submissions carrying the li_fat_id click identifier
- 02
Follow one real conversion end to end
- 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.
- 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.
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.
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.
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.
Usually the li_fat_id is missing and the work email submitted is not the email on the person's LinkedIn account. Capture the click ID from the cookie and send name and company fields too.
Almost always because the li_fat_id click identifier never reached the Contact Form 7 submission. 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. 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.
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.
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 Contact Form 7 → LinkedIn
- Contact Form 7 → GA4Connecting Contact Form 7 to GA4
- Contact Form 7 → Google AdsConnecting Contact Form 7 to Google Ads
- Contact Form 7 → MetaConnecting Contact Form 7 to Meta Conversions API
RELATED GUIDES
Where Contact Form 7 → LinkedIn fits in the rest of your tracking
- LinkedIn · Law firmsLinkedIn Ads conversion tracking for law firms
- LinkedIn · Home servicesLinkedIn Ads conversion tracking for home service businesses
- LinkedIn × CRM DealsHow to reconcile LinkedIn Ads against your CRM's closed-won deals
- LinkedIn · Quote → closed jobHow to track quote request to closed job for LinkedIn Ads
- Cognito Forms → LinkedInConnecting Cognito Forms to LinkedIn Ads
- Contact Form 7 → X AdsConnecting Contact Form 7 to X Ads
- Law firmsConversion tracking for law firms, without sending case details anywhere
- WPForms → LinkedInConnecting WPForms to LinkedIn Ads
Free · 30 min
Get Contact Form 7 and LinkedIn joined properly
Free30 minutesNo obligation
