Skip to content
FunnelGuard

Fix guide by FunnelsGuard

LinkedIn Insight Tag wrong partner ID: how to find and fix it

TRK-209High impactDetectedBy FunnelGuardPublished Updated
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.

Standard Insight Tag setup (replace 1234567 with your own ID)html
<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.

Where a wrong partner ID breaks the chain
  1. Ad clickVisitor arrives from LinkedIn
  2. Insight Tag loadsFires with the wrong partner ID
  3. Conversion eventSent to the wrong account
  4. Campaign ManagerShows no conversions

The page loads and the tag fires, but the data goes to the wrong account.

Conversions reported in Campaign ManagerExample numbers
Conversions reported in Campaign Manager (example)Wrong ID: 0 conversions; Correct ID: 40 conversions01531040Wrong IDCorrect IDconversions

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

Compare the ID on your site with your account
  1. 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.

  2. 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.

  3. Check the network request

    Open browser developer tools, go to the Network tab, reload and filter for px.ads.linkedin.com. The request includes pid= followed by the ID being sent.

  4. 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

Replace the partner ID where your tag lives
  1. Open the LinkedIn tag

    In Tags, open the LinkedIn Insight Tag (or the Custom HTML tag holding the script).

  2. Correct the ID

    Paste the right partner ID into the Partner ID field, or edit _linkedin_partner_id in the HTML.

  3. Preview and publish

    Use Preview mode to confirm the tag fires, then Submit to publish a new version.

How to confirm it's fixed

Confirmation checks
  • 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

Habits that stop the ID drifting
  • 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
Before and after the fix

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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: tag_ids.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.