How to capture LinkedIn Ads data in WordPress forms
LinkedIn Ads give B2B teams targeting options that most ad networks cannot match — by industry, job title, and seniority. That precision comes at a cost, so it pays to know exactly which campaigns and ads are producing leads and customers rather than just clicks. This guide walks through a four-step setup, using a third-party attribution tool, that records LinkedIn Ads attribution in WordPress form submissions and pushes it into your CRM or reporting stack.
Why capture LinkedIn Ads data at the form level
Click and impression metrics live inside LinkedIn Campaign Manager. What they cannot tell you is which ad a specific lead saw before they filled in your form. By writing campaign and ad identifiers into the form submission itself, you connect the ad to the person and, later, to the deal. That link is what makes ROI reporting possible — leads by channel, customers by campaign, revenue by ad type.
The four-step setup
The workflow below assumes a WordPress site with a form plugin and a CRM or reporting tool. Each step builds on the previous one, so complete them in order.
Step 1 — Add UTM parameters to your LinkedIn ads
UTM parameters are the raw input for everything downstream. Decide which dimensions you want to report on and encode them in the ad URL. A common pattern for LinkedIn is:
- utm_medium = paidsocial
- utm_source = linkedin
- utm_campaign = [campaign name]
- utm_term = [ad name]
Keep naming consistent across campaigns — mixed casing or abbreviations will fragment your reports later. Free UTM builders exist online if you prefer a form-based interface, and a recommended structure is documented in the vendor's help center.
Step 2 — Install the attribution script on WordPress
The attribution tool is a small snippet added to the site. On each visit it determines how the visitor arrived — for example, from a LinkedIn ad — and stores that information in a first-party cookie in the browser. When the visitor later submits a form, the script writes the stored values into hidden fields you have added to that form. WordPress installation instructions are provided in the vendor's help center.
Step 3 — Let the form tool capture the values
Once the hidden fields are in place, every submission carries the attribution data alongside the lead's name, email, and phone. Depending on the UTMs you set, a LinkedIn-sourced lead will typically show:
- Channel = Paid Social
- Channel Drilldown 1 = LinkedIn
- Channel Drilldown 2 = Brand Campaign
- Channel Drilldown 3 = Red Ad
This works with WordPress form plugins such as Gravity Forms, WPForms, and Contact Form 7, as well as hosted form tools like Typeform, Jotform, and Zoho Forms.
Step 4 — Route the data to your CRM and reporting tools
With the data captured, you have four practical destinations:
- WordPress admin — view entries in the form tool's submissions table (Gravity Forms, WPForms, etc.).
- Notification emails — include the attribution fields so each lead's origin is visible in your inbox.
- CRM — use the form builder's native integration or a connector like Zapier to push the data into Salesforce, HubSpot, Pipedrive, or another CRM, then run built-in reports on leads and customers by source.
- Spreadsheet — send the data to a sheet via add-ons or a connector and build reports there.
What each captured field means
A quick reference for interpreting the values that land in your form submissions:
Use these fields as filter dimensions in your CRM reports. The landing page pair lets you see which sections of the site — a blog, a product page, a landing page — are producing leads, and drill down to individual pages.
Same-page capture vs. cookie-persisted capture
A common failure mode: a visitor clicks a LinkedIn ad, lands on your pricing page, then clicks through to a demo request form on a separate page and submits it there. Simple UTM-passthrough methods only work when the form is completed on the same page the visitor originally landed on — in this scenario, no data is passed. Cookie-based capture solves this because the UTM values are stored in the browser and written into the form regardless of which page the submission happens on. If your reports show a suspiciously high share of 'direct' or 'none' for LinkedIn traffic, this is the first thing to check.
Three reports worth running
Once the data is flowing into your CRM or reporting tool, these views are the most useful for judging LinkedIn Ads performance:
- Leads by channel — compare Organic Search, Paid Search, Paid Social, and other channels to see where leads actually originate. This helps you decide whether LinkedIn deserves more budget or whether another channel is outperforming it.
- Customers by campaign — if you run multiple LinkedIn campaigns, this shows which ones convert to paying customers, not just leads, so you can shift spend toward the winners.
- Revenue by ad type — LinkedIn offers Sponsored Content, Sponsored Messaging (InMail), and Text Ads. CPMs and performance vary widely across formats, so a revenue-by-ad-type view tells you which format is worth continuing.
Pre-launch checklist
Before you switch on a new LinkedIn campaign, confirm each of these:
- [ ] UTM parameters follow a consistent naming convention across campaigns and ads.
- [ ] The attribution snippet is installed and loading on every page of the WordPress site.
- [ ] Hidden fields for Channel, Drilldown 1–3, landing page, and landing page category exist on every lead form.
- [ ] A test submission from a LinkedIn ad URL shows the expected values in the form tool's entries table.
- [ ] The CRM integration maps each hidden field to a corresponding CRM property.
- [ ] A baseline report (leads by channel) has been saved so you can compare after launch.
| Field | Meaning | Example |
|---|---|---|
| Channel | Broad acquisition category | Paid Social |
| Channel Drilldown 1 | Network or platform | |
| Channel Drilldown 2 | Campaign name | Brand Campaign |
| Channel Drilldown 3 | Ad or creative name | Red Ad |
| Landing page | First page the visitor saw | /blog/capture-utm-parameters |
| Landing page category | Section of the site | /blog |
Frequently asked questions
Does this work if the visitor submits a form on a different page than the one they landed on?
Yes, when the attribution tool is used. Because the UTM values are stored in a browser cookie at landing, the data is written into the form regardless of which page the submission happens on. Simple UTM-passthrough methods without cookie storage only work on the original landing page.
Which WordPress form plugins are supported?
The setup works with all WordPress form-building plugins, including Gravity Forms, WPForms, and Contact Form 7, as well as hosted form tools such as Typeform, Jotform, and Zoho Forms.
What CRM integrations are available?
Native integrations exist for CRMs such as Salesforce, HubSpot, and Pipedrive, and third-party connectors like Zapier can bridge the gap for other tools. The captured fields can also be sent to a spreadsheet for reporting.
What is the difference between Channel and Channel Drilldown fields?
Channel is the broad acquisition category (for example, Paid Social). Channel Drilldown 1 identifies the network (LinkedIn), Drilldown 2 the campaign (Brand Campaign), and Drilldown 3 the specific ad (Red Ad). Together they let you filter reports at any level of granularity.