Problems installing Facebook Pixl
Posted: Sun Apr 28, 2019 9:51 am
I have been trying to install Facebook Pixel but not succeeding and I need help please.
When I add it to the template right above the </head> part where they say to add it (first screenshot), I get a syntax error when I try to save the template (second screenshot)
I don't know how to fix this and I have tried contacting FB but they are not responding, so I would appreciate it greatly if someone could lend assistance, thank you in advance!
I copy and paste the code directly form the facebook pixel install page...
This is it:
<!-- 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',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1503549823290444');
fbq('track', 'PageView');
</__script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=15035498 ... noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
When I add it to the template right above the </head> part where they say to add it (first screenshot), I get a syntax error when I try to save the template (second screenshot)
I don't know how to fix this and I have tried contacting FB but they are not responding, so I would appreciate it greatly if someone could lend assistance, thank you in advance!
I copy and paste the code directly form the facebook pixel install page...
This is it:
<!-- 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',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1503549823290444');
fbq('track', 'PageView');
</__script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=15035498 ... noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->