Skip to Content
Menu
This question has been flagged
2 Replies
2893 Views

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
Discard
Best Answer

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
Discard
Author Best Answer

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
Discard
Related Posts Replies Views Activity
2
Jun 24
11742
1
Jun 23
2491
1
Sep 20
5375
0
Mar 23
1559
2
Mar 24
43554