Capture LinkedIn Ads Data in Ninja Forms: A 4-Step Setup
Clicks and visits alone do not show whether LinkedIn advertising produces business. The useful test is whether a form submission can be tied back to the campaign, ad, and landing page that brought the visitor in, then carried into a CRM for lead, customer, and revenue reporting.
What you are trying to prove
This guide explains a practical flow for that job: tag each LinkedIn ad with UTM parameters, add hidden fields to the Ninja form, install a small attribution script on the site, and forward the completed fields to a CRM or reporting tool. Once the data arrives with the submission, reporting can move beyond traffic to leads, customers, and revenue by campaign and ad type.
The 4-step checklist
Work through the steps in order. Skipping the tagging or hidden-field step means there is nothing for the script to populate when a visitor submits.
Setup in detail
Step 1 — Tag the ads and prepare the form. Add UTM parameters to every LinkedIn ad using a consistent convention. A workable pattern is: UTM_Medium=paidsocial, UTM_Source=linkedIn, UTM_Campaign=brand campaign, and UTM_Term= ad name. Keep the campaign value descriptive enough to separate campaigns later, and use the term field for the individual ad name. Then open the Ninja form and drag the Hidden field type from the right-hand menu into the form for each attribution value you want to receive. Hidden fields carry data without asking the visitor to type it.
Step 2 — Install the attribution script. Add the attribution code to the website. The script identifies the marketing channel a visitor came from, such as Paid Social, and stores that attribution information in a cookie in the browser. When the visitor later completes a form, the script populates the hidden fields with the stored information. Installation is described as taking about 15 minutes, with step-by-step help available for adding the code and for adding hidden fields to Ninja Forms.
Step 3 — Receive the data with each submission. When a visitor completes a form, the submission should include how they found the site — for example, which LinkedIn campaign they came from and which ad they clicked. Use Ninja Forms native integrations, or a connector such as Zapier, to send those fields onward to a CRM or other tools.
Step 4 — Report on performance. With the fields in the CRM, build reports on leads generated by LinkedIn Ads, leads by individual campaign, customers generated, and revenue generated from LinkedIn Ads. The same fields support wider channel comparisons, not only LinkedIn.
Why the cookie and landing-page details matter
Three behaviours make this approach more reliable than reading UTMs only from the landing URL.
First, it covers every channel, not just LinkedIn. The same hidden fields can carry attribution for Organic Search, Organic Social, Paid Search, and other channels, so you can compare where all leads originate and allocate budget with fuller information.
Second, it survives navigation around the site. If a visitor clicks a LinkedIn ad, lands on the homepage, then moves to a different page to complete a Get A Quote form, a URL-only method would capture nothing. Because the UTM information is stored in a browser cookie, the fields are still populated on whichever page the form is completed. That produces a more complete count of leads from LinkedIn and other channels.
Third, it records the landing page as well as the campaign. The captured data includes the landing page, such as a blog URL, and its category, such as /blog. That lets you report which pages deliver leads, customers, and revenue, and which individual posts perform, rather than judging content only by visits.
Three reports to build first
Once LinkedIn data is flowing into Ninja Forms and onward to the CRM, three reports are especially useful. They can be built in Ninja native reporting or in a connected tool such as Tableau, Microsoft Power BI, or Looker.
Leads by channel: Show how many leads each channel and campaign generates, plus lead-to-opportunity conversion, close rate, and revenue. This reveals which campaigns produce the highest return.
Customers by campaign: When several campaigns promote different products or services, break customers down by the campaign they came from. That makes it clearer which campaigns are working and where to strengthen results.
Revenue by ad type: LinkedIn offers sponsored content in the newsfeed, sponsored messaging such as InMail Ads, and text ads in the sidebar. Break revenue down by ad type to see which format is working, shift budget toward the best performers, and aim for more leads at a lower cost per lead.
Final check before you publish
Before going live, run a test click from a tagged LinkedIn ad, navigate to a different page, and submit the form. The resulting submission should contain the expected campaign, ad, channel, and landing page values. Next, confirm those values reach the CRM intact and that the three reports above populate as expected. If you are evaluating a third-party attribution tool, verify its current product name, installation steps, and any trial or pricing terms directly with that provider before relying on commercial details in your rollout plan.