İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
3211 Görünümler

Working in v15 I have added the pixel code in the header via customisation of css/html > "Web layout".


My code (id removed) is as below :

This is as per meta, but with & used to replace &


               

  !function(f,b,e,v,n,t,s)

  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?

  n.callMethod.apply(n,arguments):n.queue.push(arguments)};

  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';

  n.queue=[];t=b.createElement(e);t.async=!0;

  t.src=v;s=b.getElementsByTagName(e)[0];

  s.parentNode.insertBefore(t,s)}(window, document,'script',

  'https://www.facebook.com/tr?id={1025579177541208}&ev=PageView&noscript=1" loading="lazy"/> "


(actually inside inverted commas)..  so seems to be deactivated. 


Does anyone know how to markup the so that it works? 

Do you keep it in a

Any help appreciated...


Avatar
Vazgeç
En İyi Yanıt

Hi James,

If you want to add the Facebook Pixel script to your Odoo website manually, you can do it through website settings:

  1. Activate the Developer Mode in your system.
  2. Go to Website — Configuration — Websites and choose a required one.
  3. On the Custom Code tab, insert your Facebook Pixel / Meta Pixel script code.


If you want to have a more flexible Facebook Pixel implementation on your Odoo website, consider using this free module Odoo Facebook Pixel Integration.

It allows you to integrate the pixel script easily (just installing the app), and extend the Facebook Pixel integration further with additional apps for tracking Facebook Events for e-commerce, and sending them via Facebook Conversions API.


Best regards, Yurii Razumovskyi.


Company Garazd CreationOdoo solutions for e-Commerce, SEO, Data Feeds, Website Tracking, Marketing and Analytics integrations, Product Label designing and printing.

https://garazd.biz



Avatar
Vazgeç
Üretici En İyi Yanıt

Perfect... Many thanks!

(and for anyone else doing it manually, if done via the custom code tab as suggested here you do NOT need to change the native pixel code. (The "&" can be left as "&")

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Haz 24
12067
1
Haz 23
2709
1
Eyl 20
5576
0
Mar 23
1760
2
Mar 24
44345