Shopify
 
This integration method enables you to track sales. It is set through Shopify admin panel. You do not need to edit any templates.
 
LEAD Code Integration 1 Login and navigation
Login to your admin panel. Go to Preferences> Checkout & Payment. Scroll down to Additional Content & Scripts
LEAD Code Integration 2 Code
Shopify allows you to use these variables:
  • {{total_price|money_without_currency}}
  • {{subtotal_price|money_without_currency}}
  • {{order_number}}
For additional variables please contact Shopify support.

So the tracking code to track total cost and order ID is this:
Javascript Code
 OR
Image Code
 
Please take care to replace <?=$orderId?> and <?=$orderAmount?> in the sale code with your server side script notations for the orderid and total amount variable used in your website.
And now just save it and you are ready to track the sales now.