Expand my Community achievements bar.

SOLVED

LinkedIn conversion pixel not working

Avatar

Level 4

Dear All,

LinkedIn Event Snippet that we prepared here:

priyankagupta20_0-1684990437755.png

 

(LinkedIn Conversion - Form Submit Event Snippet)

When someone submits one of the forms:

Track action events like button click, the code below needs to be installed to load when that button is clicked. View the help guide to learn how to use event snippet.

window.lintrk('track', { conversion_id: 12273165 });

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @priyankagupta20 ,

It seems there is something in the website that is blocking our code which you don't have control of(that code used to block third-party scripts). To confirm the same, you have to disable this for now.

Please paste the same code under the Action “Adobe Analytics – Set Variables à Custom code”,
it would works.
If not possible then I would recommend below 2 steps.
   1. For page load rules, try changing the event for the rule to page top or page bottom.
   2. For submit or clicks, try using the Adobe Analytics extension's Set Variables and add the desired custom code there.

View solution in original post

4 Replies

Avatar

Community Advisor and Adobe Champion

Are you adding LinkedIn PV code on all pages, then triggering this conversion? Or are you only tracking the conversion, and therefore have to initialize the LinkedIn Pixel during the click event??

 

 

In my code, on my page load, I use the following:

_linkedin_partner_id = _satellite.getVar('LinkedInPixelID');
window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
window._linkedin_data_partner_ids.push(_linkedin_partner_id);

(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);

 

This initializes the code and tracks the page view events.

 

Then, on my conversion, when I trigger

window.lintrk('track', { conversion_id: 1234567});

 

The lintrk object is there and ready to process the conversion.

Avatar

Community Advisor and Adobe Champion

Would you be willing to share a link to your site and where the pixels should be triggered so that we can see if there are any errors that would help us see the problem? Even sharing a link in Private Message if you don't want the link available publicly.

Avatar

Correct answer by
Community Advisor

Hi @priyankagupta20 ,

It seems there is something in the website that is blocking our code which you don't have control of(that code used to block third-party scripts). To confirm the same, you have to disable this for now.

Please paste the same code under the Action “Adobe Analytics – Set Variables à Custom code”,
it would works.
If not possible then I would recommend below 2 steps.
   1. For page load rules, try changing the event for the rule to page top or page bottom.
   2. For submit or clicks, try using the Adobe Analytics extension's Set Variables and add the desired custom code there.