Facebook pixel does not work

Hi!

I have a problem with getting the facebook pixel to work. Do you know something about that?

I have placed this code inside the head-tag:

<!-- 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', '210157819553328');
  fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
  src="https://www.facebook.com/tr?id=210157819553328&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->

But I got this ERROR: The Facebook pixel code on this page didn’t load, so no information was sent to Facebook.

Can you help me?

I think I just solved the problem. It did not work because I had Ad-blocker activated.

Hey there

Thank you for posting solution,
Can i close this case now?

P.s. please consider, modifying original theme files is not a good idea and you may need to consider using of the child theme. if you don’t feel yourself “comfortable” with a child theme facebook has WordPress plugin for pixel, you can download this plugin (Already configured to your pixel ID) from the Facebook pixel manager