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!
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024