Site logo

Archived topic

Facebook pixel in header

9 replies · Started by Umad on December 16, 2017

Viewing posts 1–10 of 10

Hello tom and leo i want facebook pixel in header will you please guide me ???

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

This is the code where i have to put this ???
http://prntscr.com/hoftv8 Please check screenshot.
I that thread tom is saying to go for wp_footer ??

And which checkbox i have to tick please check screenshot sir

Should be in the wp_head hook. No checkbox is required.

Done but i know that code is working properly or not ???
I am using Facebook Pixel Helper Chrome extension but its not showing anything ???

I'm not familiar with Facebook pixel or the chrome extension you are referring to.

If the code is added according to their instruction then it should work. If you are unsure then it's best to check with their support.

ok Thanks Leo i will

No problem!

Let me know how it goes if you don't mind so I can help the next user better :)

Thanks!

Sure i will definitely let you know

This archived topic is closed to new replies.