Expand my Community achievements bar.

LinkedIn conversion pixel not working

Avatar

Level 2

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 Reply

Avatar

Community Advisor

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.