Where to add pixel for specific events

  • Posts: 47
  • Thank you received: 6
  • Hikashop Business
4 hours 11 minutes ago #369666

-- HikaShop version -- : 5.1.6
-- Joomla version -- : 5.3.1
-- PHP version -- : 8.2
-- Browser(s) name and version -- : firefox

Hello,

I would like to add a Meta pixel on my website. I have already added the base pixel and would like to know where to add the "view content", "add to cart" and "intiiated checkout" scripts. I am seeing that it needs to be added to the view files in display, but i'm not sure which view file is the correct one for each event. Also, I'm wondering where in the file to add it in order not to mess up with the php code.

Thank you!

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

  • Posts: 84804
  • Thank you received: 13806
  • MODERATOR
28 minutes ago #369671

Hi,

In case you don't know, please note that there is an extension which already exists for this:
joomlamax.com/joomla-extensions/hikashop...-meta-pixel-tracking
With it, no need to add any code anywhere and it already track the different events you want to track.

For only 29€, I would say it's a no brainer compared to loosing hours fiddling with the different view files and code to integrate it manually on your end.

Now, regarding which view is used where, you can use the "Display view files" setting of the HikaShop configuration:
www.hikashop.com/support/documentation/5...config.html#advanced

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

Time to create page: 0.053 seconds
Powered by Kunena Forum