Wait, i think i really need help. I set up my facebook pixels yesterday in which my goal is only to track PURCHASES.
I got charged but there are no purchases at all on my side. Is this normal?
View attachment 78360
Can someone check if i placed my code in the right place or if my codes are wrong?
Note: For the purpose of this post, i changed my real facebook ID to FB ID.
1. I put this under theme.liquid just above </head>
<!-- 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', 'FB ID');
fbq('track', "PageView");</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=FB ID&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
2. I put this code under Settings > Checkout > Additional Contents and Scripts
<!-- 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', 'FB ID');
fbq('track', "PageView");
fbq('track', 'Purchase', {value: '{{ subtotal_price | money_without_currency }}', currency: 'USD'});</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=FB ID&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
Did i do the right thing? Am i supposed to use the fbq for Page View if i don't want to track page views?
Someone please help.