How to Track Revenue via Shopify
-
Log in to Shopify storefront
-
Go to Settings in bottom-left corner
-
Click on Checkout
-
Scroll down to the Order Processing section - > Additional Scripts
-
Paste static pixel at the bottom of the Additional Scripts section:
Example:
<img height="1" width="1" style="border-style:none;" alt="" src="https://insight.adsrvr.org/track/pxl/?adv=fojgywn&ct=0:whi1ojg&fmt=3&v=&vf=&orderid="/>
The code in bold is a standard static pixel; this will be unique to the advertiser, so the campaign manager on the account will provide this. The code that is italicized is the revenue tracking macros specific to Shopify that need to be added to the static pixel.For Shopify sites, the revenue macro will be either one of the two options below. Please consult with the web developer to confirm which is the appropriate revenue macro to use:
- Shopify.checkout.subtotal_price
- event.data?.checkout?.totalPrice?.amount
Here is a helpful Shopify article.