How to Track LinkedIn Ads in Salesforce
LinkedIn Ads gives B2B teams precise targeting by industry, job title and seniority, but its cost makes click-level reporting insufficient. To know whether the spend produces leads, opportunities and customers, you need campaign data inside the CRM. This guide shows a four-step setup that passes LinkedIn Ads attribution into Salesforce and turns it into reports your team can act on.
Why LinkedIn Ads data belongs in Salesforce
LinkedIn Ads is a strong channel for B2B promotion because it lets you target people by industry, job title, seniority and more. Those controls are not available to the same degree on every ad network. The trade-off is cost: LinkedIn Ads tends to be expensive, so counting clicks or website visitors is not enough. You need to see how many leads and customers the channel produces. Google Analytics-style tools can show traffic, but they cannot connect a LinkedIn click to a closed opportunity or a revenue figure. Salesforce can, provided the source data reaches the CRM with each lead.
The four-step setup at a glance
The workflow has four stages: install the attribution code on your website, add UTM parameters to your LinkedIn Ads, let the data flow into Salesforce through your forms, and build reports on the results. Each stage has a specific failure mode, so it helps to treat them as a sequence rather than a single switch. The checklist below is a practical way to confirm each stage before moving on.
Step 1: Install the attribution code on your website
The attribution tool is a small piece of code added to your website. It records where visitors come from and writes that information into hidden fields when a visitor submits a form. To install it, add the snippet supplied with your account; setup instructions are available through the help center. Then add the hidden fields to your forms: Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3 and Channel Drilldown 4. The tool works with many form builders, including Salesforce Web to Lead forms, Gravity Forms, Webflow Forms and Typeform. Step-by-step instructions for dozens of form builders are available through the help center.
Step 2: Add UTM parameters to your LinkedIn Ads
UTM parameters are extra text appended to the destination URL of an ad. They tell analytics tools which source, medium and campaign sent the visitor. For example, if the landing page is https://roipaths.com/integrations/salesforce, the final URL with UTM parameters might look like this: https://roipaths.com/integrations/salesforce?utm_medium=paidsocial&utm_source=linkedin&utm_campaign=brand-campaign. The parameters help the attribution tool understand where the lead came from, which campaign it belonged to and which ad was clicked. Use consistent values across campaigns so the resulting Salesforce data stays clean.
Step 3: Let LinkedIn Ads data flow into Salesforce
Once the code and UTM parameters are in place, the tool tracks where visitors come from. It categorizes each visitor into a channel such as Paid Social, Paid Search or Organic Search and stores the information in a cookie in the visitor's browser. When the visitor submits a form, the tool writes the source information into the hidden fields, and your form tool captures it. The data then travels into Salesforce alongside the lead's name, email, company and other form details. A useful field map is: Channel holds the broad category, Channel Drilldown 1 holds the network, Channel Drilldown 2 holds the campaign, Channel Drilldown 3 holds the ad creative, and Channel Drilldown 4 is available for an additional level of detail.
Step 4: Run reports on LinkedIn Ads performance
With LinkedIn Ads data inside Salesforce, you can report using Salesforce's native reporting tools or a connected tool such as Tableau, Microsoft Power BI or Looker. Useful reports include leads by channel, opportunities by social network, customers by campaign and revenue by ad. These reports answer different questions: leads by channel shows where volume comes from, opportunities by social network compares networks, customers by campaign shows which campaigns convert, and revenue by ad shows which creative produces revenue. A simple decision rule is to start with native Salesforce reports if your team already works there, and move to a connected BI tool when you need cross-object dashboards or more complex visualizations.
What the attribution tool does
The tool is a small piece of website code that tracks visitor sources and writes the data into hidden form fields. When a form is submitted, the form tool captures the data and sends it to Salesforce. For example, a company selling accounting software might see a lead arrive with Channel set to Paid Social, Channel Drilldown 1 set to LinkedIn, Channel Drilldown 2 set to Payroll Campaign and Channel Drilldown 3 set to Red Ad. The tool also captures other attribution information, including Paid Search, Organic Search, Organic Social, Referral and Direct. It stores UTM parameters in a cookie so returning visitors still pass through the original source. It also normalizes inconsistent UTM usage, such as utm_source=linkedin in one campaign and utm_source=LinkedIn in another, assigning both to the correct channel.
Four reports worth building
Leads by channel shows monthly lead volume split by source and helps you see where leads come from at a high level. If most leads come from Organic Search while most budget goes to LinkedIn Ads, the report makes that mismatch visible. Opportunities by social network compares how many customers come from ads on each network and supports budget decisions. Customers by campaign shows which LinkedIn campaigns actually bring customers rather than visitors or leads that do not convert. Revenue by ad shows how much revenue each creative generates and helps you refine ad creative over time. Together these reports move the conversation from clicks to commercial outcomes.
Missing data? Check these two failure points first
If LinkedIn Ads data is missing from Salesforce, the cause is usually one of two things. First, the ad URL may lack UTM parameters, in which case the tool has no source information to record. Second, the form may lack the hidden fields, in which case the source information has nowhere to be written. Check the final ad URL for utm_source, utm_medium and utm_campaign, then confirm that Channel and the four Channel Drilldown fields exist on the form and map to Salesforce fields. Fixing either gap is usually faster than rebuilding reports.
Putting it together
Tracking LinkedIn Ads in Salesforce is a four-stage workflow: install the code, tag the ads, let the form pass the data through, and report on the results. The payoff is visibility into leads, customers and revenue by campaign and ad, using the CRM your team already uses. Start with the field map and the two failure checks above, then build the four reports as your data accumulates. If you want to try the attribution tool, check the current plan and setup details on the signup page before you begin.
Frequently asked questions
What do UTM parameters actually tell Salesforce?
They identify the source, medium and campaign that sent a visitor. The attribution tool reads them and writes the result into the Channel and Channel Drilldown fields on the form, which then travel into Salesforce with the lead.
Does a returning visitor lose their original LinkedIn Ads attribution?
No. The UTM parameters are stored in a cookie in the visitor's browser, so the original source can still be passed through when the visitor returns and submits a form.
What happens if one campaign uses utm_source=linkedin and another uses utm_source=LinkedIn?
The tool expects inconsistencies in UTM usage and assigns both variants to the correct channel, Paid Social in this case, so the report stays consistent.
Which form builders can pass the hidden fields into Salesforce?
The tool works with dozens of form builders, including Salesforce Web to Lead forms, Gravity Forms, Webflow Forms and Typeform. The hidden fields need to be added to the form and mapped to the corresponding Salesforce fields.
Can I report on LinkedIn Ads data outside Salesforce?
Yes. You can use Salesforce's native reporting tools or a connected reporting tool such as Tableau, Microsoft Power BI or Looker.