Facebook Pixel Code Not working

Here is my code:

<!-- Facebook Pixel Code -->
<script>
!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','//connect.facebook.net/en_US/fbevents.js');

fbq('init', '1495433140768750');
fbq('track', 'PageView');
</script>


<script language="JavaScript">
<!--
document.writeln("<noscript><img height=\"1\" width=\"1\" alt=\"\" style=\"display:none\" src=\"https://www.facebook.com/tr?ev=1495433140768750&amp;noscript=1\" /></noscript>");
//-->
</script>
<!-- End Facebook Pixel Code -->

I get this message: Custom code is not validated. Incorrect code may cause this published page to not render properly.

Please help. Thanks!


Here is my public share link: Webflow - Elite Dental
(how to access public share link)

It doesn’t really look like the code they show on the implementation page. Parts are missing. Maybe they’re not relevant.

https://scontent-cdg2-1.xx.fbcdn.net/t39.2365-6/11409193_1605465096376853_497323941_n.jpg

Hi @Lisa_Mo_Chin, I would also leave out this part completely:

<script language="JavaScript">
<!--
document.writeln("<noscript><img height=\"1\" width=\"1\" alt=\"\" style=\"display:none\" src=\"https://www.facebook.com/tr?ev=1495433140768750&amp;noscript=1\" /></noscript>");
//-->
</script>

I hope this helps!

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.