Content not being displayed after facebook pixel script was added

Hi, I just added the following script the head, published the site and now no content is displayed. Could anyone take a look, please?

Here is the pixel:

---------- https://preview.webflow.com/preview/las-catalinas-rentals?preview=d32c49bfd5a41e661c9600deafc1e21a [1]: http:// [2]: https://help.webflow.com/article/how-do-i-share-my-sites-read-only-link

Images cannot go in the page head.

Hi, I have another facebook pixel code in another page and it’s working perfectly. Any other suggestion?

I don’t know why when I paste the whole script, only the img code appears.

Here you go :slight_smile:

<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','https://connect.facebook.net/en_US/fbevents.js');

fbq('init', '449311941926383');

fbq('track', 'PageView');

</script>

<noscript><img height="1" width="1" style="display:none"

src="https://www.facebook.com/tr?id=449311941926383&ev=PageView&noscript=1"

/></noscript>

<!-- End Facebook Pixel Code ->

The script is broken. Please copy the script from Facebook exactly as it is without modifications.

Hi @samliew this works? let me know.

No, pixelgeek was just trying to format your code, which I mentioned is invalid. Go copy the code again from Facebook.

I already tried and when I paste it here, it shows only this:

Here is screen shot of what I have right now and the preview link of the site. https://preview.webflow.com/preview/las-catalinas-rentals?preview=d32c49bfd5a41e661c9600deafc1e21a ![|690x398](upload://qQAxpgEovPVYEAfFfSEXJyuiuVM.png)

Please provide a screenshot of where you are copying the code from.

You need to re-copy everything including the start and end comment from Facebook, paste into the footer code of the project, then republish.

DO NOT insert or modify anything!

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