Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
3203 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Autor Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
jun 24
12064
1
jun 23
2705
1
sept 20
5573
0
mar 23
1756
2
mar 24
44338