Track LinkedIn Ads data in Freshsales in four steps
LinkedIn's targeting lets B2B teams reach people by industry, job title and seniority, but that precision usually comes at a higher cost per click. Clicks and site visits alone won't tell you whether the spend produced pipeline. This guide shows how to carry LinkedIn campaign information through your website forms into Freshsales, so lead, opportunity, customer and revenue reports can be broken down by channel, campaign and ad.
Why LinkedIn spend needs a CRM-side answer
LinkedIn advertising is well suited to B2B promotion because audiences can be narrowed by industry, job title, seniority and similar attributes. The trade-off is cost: campaigns on a large professional network tend to be expensive, so the useful question is not how many impressions or clicks you bought, but how many leads and customers followed.
Ad platform dashboards answer the first question. They cannot tell you which campaign produced a closed customer unless the campaign identity travels with the person into your CRM. That is the gap this setup closes: the ad click is tagged, the tag is read on your site, and the resulting values land on the Freshsales record alongside the lead's name, email, company and anything else your form collects.
Step 1: Put the tracking script on your site and add hidden fields
The tracking snippet is a small piece of code installed across your website. When a visitor submits a form, the snippet supplies the marketing source values that your form passes to Freshsales. You receive the code when you sign up, and installation instructions accompany it.
After the code is live, add hidden fields to every form you want to attribute. The field names are fixed and must match exactly:
- Channel
- Channel Drilldown 1
- Channel Drilldown 2
- Channel Drilldown 3
- Channel Drilldown 4
The snippet works with many form builders, including Freshsales' own forms, Gravity Forms, Jotform and Typeform, and per-builder instructions exist for adding hidden fields. If a form is missing these fields, submissions from it will arrive in Freshsales without source detail even when everything else is configured correctly.
Step 2: Tag every LinkedIn ad URL with UTM parameters
UTM parameters are short text values appended to the destination URL of a campaign. They tell analytics and attribution tools which source, medium and campaign sent the visitor.
A tagged destination looks like the base page address followed by a question mark and key-value pairs, for example a medium of paidsocial, a source of linkedin and a campaign name of brand-campaign. The exact values are your choice, but consistency matters more than cleverness: the same campaign should carry the same string every time it runs.
Tag every ad, not just the flagship campaign. If one ad set points at an untagged URL, that traffic will be classified as direct or referral and the campaign will look weaker than it is.
Step 3: How the click becomes a Freshsales field value
Once the snippet is running and the ads are tagged, the sequence works like this:
- A visitor arrives from a LinkedIn ad. The snippet reads the UTM values on the landing URL.
- The visitor is sorted into a channel such as Paid Social, Paid Search or Organic Search, and the detail is stored in a cookie in that browser.
- The visitor completes a form. The hidden fields are populated with the stored source information.
- The form submission, including those values, is sent to Freshsales with the rest of the lead data.
The cookie step is what makes the model resilient: if someone clicks an ad, leaves, and returns later to convert, the original campaign information is still available to fill the fields.
Step 4: Build reports on leads, opportunities, customers and revenue
With source data on the record, reporting becomes a matter of grouping. You can use Freshsales' built-in reporting or a connected tool such as Tableau, Microsoft Power BI or Looker.
Useful report shapes include:
- Lead volume by channel, to see the overall mix of where enquiries originate.
- Opportunities by network, to compare which ad platforms produce sales-ready conversations.
- Customers by campaign, to separate campaigns that close business from campaigns that only generate interest.
- Revenue by ad, to judge which creative attracts buyers rather than browsers.
A practical reading habit: compare the channel mix against the budget mix. If most leads arrive through organic search while most spend goes to LinkedIn, the allocation deserves a review rather than an assumption that LinkedIn is or isn't working.
What the channel and drilldown fields contain
The field family is hierarchical. Channel holds the broad category, and each drilldown adds a level of specificity drawn from your UTM values.
A worked example makes this concrete. Imagine a furniture maker running a LinkedIn campaign for a timber range, with a specific ad creative. A click on that ad could produce:
- Channel: Paid Social
- Channel Drilldown 1: LinkedIn
- Channel Drilldown 2: the campaign name, such as Timber Campaign
- Channel Drilldown 3: the ad creative, such as Timber Ad
- Channel Drilldown 4: available for one further level if your naming scheme needs it
Because the values come from your own UTM strings, the drilldown labels are only as meaningful as your naming convention. Decide the convention before launch and document it, so a report reader six months later can interpret each level without guessing.
Three capabilities that make the data usable
Beyond simply capturing a source, three behaviours matter for data quality.
Coverage across channels. Attribution should not stop at paid social. Visitors arriving from paid search, organic search, organic social, referral or direct entry can be classified too, which means the LinkedIn numbers sit inside a complete picture rather than an isolated one.
Persistence. Storing the parameters in the visitor's browser means a return visit before conversion still carries the original campaign, instead of defaulting to direct.
Normalisation. UTM strings are typed by humans and vary in casing, for example a source written as linkedin in one campaign and LinkedIn in another. The tool recognises these as the same thing and assigns them to the correct channel, so minor inconsistencies don't fragment your reporting.
Pre-launch checklist and failure diagnosis
Run this checklist before you judge any LinkedIn campaign result:
- The snippet is present on every page that hosts a form, not just the landing pages.
- Every form that feeds Freshsales contains all five hidden fields, spelled exactly as listed.
- Every LinkedIn ad destination URL carries UTM parameters, including retargeting and lookalike ad sets.
- A test submission from a tagged URL produces a Freshsales record with Channel set to Paid Social and Channel Drilldown 1 set to LinkedIn.
- A second test submission from an untagged URL is classified as direct or referral, confirming the tagging is what drives the paid classification.
When something looks wrong, identify which layer failed before changing anything. No source data at all usually points to missing hidden fields or a missing snippet. A record that exists but shows the wrong channel usually points to a malformed or inconsistent UTM value. Correct channel but missing campaign or ad detail usually means the deeper UTM keys were omitted from that ad's URL.
Where to go next
The setup is deliberately small: one snippet, five hidden fields, consistent UTM tagging and a reporting habit. Once it is in place, every new LinkedIn campaign inherits the same measurement path, and the CRM becomes the place where ad spend is judged against leads, opportunities, customers and revenue rather than clicks.
If you want to try the workflow, the signup flow provides the tracking code and the accompanying installation guidance.
| Field | What it holds | Example value |
|---|---|---|
| Channel | Broad marketing category | Paid Social |
| Channel Drilldown 1 | Network or platform | |
| Channel Drilldown 2 | Campaign | Timber Campaign |
| Channel Drilldown 3 | Ad creative | Timber Ad |
| Channel Drilldown 4 | Optional further level | (your naming scheme) |
Field names must match exactly as shown in the first column. Example values are illustrative and derive from whatever UTM strings you choose.
| Symptom | Likely layer | What to inspect |
|---|---|---|
| No source values on any record | Form or site setup | Hidden fields present on the form; snippet loaded on the page |
| Record shows direct or referral for a paid click | URL tagging | UTM parameters on that specific ad destination |
| Channel correct but campaign blank | URL tagging depth | utm_campaign and deeper keys on the ad URL |
| Same campaign split across two channel rows | Naming consistency | Casing and spelling differences in utm_source values |
These are diagnostic starting points based on how the capture path works, not a guarantee that any single cause explains a given discrepancy.
Frequently asked questions
Do I need to change my Freshsales forms to make this work?
Yes. Each form that should carry source information needs the five hidden fields added: Channel and Channel Drilldown 1 through 4. The field names must match exactly. Forms without them will still submit, but the record will lack attribution detail.
What happens if a visitor clicks a LinkedIn ad but converts on a later visit?
The campaign information is stored in a cookie in that visitor's browser, so a return visit before conversion can still populate the hidden fields with the original source.
Does inconsistent capitalisation in UTM values break the reporting?
Not with this setup. Values such as linkedin and LinkedIn are recognised as the same source and assigned to the same channel, which keeps the reporting from fragmenting over casing differences.
Can I report on revenue per ad, or only on lead counts?
Both are possible once source data sits on the Freshsales record. Grouping by channel gives lead volume, grouping by campaign gives customer counts, and grouping by ad gives revenue, using Freshsales reporting or a connected BI tool.
Is this only for LinkedIn traffic?
No. The same capture path classifies visitors from paid search, organic search, organic social, referral and direct entry, so LinkedIn results can be compared against every other channel in one report.