[Skip to main content](#vessel-content)

#   Facebook Pixel, best practice?

##

- **[jerndorff](/forum/user/25289-jerndorff "View jerndorff's Profile")**
- [![jerndorff's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/25289-jerndorff "View jerndorff's Profile") Topic Author
- [ Offline](/forum/user/25289-jerndorff)

Less More

- Posts: 14
- Thank you received: 0
-

4 years 7 months ago -  4 years 7 months ago [\#339995](#339995) by [jerndorff](/forum/user/25289-jerndorff "View jerndorff's Profile")  *[Facebook Pixel, best practice?](/forum/30-integrations/904087-facebook-pixel-best-practice#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 &quot;AddToCart&quot;, &quot;Purchase&quot;, &quot;ViewContent&quot; 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 ... :)")* was created by *[jerndorff](/forum/user/25289-jerndorff "View jerndorff's Profile")*

-- 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 ... ![:)](/media/kunena/emoticons/8.png ":)")

Last edit: 4 years 7 months ago by [jerndorff](/forum/user/25289-jerndorff "View jerndorff's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDQwODctZmFjZWJvb2stcGl4ZWwtYmVzdC1wcmFjdGljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14276
-
-

4 years 7 months ago [\#339997](#339997) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Facebook Pixel, best practice?](/forum/30-integrations/904087-facebook-pixel-best-practice#339997 "-- 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 &quot;AddToCart&quot;, &quot;Purchase&quot;, &quot;ViewContent&quot; 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 ... :)")*

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](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#js)
You'll probably want to add your js code in the product / show_default view file, via the menu Display&gt;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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDQwODctZmFjZWJvb2stcGl4ZWwtYmVzdC1wcmFjdGljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jerndorff](/forum/user/25289-jerndorff "View jerndorff's Profile")**
- [![jerndorff's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/25289-jerndorff "View jerndorff's Profile") Topic Author
- [ Offline](/forum/user/25289-jerndorff)

Less More

- Posts: 14
- Thank you received: 0
-

4 years 7 months ago [\#340011](#340011) by [jerndorff](/forum/user/25289-jerndorff "View jerndorff's Profile")  Replied by *[jerndorff](/forum/user/25289-jerndorff "View jerndorff's Profile")* on topic *[Facebook Pixel, best practice?](/forum/30-integrations/904087-facebook-pixel-best-practice#340011 "-- 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 &quot;AddToCart&quot;, &quot;Purchase&quot;, &quot;ViewContent&quot; 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 ... :)")*

Hi Nicolas,

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

Best regards,
Michael

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDQwODctZmFjZWJvb2stcGl4ZWwtYmVzdC1wcmFjdGljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")**
- [![aminweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar38602.png)](/forum/user/38602-aminweb "View aminweb's Profile")
- [ Offline](/forum/user/38602-aminweb)
- Amin

Less More

- Posts: 138
- Thank you received: 4
-
-
-

4 years 3 weeks ago [\#345514](#345514) by [aminweb](/forum/user/38602-aminweb "View aminweb's Profile")  Replied by *[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")* on topic *[Facebook Pixel, best practice?](/forum/30-integrations/904087-facebook-pixel-best-practice#345514 "-- 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 &quot;AddToCart&quot;, &quot;Purchase&quot;, &quot;ViewContent&quot; 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 ... :)")*

i used this. functionally.
[ extensions.joomla.org/extension/extensio...meta-pixel-tracking/](https://extensions.joomla.org/extension/extension-specific/hikashop-extensions/hikashop-facebook-meta-pixel-tracking/)

---

Joomla Developer \| am.ebrahimzadeh\[at\]gmail.com

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDQwODctZmFjZWJvb2stcGl4ZWwtYmVzdC1wcmFjdGljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile")
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 431
- Thank you received: 22
-

3 years 4 months ago [\#352736](#352736) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Facebook Pixel, best practice?](/forum/30-integrations/904087-facebook-pixel-best-practice#352736 "-- 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 &quot;AddToCart&quot;, &quot;Purchase&quot;, &quot;ViewContent&quot; 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 ... :)")*

> aminweb wrote: i used this. functionally.
> [ extensions.joomla.org/extension/extensio...meta-pixel-tracking/](https://extensions.joomla.org/extension/extension-specific/hikashop-extensions/hikashop-facebook-meta-pixel-tracking/)

Not suporting php 8.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDQwODctZmFjZWJvb2stcGl4ZWwtYmVzdC1wcmFjdGljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[senioriz](/forum/user/68695-senioriz "View senioriz's Profile")**
- [![senioriz's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/68695-senioriz "View senioriz's Profile")
- [ Offline](/forum/user/68695-senioriz)

Less More

- Posts: 9
- Thank you received: 8
- [](https://joomlamax.com)
-

3 years 4 months ago [\#352741](#352741) by [senioriz](/forum/user/68695-senioriz "View senioriz's Profile")  Replied by *[senioriz](/forum/user/68695-senioriz "View senioriz's Profile")* on topic *[Facebook Pixel, best practice?](/forum/30-integrations/904087-facebook-pixel-best-practice#352741 "-- 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 &quot;AddToCart&quot;, &quot;Purchase&quot;, &quot;ViewContent&quot; 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 ... :)")*

hi,
We just updated to version 1.0.4.
php8 is also supported in this version.
[ extensions.joomla.org/extension/extensio...meta-pixel-tracking/](https://extensions.joomla.org/extension/extension-specific/hikashop-extensions/hikashop-facebook-meta-pixel-tracking/)

---

Joomla &amp; Hikashop Dev - [ JoomlaMax.com](https://JoomlaMax.com)

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDQwODctZmFjZWJvb2stcGl4ZWwtYmVzdC1wcmFjdGljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.141 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
