Contact Us
- Post a Public Question
- Email Us
-
- Click here for live support
- Call us at 1-800-799-9304
How do I setup your conversion tracking with Shopify?
Hey Robb,
You’ll need to add our revenue code (an extra bit of js) to the “Additional Content & Scripts” box on the Checkout & Payment settings page. Here’s the code:
<script type="text/javascript"> _springMetq.push(["setdata", {revenue: "REVENUE_VALUE_HERE"}]); </script>I’m not sure what Shopify’s revenue variable is, but after searching online for a little while, it looks like it might be total_price or subtotal_price. Give those a try in place of REVENUE_VALUE_HERE.
Also, the revenue code will need to be placed ABOVE the regular Spring Metrics tracking code in the Additional Content & Scripts box.
Just putting this out here for everyone: http://wiki.shopify.com/Conversion_Tracking
That article confirms what I suspected. You can put the Spring Metrics tracking code (and revenue code) in the Additional Content & Scripts box.
Thanks to Matthew for finding this article!
One more thing about setting up your site with Shopify: your conversion page will have a variable string on the URL for each customer, like this: https://checkout.shopify.com/orders/n3b42ireufwg9bf97rbwy
You will need a wildcard for that string. Contact me at support@springmetrics.com to let me know you need this and I will set it up for you. If you try to do it, it will NOT work because of the way our database is engineered.