Web Tracking is useful when the points where the contact completes a goal, or performs a conversion, are identified on the website being tracked. For example, completing a purchase order on an eCommerce site or downloading a resource.
the parameters and configurations suggested on this page may not be suitable in case of particular setups and On premise installations.
We suggest, before proceeding, to check with our Help Desk service whether the configuration proposed here can meet your requirements.
To record a conversion, you need to create a Conversion Goal.
Follow the path:
Management > Web Tracking > Conversion Goals
and access the page where the list of all already configured conversion goals is displayed.
Click on the button "New goal" in the upper right to create a new Conversion Goal.
Enter:
- Goal name:
visible only to platform users, assign a label to the goal; - Goal ID:
identifies the goal in the conversion code. This value should not be changed if the goal has already been used previously. Allowed values are letters (a~z) and numbers (0~9).
Once the two fields are filled out, click the Save button in the upper right to obtain the Conversion Tracking Code.
The generated script should be inserted after the Monitoring Code, on the pages that record conversions for contacts.
These pages will therefore contain two scripts at the same time:
Page Tracking Script
<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: 'ebag10cdc6fd', trackerhostname: 'fe-mn1.mag-news.it'}); </script>
Conversion Tracking Script
<script type="text/javascript"> mna('conversion', {'goal': 'acquistoecommerce', value: '0.0'}); </script>
The parameter mna('conversion', {'goal': 'goal_name', value: 'conversion_value'}
identifies both the conversion ID ('goal':) and its value ('value':).
value
) of the goal is 0.The conversion tracking script must be placed strictly after the monitoring initialization script, otherwise the contact's browser will register an error, the data will not be recorded, and there's a risk that the web page may not function correctly.