Personalized checkout and custom promotions with Shopify Scripts
I am trying to add purchase conversions when a customer gets to the order confirmation screen to feed to my Facebook pixels.
I am very incompetent when it comes to this - but I found this FB article calling out the script to put on the confirmation page.
https://developers.facebook.com/docs/meta-pixel/implementation/conversion-tracking
<body>
...
<script>
fbq('track', 'Purchase', {currency: "USD", value: 30.00});
</script>
...
</body>
I assume I change value to 0.00 from 30.00 - but I continue to get errors.
First error reads: Expected an identifier and instead say '<'.
Second error reads: Expected an identifier and instead saw '...'. Unrecoverable syntax error (66% scanned)
Just trying to track conversions and really could use some support! Pixels are installed everywhere else on the site and working properly.. just can't figure this out.
Thanks in advance!
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025