-- url of the page with the problem -- :
www.sicilia-beneteau.it
-- HikaShop version -- : 6.3.0
-- Joomla version -- : 6.0.3
-- PHP version -- : 8.4.16
-- Browser(s) name and version -- : Google Chrome 145.0.7632.117
Hi,
I followed the instructions on how to install the Meta Pixel. On all pages, the script is inserted:
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1942042939703170');
fbq('track', 'PageView');
</script>
Now it is required to insert it on the product page (show_default):
fbq('track', 'AddToCart');
And on the order confirmation page (end):
fbq('track', 'Purchase’);
Could you please provide me with the correct code to insert into these two pages with the two specific events, “AddToCart” and “Purchase”?
Thank you for your support.