跳至内容
菜单
此问题已终结
2 回复
3221 查看

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...


形象
丢弃
最佳答案

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



形象
丢弃
编写者 最佳答案

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 "&")

形象
丢弃
相关帖文 回复 查看 活动
2
6月 24
12087
1
6月 23
2722
1
9月 20
5589
0
3月 23
1767
2
3月 24
44381