Skip to content

Track LinkedIn Ads Through Formstack: Capture Campaign Data on Every Lead

LinkedIn targeting can be precise, but that precision often comes at a higher cost than other paid channels. The practical question is not how many clicks an ad received; it is how many leads, customers and revenue each campaign produced. This guide shows how to attach campaign data to Formstack submissions so those outcomes can be reported in a CRM.

Why campaign-level capture matters

LinkedIn allows advertisers to narrow audiences by country, industry, company, job title and seniority, among other attributes. That control is valuable for B2B lead generation, but it can also make campaigns expensive. Without lead-level attribution, a team cannot tell whether spend is producing profitable demand or simply generating activity. Capturing campaign data at the moment a form is submitted connects the eventual lead record to the ad that brought the visitor to the site.

Four-step setup checklist

Work through the setup in order, because each step depends on the one before it.

From ad click to submitted lead

Step 1: Add UTM parameters to every LinkedIn ad URL. These are additional query values appended to the destination address. A consistent convention makes reporting readable later. Step 2: Install the attribution snippet on the website. When a visitor arrives, the snippet identifies the source and stores the UTM values in a browser cookie. Step 3: Add hidden fields to the Formstack forms. At submission, the stored values are written into those fields alongside the visitor's name, email and other answers. Step 4: Send the completed record onward. Formstack's native integrations, or a connector such as Zapier when a direct integration is unavailable, can pass the data to a CRM or another business tool.

Field map: what to expect on each submission

A practical field map for a LinkedIn submission looks like this: Channel records the broad source, for example Paid Social. Channel Drilldown 1 records the platform, for example LinkedIn. Channel Drilldown 2 records the campaign name. Channel Drilldown 3 records the individual ad. Landing page and landing page category can sit alongside those fields so content performance is visible too. Before launching, submit a test form from a tagged LinkedIn URL and confirm that every field arrives correctly in the destination system; a missing hidden field is the most common reason for blank attribution data.

Why cookie-based storage prevents lost attribution

Direct UTM capture in a form only works when the form is completed on the same page where the visitor landed. If someone clicks an ad, reaches the homepage, then navigates to a contact page to submit, a same-page approach would lose the campaign data. Storing the UTM values in a cookie first removes that dependency: the values persist across pages until the form is completed, so the submission is credited to the original visit regardless of which page the visitor used.

Three reports to build first

Once submissions reach the CRM, three reports give a useful starting point. Leads by channel shows the overall mix across sources such as Organic Search, Paid Search and Paid Social, which helps judge whether LinkedIn deserves more budget. Customers by campaign shows which LinkedIn campaigns produce buyers rather than only enquiries. Revenue by ad type compares formats, including Sponsored Content, Sponsored Messaging (InMail Ads) and Text Ads, which can differ sharply in cost and performance. The same data can also answer how many leads and customers came from LinkedIn overall, and how much revenue those customers generated.

Before you start

The value of this setup is that it covers every lead, not only LinkedIn traffic. When all channels use the same capture method, the CRM can show where demand is actually coming from and where to invest next. Confirm the product name, setup effort and any trial terms with Attribution Analytics before starting, then test one tagged URL end to end before rolling the hidden fields out to every form.

Attribution fields captured on a Formstack submission
FieldExample valueUse in reporting
ChannelPaid SocialCompare broad channels
Channel Drilldown 1LinkedInIsolate LinkedIn within paid social
Channel Drilldown 2Brand CampaignCompare campaigns
Channel Drilldown 3Red AdCompare individual ads
Landing pageBlog article URLSee which content converts
Landing page category/blogCompare content sections

Example values follow the UTM convention described in the guide; replace campaign and ad names with your own naming.

Frequently asked questions

Does the visitor have to submit the form on the page they first landed on?

No. The attribution snippet stores the UTM values in a browser cookie when the visitor first arrives, then writes them into hidden form fields at submission. That means the visitor can move from the ad landing page to another page, such as a contact page, and still be credited to the original campaign.

What should the UTM values look like for LinkedIn ads?

UTM parameters are extra text added to the destination URL. For LinkedIn, a common pattern is medium set to paidsocial, source set to LinkedIn, campaign set to the campaign name, and term set to the ad name. Consistent naming matters more than the exact values, because those values become the labels in your later reports.

Can I see which landing page produced the lead?

Yes. The same setup can record the landing page URL and its category, such as a blog path. Once that data reaches your CRM, you can compare which pages or content sections are producing leads and customers, not only which ad campaign produced them.

Which reports are most useful after the data is in the CRM?

Start with leads by channel to see the overall mix, then customers by campaign to judge campaign quality, then revenue by ad type to compare formats such as Sponsored Content, Sponsored Messaging (InMail) and Text Ads. Together they separate volume, conversion to customers, and commercial value.