Ad & Integrations > Advertising
LinkedIn Insight Tag
Install the LinkedIn Insight Tag on your SuperFunnel pages, track conversions by conversion ID, and verify the tag in Campaign Manager.
Overview
The LinkedIn Insight Tag is a snippet of code you add to your pages so LinkedIn can measure conversions, build retargeting audiences, and report on the professional demographics of your visitors.
Unlike the Meta or Reddit pixels, LinkedIn does not use named standard events like Lead or Purchase. Instead, you create conversions in Campaign Manager, each with its own conversion ID, and fire them either by matching a page URL or by calling LinkedIn's JavaScript with that ID.
Before you start
Create your Insight Tag in LinkedIn Campaign Manager → Analyze → Insight Tag first, and note your Partner ID (a numeric value). You will also create one or more conversions under Analyze → Conversion tracking.
Step 1: Get your Insight Tag
Open the Insight Tag
In Campaign Manager, go to Analyze → Insight Tag and choose to install the tag manually. Note your Partner ID.
Copy the tag code
Copy the Insight Tag. It looks like this, with your own ID in place of
1234567:
<!-- LinkedIn Insight Tag -->
<script type="text/javascript">
_linkedin_partner_id = "1234567";
window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
window._linkedin_data_partner_ids.push(_linkedin_partner_id);
</script>
<script type="text/javascript">
(function(l) {
if (!l){window.lintrk = function(a,b){window.lintrk.q.push([a,b])};
window.lintrk.q=[]}
var s = document.getElementsByTagName("script")[0];
var b = document.createElement("script");
b.type = "text/javascript";b.async = true;
b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js";
s.parentNode.insertBefore(b, s);})(window.lintrk);
</script>
<noscript>
<img height="1" width="1" style="display:none;" alt=""
src="https://px.ads.linkedin.com/collect/?pid=1234567&fmt=gif" />
</noscript>
<!-- End LinkedIn Insight Tag -->Step 2: Install the tag in SuperFunnel
Add the tag using Custom Code. Install it globally so it loads on every page and quiz.
Open global Custom Code
Go to Settings → Website → Custom Code.
Add the tag
Click + Add Code, name it "LinkedIn Insight Tag — Base", paste the tag, and set the injection location to Header so it loads before page content. Enable it.
Save your pages
Save so the tag goes live.
Install the tag in exactly one place
Add the tag once, globally. Enable or disable it at the Page and Quiz level.
Adding the code twice loads the tag twice and double-counts every conversion. See Debugging Events for additional information.
Step 3: Verify the tag is firing
Check the tag status
In Campaign Manager → Analyze → Insight Tag, the status changes to Active once LinkedIn receives a signal from your domain. It can take up to 24 hours to register the first traffic.
Confirm it loads in the browser
Open your live page, open your browser's DevTools Network tab, and look
for a request to snap.licdn.com/li.lms-analytics/insight.min.js. You can
also use the LinkedIn Insight Tag Helper Chrome extension to confirm the
tag fires.
Refresh if nothing appears
If nothing shows on first load, refresh the page.
Tracking conversions
A LinkedIn conversion is created in Campaign Manager, where you choose how it fires:
- URL-based — LinkedIn counts the conversion when a visitor loads a page whose URL matches a rule you set, for example a thank-you page. No extra code is needed.
- Event-specific — you fire the conversion from JavaScript using its conversion ID. Use this when there is no dedicated URL to match, such as a single-page funnel or a quiz step.
Fire an event-specific conversion with a single call, using the conversion ID from Campaign Manager:
window.lintrk('track', { conversion_id: 12345 });The important thing to understand: SuperFunnel fires its own events, superfunnel-form-submission when a visitor reaches the Final Step, and the broader superfunnel-conversion for any conversion. LinkedIn will not count a conversion until you fire lintrk with the matching conversion ID. For the difference between the two SuperFunnel events, see Default conversion events.
The cleanest way to fire a LinkedIn conversion on a SuperFunnel form submission is through Google Tag Manager: create a Custom Event trigger on superfunnel-form-submission, then fire a Custom HTML tag that calls window.lintrk('track', { conversion_id: 12345 }).
Firing your own on-page events
For interactions other than form submission, like a CTA click or a mid-quiz email capture, fire your own event with SuperFunnel's JavaScript API and forward it to LinkedIn:
window.sf.reportEvent("cta-click");
window.lintrk('track', { conversion_id: 12345 });See Online Event Tracking for the full event API, including the sf:step-change hook.
Troubleshooting
- Tag not detected — refresh the page; confirm the tag is enabled in Custom Code and set to Header. The status in Campaign Manager can take up to 24 hours to turn Active.
lintrk is not defined— a tag tried to fire a conversion before the base tag loaded. Make sure the base tag is installed globally and in the header.- Conversions overcounted — the tag is installed in more than one place, so every conversion fires twice. Keep a single source. See Debugging Events.
- Conversion fires on the wrong step —
superfunnel-form-submissionfires at the final step. If your real conversion happens earlier, firelintrkat that point instead, see Online Event Tracking.
What's next
Reddit Pixel
Install the Reddit Pixel and fire standard or custom conversion events.
Meta Pixel
Install the Meta Pixel and map SuperFunnel events to standard Meta events.
Google Tag Manager
Fire LinkedIn and other tags on SuperFunnel events from one container.
Debugging Events
Inspect the page-load dataLayer event and fix common tracking pitfalls.