Streaming live at 10am (PST)

Facebook Pixel Code Not working


#1

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: https://preview.webflow.com/preview/elite-dental?preview=dd38ddeae90da5c2525bb5052accaa68
(how to access public share link)


#2

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

https://www.facebook.com/business/help/952192354843755?helpref=faq_content#addbasecode


#3

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!


#4

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