Capture LinkedIn Ads Data in WPForms
Visitor counts alone do not show whether LinkedIn advertising creates enquiries, customers, or revenue. A practical setup links the ad click to the eventual form submission, so each lead carries campaign and landing-page context into the CRM.
Why connect the ad click to the form submission?
Website analytics can show that LinkedIn sent traffic, but it does not by itself connect that traffic to a completed enquiry. The missing link is the journey from the ad click to the form submission. UTM parameters provide the campaign labels, a small attribution script preserves them in the browser, and hidden form fields carry them into WPForms.
Four-step setup
Follow the sequence below. Each step depends on the previous one: without tagged URLs there is nothing to preserve, and without hidden fields there is nowhere for the preserved values to go.
1. Tag every LinkedIn destination URL
Append UTM parameters to the URL behind each LinkedIn ad. These are additional URL values that identify the medium, source, campaign, and ad. A consistent naming pattern matters more than the exact labels, because the same values will later be used for grouping in reports.
Use a consistent UTM pattern
Use a repeatable pattern such as UTM_Medium=paidsocial, UTM_Source=linkedIn, UTM_Campaign=[campaign name], and UTM_Term=[ad name]. Replace the bracketed values with the actual campaign and ad names. Keep spelling, spacing, and capitalisation consistent across ads so reports do not split one campaign into several apparent campaigns.
2. Install the attribution script and hidden fields
Install a small attribution script on the website. The script classifies how the visitor arrived, using channel categories comparable to those in Google Analytics, and stores the attribution information in a browser cookie. When a form is completed, the script populates the relevant hidden fields and WPForms captures those values with the submission.
Test before relying on the data
Check that the hidden fields are present on the form before launch. A quick test should confirm that a tagged visit followed by a form submission produces the expected source, medium, campaign, and ad values in the WPForms entry.
3. Send captured values onward
Once the setup is working, each completed form can include the LinkedIn campaign and ad that brought the visitor to the site. WPForms integrations or other WordPress plugins can then pass the submission data to a CRM or another business tool.
4. Report on leads, customers, and revenue
With the attribution values stored alongside the lead, reports can move beyond clicks and visits. Useful measures include leads from LinkedIn Ads, leads per campaign, customers generated, and revenue attributed to the ads.
Why cookie storage matters
A cookie-based approach solves a common failure case. If a visitor clicks a LinkedIn ad, lands on the homepage, selects Contact Us, and submits a form on a different page, a landing-page-only method would lose the campaign information. Because the values are stored in the browser, they remain available when the later form is completed.
Capture landing-page context too
The same setup can also record the landing page and its category, such as a specific blog post and the blog section containing it. That makes it possible to compare content sections and individual pages by the leads, customers, and revenue they help generate, rather than by traffic alone.
See every lead source, not only LinkedIn
The attribution setup is not limited to LinkedIn. It can also record leads from Organic Search, Organic Social, Paid Search, and other channels, giving a single view of lead sources for budget and planning decisions.
Report 1: Leads by channel
Start with leads by channel. This view shows how many leads each channel produces and helps direct time and budget toward the channels generating results.
Report 2: Customers by campaign
Next, break customers down by LinkedIn campaign. Campaigns that produce customers deserve further investment, while campaigns that generate only low-value activity can be paused or revised.
Report 3: Revenue by ad type
Finally, break revenue down by LinkedIn ad type. Sponsored content appears in the newsfeed, sponsored messaging includes InMail ads, and text ads appear in the sidebar. Comparing revenue across those formats helps focus spending on the formats that produce the strongest commercial return.
Pre-launch checklist
Before launch, confirm that every LinkedIn destination URL uses the same UTM pattern, the attribution script is installed, hidden fields are present on each WPForms form, a test submission contains the expected values, and the downstream CRM mapping preserves campaign and ad fields. If a trial or onboarding offer is relevant to your evaluation, check the current terms directly with the provider before relying on them.
| Check | What to confirm |
|---|---|
| Destination URLs | Medium, source, campaign, and ad values are present and consistently named |
| Website script | Attribution script is installed and storing values in a browser cookie |
| WPForms form | Hidden fields are added and populated on submission |
| Test submission | Campaign and ad values appear in the captured entry |
| CRM mapping | Attribution fields are passed through and available for reporting |
Use as a launch checklist; values should match the UTM pattern used on the ads.
Frequently asked questions
What is needed to capture LinkedIn Ads data in WPForms?
Add UTM parameters to the destination URL behind each LinkedIn ad, install a small attribution script on the site, and add hidden fields to the WPForms form so the script can populate them on submission. The captured values can then be sent onward to a CRM or reporting tool.
Does the visitor have to submit the form on the landing page?
Yes, if the attribution values are stored in a browser cookie when the visitor first arrives. The visitor can land on one page, navigate elsewhere, and still have the original campaign information passed through when a later form is submitted.
Which reports are most useful after capture?
Useful views include leads by channel, customers by campaign, and revenue by ad type. Together they show which channels create demand, which campaigns create customers, and which LinkedIn formats produce revenue.