The order tracking tag allows you to retrieve information about the orders made on your site and to see the differences between the purchases of community members and non-members.
Guidelines
- The tag should only be installed on the order confirmation page, before the </body> tag.
- Be sure to replace each variable with :
The order number ('ORDERNUMBER') which must be defined in quotes and must be unique for each order.
The order value variable (ORDERVALUE) which must be a number only, please do not include the currency symbol
👉 Remember to replace the subdomain community.mywebsite.com with the one you want
Insert the JS tag
window.toky_order = {'num': 'ORDERNUMBER', 'value': ORDERVALUE};
(function () {
var toky = document.createElement('script');
toky.type = 'text/javascript';
toky.async = true;
toky.src = 'https://community.mywebsite.com/webview/embed.js';
(document.getElementsByTagName('head')[0] ||
document.getElementsByTagName('body')[0]).appendChild(toky);
})();