Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
12296 Zobrazení

Hi ! 

I would like to include the facebook pixel in the header of my website, how should i do that ? The code of the Facebook pixel is in JS but the code of the website is in HTML.  

Thank you

Avatar
Zrušit
Nejlepší odpověď

Hi, Pierre.

To add the Facebook Pixel script to website pages, you should inherit the template "web.layout" in the following way:

 
Do not forget to replace the example code '0123456789' with your Facebook Pixel ID.

Also, you can use our Odoo modules that allow you to add the Facebook Pixel script and activate eCommerce Pixel Events on the related pages: Contact Us, Sign In, Category and Product webpages, Cart, Checkout Step pages, Confirmation, or custom webpages.

To integrate the base Facebook Pixel script (with the event "PageView") to your Odoo website, you can use this free module:
https://apps.odoo.com/apps/modules/16.0/website_facebook_pixel/

Tracking of the eCommerce Facebook Pixel events, such as "ViewContent", "Search", "AddToCart", "InitiateCheckout", "AddPaymentInfo", and "Purchase" on your Odoo website, is available with this app:
https://www.odoo.com/apps/modules/16.0/website_sale_facebook_pixel/

For full Facebook Pixel integration features, consider the using of the Odoo modules "Instagram and Facebook Catalog Product Data Feed" and "Facebook Instagram Catalog Professional", that allows providing your product data in convenient and easy way on the professional level.


If you have questions, please, do not hesitate to contact us by leaving the question on https://garazd.biz/contactus or writing to us by e-mail:

support@garazd.biz.
                
Avatar
Zrušit
Nejlepší odpověď

Hello,


I have the same problem. The solution I found is to use google tag manager using this solution https://www.odoo.com/fr_FR/forum/aide-1/question/how-to-implement-google-tag-manager-90989 

After, it's possible to add the pixel code using the tag manager. 

I don't have an easier solution for te moment.

Best regards,

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvn 23
2814
1
zář 20
5695
0
bře 23
1861
2
led 25
2835
2
čvc 25
3083