• Stop being a LURKER - join our dealer community and get involved. Sign up and start a conversation.

Reply to thread

You need to fire off the viewContent event. Where content_ids on SRP is an array of all the stock numbers and on VDP it just the stock id. (Assuming stock ids is your id for the item in catalog)


https://developers.facebook.com/docs/facebook-pixel/api-reference#events


The pixel api will also read microdata from Schema.org or OpenGraph.


Manual event route.

#VDP

try {

fbq('track', 'ViewContent', {

content_name: '2011 Buick LaCrosse CXS',

content_category: 'Vehicles & Parts > Vehicles > Motor Vehicles',

content_ids: ['4681041'],

content_type: 'product'

});

} catch(e) {

console.log(e);

}


#SRP

try {

fbq('track', 'ViewContent', {

content_ids: ['4681041','4681042','4681121'],

content_type: 'product'

});

} catch(e) {

console.log(e);

}


For debugging.

https://chrome.google.com/webstore/detail/facebook-pixel-helper/fdgfkebogiimcoedlicjlajpkdmockpc?hl=en