This feature is used for specifically tracking your online shop checkout success page so that you can measure your advertising campaigns that lead to purchases. Google Adwords and Facebook tracking success codes are the most popular types of conversion tracking used in conjunction with their paid advertising services.
If you don't have a tracking code already, you'll need to sort this first within your Adwords or Facebook account. Once you've chosen a company to go with, you'll be provided with a tracking code.
- Make sure you're logged into your website dashboard using your login details.
- Click on the settings cog next to Shop
- Click Store Preferences
- Go to the Checkout Success tracking code section:
- Enter your code and click Save.
Tracking your order data (Advanced)
It's possible to track aspects of the order data back to your conversion tracking script. We have a few JS variables available that you can use.
Variables available (with example data) include:
orderData.subTotal = 5.00;
orderData.shipping = 10000.00;
orderData.tax = 1305.00;
orderData.total = 10005.00;
You can then use these variables within your tracking code snippet. For example if you want to track your order value total back to AdWords you can include the following lines.
var google_conversion_value = orderData.total;
var google_conversion_currency = "NZD";
The code saved here will run on the success page of your shops' checkout. It is important that this code is error-free and does not affect the operation of your website. It is recommended that you put a test order through to check that your site still operates as expected. We don't allow tracking of order values or totals to 3rd party scripts at this stage.
If you require a different type of tracking to monitor activity across your whole site please see these guides:
Adding tracking codes to your website
Understanding event tracking in Google Analytics
Setting up Google Analytics
Checkout finish URL for Google Analytics goals