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

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
čvn 24
12064
1
čvn 23
2705
1
zář 20
5573
0
bře 23
1756
2
bře 24
44338