SupaDupa now supports conversion tracking with your Thank You page - a page the user is shown once an order has been placed. This allows you to use the order conversion tracking code provided by a range of providers such as Facebook or AdRoll.
Each time an order is placed, and thus a conversion is tracked, you’ll want to notify the third-party provider of certain values which are unique to the order, such as the currency, and the order total amount. To account for this, the following value placeholders are provided, in the form of Liquid variables, which can be used in your code snippet, and replaced with the actual values when the code snippet is loading within your Thank You page
These values are:
{{ order.total }}
{{ order.shipping_total }}
{{ order.goods_total }}
{{ order.items_count }}
{{ order.currency }}
{{ order.number }}
The code snippet can be entered into your Shop Settings within the SupaDupa Admin, and makes use of the Liquid templating system to allow you to make use of the dynamic values, particular to each order.
In this example, we use Facebook, who provides a snippet like the following:
The first step is to obtain your tracking conversion code snippet from the third party service you are using, or in this case Facebook.
The conversion code is used to inform Facebook of each sale. With each notification to Facebook, you want to be able to send the value and currency of each particular order. You’ll see in the code snippet above, that the ‘value’ is set to 0.00, and the curreny to ‘AUD’. We want these values to match the actual values for the current order. The SupaDupa platform provides three values which can be used as placeholders, and will be swapped in for the real values when the user is on the Thank You page, after having made a purchase. The values are noted above, and are: {{ order.total }} and {{ order.currency }}.
With the code snippet updated, now enter this into the ‘Order conversion code’ section of the Shop Settings - being sure to save your changes.
Once saved, the code snippet will automatically be inserted into the Thank You page when an order completes a purchase.
Please note: If you would like to include your Google Adwords tracking code do not follow these steps listed in this article, instead please read: Adding Google AdWords Conversion Tracking