Some of the actions detected through web tracking can be used to start marketing automation automated flows.
The Web tracking event node
By leveraging the page event and adding additional parameters to the configuration script, it is possible to start a flow.
In the Automated flow Design, add the Web tracking event node.
In the node configuration, you can specify how the contact enters the automated flow.
Visit to a web page
The contact visits a web page:
if you choose this option, you will need to specify which pages, once visited by the contact, will allow them to enter the automated flow.
Trigger activation
A script generates a trigger event
by choosing this option, you will need to specify an ID that generates the conversion event by adding the following line to the tracking script:
mna('trigger', {'code': 'IDCODEEVENTAPI'});where
IDCODEEVENTAPIis the ID that will allow the contact to enter the automated flow.
If, in addition to starting the automated flow, you also want to track the conversion event, you simply need to add the related script as well, for example:
Web tracking initialization
<script type="text/javascript">
(function (m, a, g, n, e, w, s) {
m[e] = m[e] || function () {
(m[e].q = m[e].q || []).push([arguments[0], arguments[1], 1 * (new Date()).getTime()]);
};
w = a.createElement(g), s = a.getElementsByTagName(g)[0];
w.async = 1;
w.src = n;
s.parentNode.insertBefore(w, s);
})(window, document, 'script', '//fe-mn1-mag.news.it/nl/webtracking.js', 'mna');
mna('init', {apikey: 'ID', trackerhostname: 'fe-mn1-mag.news.it'});
mna('trigger', {'code': 'visitapagina'});
</script>Page event script
<script type="text/javascript">
mna('page', {'myparam': 'valu1', myparamnumber: '0.0'});
</script>Conversion event script
<script type="text/javascript">
mna('conversion', {'goal': 'acquisto', value: '100.50', color:'red', quantity: 78, weight: 17.5,
products: [{name:'Shirt'},{name:'Shoes'}] });
</script>