I have installed the FB pixel helper browser plugin and I am confident that the FB pixel is properly implemented, as it is tracking pageviews correctly. However, I am facing an issue where the code for reporting a custom event is not working, even though the console log shows that it is firing when I click the element on my page. The element in question is a banner related to an affiliate program. Can anyone provide assistance?
jQuery( "#affbanner" ).click(function(linkclick) {
console.log("reportCustomEvent rdy");
fbq('track', 'ViewContent', {
content_name: 'Affiliate Site',
content_category: 'main > sub',
content_ids: ['1234'],
content_type: 'product',
value: 0.50,
currency: 'USD'
});
console.log("onclick fired");
});