get-vero-installed-fast.js
// Before all of this, make sure you get the code from getvero.com/getconnected step 1 and place it in your header.
// Note: each of the below snippets should be surrounded by <script></script> tags. Removed for brevity.
//1. On first step (https://www.ship2anywhere.com.au/quote/select-service/)
_veroq.push(['track', 'reached step 1', {
from: 'replace-with-from-address',
to: 'replace-with-to-address',
width: 'x',
height: 'h',
depth: 'd',
weight: '123'
}]);
//2. On second step (https://www.ship2anywhere.com.au/quote/address-details/)
$("#form").on('submit.vero', function(e){
e.preventDefault();
var email = $('#id_fromEmail').val();
var first_name = $('#id_fromFirstName').val();
var last_name = $('#id_fromLastName').val();
_veroq.push(['user', {id: email, email: email, first_name: first_name, last_name: last_name}]);
setTimeout(function(){
$('#form').off('submit.vero').submit();
}, 300)
});
//3. On third step (https://www.ship2anywhere.com.au/quote/package-details/)
_veroq.push(['track', 'reached step 3']);
//4. On fourther step
_veroq.push(['track', 'reached step 4']);
//5. On thank you page
_veroq.push(['track', 'completed order']);