Information for those merchants who use Shopify.
Important! Before making any changes, please remember to back up any files you want to modify.
Paste the following code just before the closing </head> tag.
<script async="true" type="text/javascript" src="https://s.kk-resources.com/leadtag.js" ></script>
<script type="text/javascript">
_kkstrack = {
merchantInfo : [{ country:'ADD YOUR COUNTRY CODE HERE', merchantId:'ADD YOUR MERCHANT ID HERE' }],
orderValue: '{{ order.total_price | money_without_currency | replace: ',', '.' }}',
orderId: '{{ order_number }}',
basket: [
{% for line_item in line_items %}
{
productname: '{{ line_item.title }}',
productid: '{{ line_item.product_id }}',
quantity: '{{ line_item.quantity }}',
price: '{{ line_item.line_price | money_without_currency | replace: ',', '.' }}'
},
{% endfor %}
]
};
(function() {
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = 'https://s.kk-resources.com/ks.js';
var x = document.getElementsByTagName('script')[0];
x.parentNode.insertBefore(s, x);
})();
</script>
Important! Check regularly that sales are being registered. This is extra important to do after you have implemented updates or changes to your site.
If you encounter problems, please use our contact form to send us an email. If the test order was not properly registered in your Statistics page, please attach to your email the source code of the order confirmation page as it appeared (“View”> “View Source”). Kelkoo Sales Tracking code should normally be included.