How to track purchase value in FB Ads (for Shopify)?
- Alex Denshik
- Mar 29, 2021
- 1 min read
What you need:
FB Pixel code must be installed on your site (see "How to create an FB Pixel" or “How to add FB Pixel code using GTM”)
Access to the Shopify admin panel with admin rights
Steps:
Step 1: Log in to the admin panel of your Shopify site (https://www.shopify.com/). Go to the section "Settings" -> "Checkout
Step 2: In the "Order processing" section, find the "Additional scripts" field.
Step 3: Paste the following code there:
<script>
fbq('track', 'Purchase', {
value: {{ total_price | money_without_currency }},
currency: 'USD',
});
</script>
Save. Done.
Note: If you are using a different currency, replace USD in the code with the desired currency code
See Screenshots:
Step 1: Log in to the admin panel of your Shopify site (https://www.shopify.com/). Go to the section "Settings" -> "Checkout

Step 2: In the "Order processing" section, find the "Additional scripts" field.
Step 3: Paste the following code there:
<script>
fbq('track', 'Purchase', {
value: {{ total_price | money_without_currency }},
currency: 'USD',
});
</script>
Save. Done.
Note: If you are using a different currency, replace USD in the code with the desired currency code

Comments