Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
12592 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
giu 23
2961
1
set 20
5850
0
mar 23
2000
2
set 25
6216
2
lug 25
3338