Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
12328 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.
                
Awatar
Odrzuć
Najlepsza odpowiedź

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,

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
cze 23
2827
1
wrz 20
5707
0
mar 23
1868
2
sty 25
2996
2
lip 25
3111