Facebook pixel integration

  • Posts: 36
  • Thank you received: 5
  • Hikashop Business
1 year 2 months 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: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 2 months 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: 138
  • Thank you received: 4
8 months 4 weeks ago #359313

Joomla Developer | am.ebrahimzadeh[at]gmail.com
Last edit: 8 months 4 weeks 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.067 seconds
Powered by Kunena Forum