Facebook Pixel, best practice?

  • Posts: 14
  • Thank you received: 0
2 years 1 month ago #339995

-- HikaShop version -- : 4.4.5

Hello Nicolas,

We have added FB Pixel to our shop, and it works fine with the standard event PageView. But how can we track other events like "AddToCart", "Purchase", "ViewContent" etc.? Is there a plugin which can add this functionality?

Thank you in advance.

PS: There is an official FB plugin. Unfortunately it only supports the J2Store shopping cart plugin. Maybe this could be altered to support HikaShop ... :)

Last edit: 2 years 1 month ago by jerndorff.

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

  • Posts: 81515
  • Thank you received: 13068
  • MODERATOR
2 years 1 month ago #339997

Hi,

Well, different events will requier different implementations.

For the add to cart, the cart.updated event can be used in your custom javascript code so that you can then run FB's javascript code to register the event:
www.hikashop.com/support/documentation/6...ocumentation.html#js
You'll probably want to add your js code in the product / show_default view file, via the menu Display>Views.
For the "view content", supposing that we're talking about view of a product details page, then it would be at the same place.

For the purchase, you can add your javascript in the checkout / after_end view file.

There is no one plugin already developed which can handle all that for you as far as I know.

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

  • Posts: 14
  • Thank you received: 0
2 years 1 month ago #340011

Hi Nicolas,

Thank you for your reply and guidance. What a shame that there is no plugin.

Best regards,
Michael

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

  • Posts: 129
  • Thank you received: 3
1 year 6 months ago #345514

Joomla Developer | contact [at] yool.ir
The following user(s) said Thank You: nicolas

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

  • Posts: 278
  • Thank you received: 14
  • Hikashop Business
9 months 3 weeks ago #352736

aminweb wrote: i used this. functionally.
extensions.joomla.org/extension/extensio...meta-pixel-tracking/

Not suporting php 8.

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

  • Posts: 3
  • Thank you received: 3
9 months 3 weeks ago #352741

hi,
We just updated to version 1.0.4.
php8 is also supported in this version.
extensions.joomla.org/extension/extensio...meta-pixel-tracking/


Joomla & Hikashop Dev - my.senioriz.com or joomlamax.com
The following user(s) said Thank You: nicolas

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

Time to create page: 0.094 seconds
Powered by Kunena Forum