Connecting Gravity Forms to LinkedIn Ads
Gravity Forms stores the entry in your own WordPress database, which makes it one of the easier sources to join correctly. 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 Gravity Forms entry 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
Gravity Forms B2B leads to LinkedIn CAPI via the PHP hook
Add a Gravity Forms hidden field for li_fat_id with dynamic population and a first-party cookie fallback, since B2B visitors browse before converting. Send the conversion from gform_after_submission to LinkedIn's Conversions API with li_fat_id and hashed work email, sharing an event identifier with the Insight Tag. Require work emails, and don't count Lead Gen Forms alongside it.
For a B2B site on WordPress, Gravity Forms often is the lead capture, and LinkedIn is a sound destination for it. Add a hidden field named for li_fat_id with dynamic population on, plus a gform filter that falls back to a first-party cookie, then send the conversion from gform_after_submission to the LinkedIn Conversions API with the li_fat_id and the hashed email. Use the same event identifier for the Insight Tag event on the confirmation so LinkedIn can deduplicate.
Because the entry lives in your own database, you can add company context without guessing. Send the email from the work-email field, not a personal one, and keep company name and job title on the entry for your CRM. Gravity Forms lets you add a required work-email check; LinkedIn matching and company reporting both improve when gmail addresses are discouraged at the form.
Page caching hits LinkedIn hardest because B2B visitors often read several pages before converting, so the li_fat_id is rarely on the URL of the page holding the form. Without the cookie fallback, the hidden field arrives empty and only the hashed email is left to match. Also check that LinkedIn Lead Gen Forms are not counted alongside the site form for the same campaign; those are a different conversion.
Gravity Forms → LinkedIn · what breaks
Why this join usually fails — Gravity Forms → LinkedIn
- 01
The li_fat_id click identifier never reaches Gravity Forms
The identifier must be written into a hidden field with dynamic population enabled, and that only works if the parameter is on the URL when the page renders. Page caching serves a cached render to the visitor, so the dynamic population never runs — the same caching problem that breaks WooCommerce.
- 02
Dynamic population fails silently under page caching
The field is configured correctly and still arrives empty, because the visitor was served a cached page rendered for someone else. This is the most common Gravity Forms failure and it looks like nothing is wrong.
- 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.
Gravity Forms → LinkedIn · the fix
What working looks like — Gravity Forms → LinkedIn
The li_fat_id click identifier on every entry
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
Gravity Forms → LinkedIn · architecture
How Gravity Forms and LinkedIn actually connect
- 1
Gravity Forms holds the truth
The entry lives in your database with every field value attached. You can query it, back it up and reconcile against it without depending on any third party, which is a real advantage over hosted form tools.
- 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 Gravity Forms entry.
- 4
The event source decides reliability
Fire server-side from the PHP hook. This runs regardless of caching, AJAX submission, or what the confirmation page does.
- 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.
Gravity Forms → LinkedIn · normal or broken
Working vs. broken, side by side — Gravity Forms → LinkedIn
Normal, not a fault
The li_fat_id click identifier present on the entry
Sent from the gform_after_submission 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
The identifier must be written into a hidden field with dynamic population enabled, and that only works if the parameter is on the URL when the page renders. Page caching serves a cached render to the visitor, so the dynamic population never runs — the same caching problem that breaks WooCommerce.
Sent from the browser
The field is configured correctly and still arrives empty, because the visitor was served a cached page rendered for someone else. This is the most common Gravity Forms failure and it looks like nothing is wrong.
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
Gravity Forms → LinkedIn · diagnose
Diagnostic order — Gravity Forms → LinkedIn
- 01
Count entrys carrying the li_fat_id click identifier
- 02
Follow one real conversion end to end
- 03
Submit a test entry through a cached page
Not through a logged-in admin session, which bypasses the cache. If the hidden field is empty on the cached path and populated on the admin path, caching is your cause.
- 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.
Gravity Forms → LinkedIn · prove
How it gets proven — Gravity Forms → LinkedIn
Source of truth
The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.
- The li_fat_id click identifier confirmed present on a live entry.
- Auto-tagging confirmed enabled, the conversion defined in Campaign Manager, and deduplication verified on a real conversion.
- Entry meta confirmed populated on a submission made from a fully cached page as an anonymous visitor.
Gravity Forms → LinkedIn · free audit
What we check in the free audit
- Count entrys carrying the li_fat_id click identifier
- Follow one real conversion end to end
- Submit a test entry through a cached page
- Confirm auto-tagging is on and the conversion is defined in Campaign Manager
- Read the match rate, not the success message
Checked against
The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.
Free30 minutesNo obligation
Gravity Forms → LinkedIn · when not to buy
When you don't need this — Gravity Forms → LinkedIn
- Measure identifier coverage yourself first — pull your last hundred entrys and count how many carry the li_fat_id click identifier.
- If your site has no caching layer and one form, a developer can wire this in an afternoon. Worth trying before hiring anyone.
- If you are not selling to businesses, LinkedIn's cost per click is very hard to justify and no measurement work changes that arithmetic.
Gravity Forms → LinkedIn · what we deliver
What gets built — Gravity Forms → LinkedIn
Identifier capture into Gravity Forms
Hidden field with 'allow field to be populated dynamically' enabled and a parameter name set, plus a cookie fallback via a gform filter so the identifier survives a visitor who browsed several pages before converting.
Event source: the gform_after_submission hook
Fire server-side from the PHP hook. This runs regardless of caching, AJAX submission, or what the confirmation page does.
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, though entries marked spam should be excluded from the send.
Written guarantee
95%+ tracking accuracy
Measured against The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Gravity Forms → LinkedIn questions, answered
Capture li_fat_id in a dynamically populated hidden field with a cookie fallback, then call the API from gform_after_submission with the click ID, the hashed email and an event ID shared with the Insight Tag.
Either LinkedIn auto-tagging is off, or a cached page was served and the parameter was not on the form page's URL. Add a cookie fallback and test as an anonymous visitor on a cached page.
Almost always because the li_fat_id click identifier never reached the Gravity Forms entry. The identifier must be written into a hidden field with dynamic population enabled, and that only works if the parameter is on the URL when the page renders. Page caching serves a cached render to the visitor, so the dynamic population never runs — the same caching problem that breaks WooCommerce. 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 gform_after_submission hook. Fire server-side from the PHP hook. This runs regardless of caching, AJAX submission, or what the confirmation page does.
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 Gravity Forms → LinkedIn
- Gravity Forms → Google AdsConnecting Gravity Forms to Google Ads
- Gravity Forms → MetaConnecting Gravity Forms to Meta Conversions API
- Gravity Forms → GA4Connecting Gravity Forms to GA4
RELATED GUIDES
Where Gravity Forms → 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 · Lead magnet → saleHow to track lead magnet to sale for LinkedIn Ads
- Contact Form 7 → LinkedInConnecting Contact Form 7 to LinkedIn Ads
- Gravity Forms → RedditConnecting Gravity Forms to Reddit
- Law firmsConversion tracking for law firms, without sending case details anywhere
- Fluent Forms → LinkedInConnecting Fluent Forms to LinkedIn Ads
Free · 30 min
Get Gravity Forms and LinkedIn joined properly
Free30 minutesNo obligation
