FB Pixel Not Tracking Purchases

Highlighted
New Member
1 0 0

Hello, 
I have launched my FB Ad Campaign. I have installed the pixel manually into my theme.liquid just above the end of (/head) as we are supposed to.

The pixel is firing and tracking all standard event EXCEPT Purchases. I have received 4 purchases on my site, and the pixel did not catch these events. So, I did research and found out that I must ad this piece of code:

<script>
fbq('track', 'Purchase', {
value: 1,
currency: 'USD',
});
</script>

into my Shopify Admin>Checkout>Additional Scripts tab along with my base pixel code just above it like so: 

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

Now that I have done this my FB Event Manager is showing purchases in the Overview Tab BUT with an ERROR: 

"Diagnostic Issues Found
Diagnostics issues may impact your ability to measure and optimize for Purchase events.
Missing Purchase Currency and Value Parameters"
 
I have added the Purchase Currency and Value Parameters just before and it still does not work.... I am out of options and ideas. Can someone please help me?
Also: I cannot use ( Set Up Facebook ) button in my Shopify Preferences for personal reasons. I have to do this manually. 
0 Likes