Streaming live at 10am (PST)

Content not being displayed after facebook pixel script was added


#1

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:



<img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=449311941926383&ev=PageView&noscript=1"
/>


https://preview.webflow.com/preview/las-catalinas-rentals?preview=d32c49bfd5a41e661c9600deafc1e21a


#2

Images cannot go in the page head.


#3

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


#6

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


#7

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

#8

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


#9

Hi @samliew this works? let me know.


#10

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


#11

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

<img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=449311941926383&ev=PageView&noscript=1"
/>

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


#12

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!


#13

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