Skip to content

Track LinkedIn Ads in Microsoft Dynamics in 4 steps

LinkedIn Ads can be costly for B2B teams, so clicks and visits alone do not show whether spend is producing leads, opportunities, customers or revenue. The setup below connects ad source data to Microsoft Dynamics so reporting can start from the CRM record instead of a separate ad platform.

Why connect LinkedIn Ads to Dynamics

LinkedIn targeting by industry, job title and seniority makes the platform attractive for B2B promotion, lead generation and customer acquisition. That targeting advantage does not, by itself, prove return. A practical check is whether a LinkedIn-sourced lead progresses to an opportunity, a closed customer and revenue inside Dynamics.

Use this decision rule before building reports: if a campaign cannot be traced from the ad click to a Dynamics lead or contact record, treat its performance as unproven, even if LinkedIn reports show clicks or conversions.

Step 1: Install attribution code and hidden fields

Install the attribution code on the website. The code records where a visitor came from and makes that information available when a form is submitted.

Add hidden fields to each relevant form for Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3 and Channel Drilldown 4. Those fields are the bridge between the website visit and the CRM record. Check that your form builder supports hidden fields and that the fields are included on every form used for lead capture, including Dynamics Marketing Forms and other supported builders.

Step 2: Add UTM parameters to LinkedIn Ads

Add UTM parameters to the destination URL for LinkedIn campaigns. UTM parameters are extra text appended to the URL that identify source, medium and campaign.

For example, a destination URL can carry utm_medium=paidsocial, utm_source=linkedin and utm_campaign=brand-campaign. Keep naming consistent across campaigns: the same source should not alternate between different capitalisations or spellings, because inconsistent values make reporting harder to clean and compare.

Step 3: Send attribution data into Dynamics

After setup, each visitor is categorised into channels such as Paid Social, Paid Search, Organic Search and others, and that categorisation is stored in a browser cookie. If the visitor later submits a form, the stored values are written into the hidden fields and captured by the form tool.

The form submission can then send the attribution values into Microsoft Dynamics together with the name, email, company and other details collected on the form. This persistence matters for a common failure case: a visitor clicks an ad, leaves without converting, and returns later. Without stored attribution, the later form submission may lose the original LinkedIn source.

Step 4: Report on leads, customers and revenue

Use Dynamics native reporting, or a connected reporting tool such as Tableau, Microsoft Power BI or Looker, to compare campaigns on downstream outcomes. Useful measures include lead volume by campaign, lead-to-opportunity conversion, close rate and revenue generated.

Worked example using the captured field values: a lawn-maintenance advertiser could see Channel as Paid Social, Channel Drilldown 1 as LinkedIn, Channel Drilldown 2 as the campaign name and Channel Drilldown 3 as the ad creative. In Dynamics, that record can then be grouped with other LinkedIn records to show which campaign and creative produced customers, not only leads.

Four reports to build first

Leads by channel gives a monthly, high-level view of where leads originate. If most leads come from Organic Search while most budget goes to LinkedIn Ads, that mismatch is a prompt to re-examine spend allocation.

Opportunities by network compares customer outcomes across LinkedIn, Facebook, Instagram, Twitter and other networks, helping budget decisions focus on the network with the best return.

Customers by campaign separates campaigns that create customers from campaigns that only create visitors or non-converting leads.

Revenue by ad shows which creative attracts leads that become customers, which can guide creative improvement over time.

Setup checklist and failure checks

Before publishing reports, run this checklist: attribution code is present on all pages with lead forms; hidden fields are present and mapped correctly; every LinkedIn destination URL carries consistent UTM parameters; a test submission creates a Dynamics record with Channel and drilldown values populated; a returning-visitor test still passes the original source; and campaign names in Dynamics match the names used in LinkedIn Ads.

Also check the distinction between clicks and customers. A campaign can perform well on visits while failing on opportunities, close rate or revenue. Reporting should therefore move from channel volume to campaign, ad and revenue outcomes before budget is increased.