The storefront software has built-in support forGoogle Analytics E-commerce Tracking , but many sites will want to use other services instead. These services are often referred to as 'tracking pixels', and require store owners to insert special javascript code on the orderconfirmation.aspx page. This can easily be done with the following steps:
While the values mentioned here are named 'Google', the steps will work for almost any 3rd party tracking pixel that requires a simple code snippet on the order confirmation page. Multiple snippets may be added to the topic for different services requiring injection on the order confirmation page.
Modify the GoogleTrackingCode Topic in HTML mode (<>). Insert the code provided by your tracking system that should be inserted on the order confirmation page. This will be inserted into the code on that page automatically for each new order.
If the tracking code includes javascript, you may have to followthese steps before the script will save.
Tracking Code Tokens
The orderconfirmation page has support for 3 special 'tokens' that can be used to insert important values into your tracking code. These tokens are:
(!ORDERTOTAL!) - This will be replaced by the current order total.
(!ORDERNUMBER!) - This will be replaced by the current order number.
(!CUSTOMERID!) - This will be replaced by the current customer's ID.
For Example: If the GoogleTrackingCode topic contained this code when a customer checked out with a $125.67 total: