On this page
What this issue is
The LinkedIn Insight Tag is a small script that tells LinkedIn who visited your site and which actions they took. It identifies your ad account with a partner ID, a number set in the page as _linkedin_partner_id.
The problem happens when that number is not the one belonging to your Campaign Manager account. Common causes are a copy and paste from an old project, a client's ID left in a template, a typo, or a staging account ID that went live.
<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>Why it costs you leads or sales
LinkedIn only counts conversions for the account that owns the partner ID. If the ID is wrong, your ads still run and still spend money, but nothing is matched back to them.
That hurts in three ways: conversion reports show zero, retargeting audiences never fill, and any optimisation based on conversions has no data to learn from. You may also feed another company's account with your visitors.
- Ad clickVisitor arrives from LinkedIn
- Insight Tag loadsFires with the wrong partner ID
- Conversion eventSent to the wrong account
- Campaign ManagerShows no conversions
The page loads and the tag fires, but the data goes to the wrong account.
Example: the same 40 real leads in a month, reported with a wrong and a correct partner ID.
How to check if your site has it
Find your real partner ID
In LinkedIn Campaign Manager, open your account, go to Analyze > Insight tag and open the tag details. Note the partner ID number.
Look at the page source
Open your site, view the page source and search for
_linkedin_partner_id. Compare the number with the one in Campaign Manager.Check the network request
Open browser developer tools, go to the Network tab, reload and filter for
px.ads.linkedin.com. The request includespid=followed by the ID being sent.Check every template
Repeat on the home page, landing pages, checkout and thank-you page. Different templates, subdomains or a tag manager can carry different IDs.
How to fix it
Open the LinkedIn tag
In Tags, open the LinkedIn Insight Tag (or the Custom HTML tag holding the script).
Correct the ID
Paste the right partner ID into the Partner ID field, or edit
_linkedin_partner_idin the HTML.Preview and publish
Use Preview mode to confirm the tag fires, then Submit to publish a new version.
Find where the tag is added
It may be in a plugin settings page, a header and footer scripts plugin, or your theme's header.php.
Replace the ID
Edit the number to match Campaign Manager and save. Clear any caching plugin cache afterwards.
Check Customer events
In Settings > Customer events, look for a custom pixel containing the LinkedIn script and edit the ID.
Check theme code
Search theme.liquid for
_linkedin_partner_idand correct it if found.
Open custom code
In Project settings > Custom code, find the LinkedIn script in Head or Footer code. Also check page-level custom code.
Fix and publish
Update the ID and publish the site.
Open Custom Code
In Settings > Custom code (under Advanced), find the LinkedIn snippet or the Marketing Integrations entry.
Update and apply
Edit the ID and apply it to all pages.
Open Code Injection
In Settings > Developer Tools > Code Injection, find the script in the Header or Footer box.
Edit and save
Replace the ID and save.
Search the codebase
Search for
_linkedin_partner_idandsnap.licdn.comacross templates, includes and environment config.Use one source of truth
Store the ID in one config variable so staging and production cannot drift apart.
Check tracking code fields
Look in funnel or website settings under Tracking Code (header and footer), and in page-level custom code.
Replace the ID
Update the number and republish the funnel or site.
How to confirm it's fixed
- Page source shows only one
_linkedin_partner_id, matching Campaign Manager - The request to px.ads.linkedin.com has the correct
pid=value - The same ID appears on landing, checkout and thank-you pages
- Campaign Manager shows the Insight Tag as active or recently seen for the domain
- A test conversion appears in Campaign Manager after processing time
How to prevent it happening again
- Keep the partner ID in one place, such as a tag manager variable
- Never copy tag code from another client's site without changing the ID
- Use a different tag setup for staging, or block it from sending data
- Record the correct ID in your project documentation
- Re-check after theme changes, migrations and tag manager publishes
Wrong partner ID
- Tag fires but reports to another account
- Campaign Manager shows zero conversions
- Retargeting audiences stay empty
Correct partner ID
- Visits and conversions reach your account
- Conversion reporting matches real leads
- Audiences build and campaigns can optimise
How FunnelGuard handles this
FunnelGuard detects this issue today. A robot visitor runs your real customer journey on a schedule, and the tag ID check reads the LinkedIn partner ID in the tracking hits sent along the way. It compares that ID with the one expected for your site and flags a mismatch.
A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. The Free plan covers 1 site and 2 journeys with daily checks and no card. A free read-only website audit is also available.
Questions people ask
Why is my LinkedIn Insight Tag not tracking conversions?
One common reason is a wrong partner ID, so events go to a different account. Compare the _linkedin_partner_id in your page source with the ID in Campaign Manager under Analyze > Insight tag. Other causes include a missing tag or a conversion rule that does not match your thank-you page.
Where do I find my LinkedIn partner ID?
Open LinkedIn Campaign Manager, select your account, then go to Analyze > Insight tag. The tag details show your partner ID, a numeric value, along with the install code.
How do I check which partner ID my website is using?
View the page source and search for _linkedin_partner_id. You can also open the browser Network tab, filter for px.ads.linkedin.com and read the pid= value in the request.
Can I have two LinkedIn partner IDs on one site?
Yes, the tag supports several IDs, for example an agency and a client. But if one is there by mistake, it sends your visitors to an account you do not control, so remove any ID you do not recognise.
How do I change the LinkedIn partner ID in Google Tag Manager?
Open the LinkedIn Insight Tag in Tags, edit the Partner ID field (or the ID inside a Custom HTML tag), preview to confirm it fires, then publish a new container version.
Will fixing the partner ID restore my past conversions?
No. Data sent to the wrong ID is not moved to your account. The fix applies from the moment it goes live, so correct it quickly.
How does FunnelGuard detect a wrong LinkedIn partner ID?
It runs your journey as a robot visitor and reads the partner ID in the LinkedIn tracking hit. It compares the ID with the expected one and alerts you after a re-check from a second region.