Facebook pixel integration

  • Posts: 33
  • Thank you received: 3
  • Hikashop Business
7 months 3 weeks ago #354883

Hi, do you have a simple ready solution to add dynamicly facebook events codes like that?


fbq('track', 'ViewContent', {
content_ids: , // 'REQUIRED': array of product IDs
content_type: 'product', // RECOMMENDED: Either product or product_group based on the content_ids or contents being passed.
});

fbq('track', 'Purchase', {
content_ids: , // 'REQUIRED': array of product IDs
value: 1234.99, // REQUIRED, up to 2 decimals optional
currency: 'USD', // REQUIRED
content_type: 'product', // RECOMMENDED: Either product or product_group based on the content_ids or contents being passed.
});

fbq('track', 'AddToCart', {
content_ids: , // 'REQUIRED': array of product IDs
content_type: 'product', // RECOMMENDED: Either product or product_group based on the content_ids or contents being passed.
});

Please Log in or Create an account to join the conversation.

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
7 months 3 weeks ago #354890

Hi,

There is no ready made solution. You need to manually add the code in the corresponding view file.
Here is a thread where someone added it for the "purchase" event:
www.hikashop.com/forum/product-category-...ok-pixel.html#305851
It will require some coding skills to be able to do it.

Please Log in or Create an account to join the conversation.

  • Posts: 129
  • Thank you received: 3
2 months 1 week ago #359313

Joomla Developer | contact [at] yool.ir
Last edit: 2 months 1 week ago by aminweb.
The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

Time to create page: 0.049 seconds
Powered by Kunena Forum