Facebook Pixel, best practice?

  • Posts: 14
  • Thank you received: 0
2 years 8 months 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 8 months ago by jerndorff.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
2 years 8 months 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 8 months 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: 138
  • Thank you received: 4
2 years 1 month ago #345514

Joomla Developer | am.ebrahimzadeh[at]gmail.com
The following user(s) said Thank You: nicolas

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

  • Posts: 317
  • Thank you received: 17
  • Hikashop Business
1 year 4 months 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
1 year 4 months 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.091 seconds
Powered by Kunena Forum