Skip to main content

Facebook Pixel, best practice?

More
4 years 7 months ago - 4 years 7 months ago #339995 by jerndorff
-- 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: 4 years 7 months ago by jerndorff.

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

More
4 years 7 months ago #339997 by nicolas
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.

More
4 years 7 months ago #340011 by jerndorff
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.

More
4 years 1 week ago #345514 by aminweb

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.

More
3 years 3 months ago #352736 by mojweb

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.

More
3 years 3 months ago #352741 by senioriz
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 - 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.186 seconds
Powered by Kunena Forum