Tracking is only available for the Marketer+ tariff.

In the Marketer+ tariff, Ecomail allows you to track various transactions of your customers. Based on the transactions you can then segment your contacts or create automatic campaigns. Transaction tracking can be done by connecting via API or using tracking code.

For connection via API, see the documentation.

To track with a tracking code, you must have a tracking code installed.

To track your subscribers' orders (transactions) follow these steps:

1) Place an order

window.ecotrack('addTrans',
'1234', // ID of an order (integer) - mandatory
'Charles' bakery', // Name of shop
'150', // total - mandatory
'15', // tax
'10', // transport
'Prague', // city
'Prague', // district / region
'CZ' // country
);

2) Add items to the order

window.ecotrack('addItem',
'1234', // ID of an order (integer) - mandatory
'DD44', // SKU/code - mandatory
'Pretzel', // name of the product
'Poppy', // category / product variation
'5', // price per unit - mandatory
'1' // amount - mandatory
);

3) Send the order



;(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[];
p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments)
};p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1;
n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","//d1fc8wv8zag5ca.cloudfront.net/2.4.2/sp.js","ecotrack"));
window.ecotrack('newTracker', 'cf', 'd2dpiwfhf3tz0r.cloudfront.net', { // Initialise a tracker
appId: '--- !!! ENTER YOUR ACCOUNT ID HERE !!! ---'
});
window.ecotrack('setUserIdFromLocation', 'ecmid');
window.ecotrack('trackPageView');
window.ecotrack('addTrans',
'1234', // ID of an order (integer) - mandatory
'Charles' Bakery', // name of shop
'150', // total - mandatory
'15', // tax
'10', // transport
'Prague', // city
'Prague', // district / region
'CZ' // country
);
window.ecotrack('addItem',
'1234', // ID of an order (integer) - mandatory
'DD44', // SKU/code - mandatory
'Pretzel', // name of the product
'Poppy' // category / product variation
'5', // price per unit - mandatory
'1' // amount - mandatory
);
window.ecotrack('trackTrans');

Did this answer your question?