Skip to main content

Voyado Engage

Introduction to web activity tracking

The Voyado tracking script is used for online tracking of a customer’s website activity, such as abandoned carts and product views.

Web activity tracking can be used to track both anonymous and identified customers. The tracking script uses cookies to store and identify customers.

Once the script is implemented it will generate a client id and store it in a first party cookie “_va”. This client id will be attached in every event and links web activities to the users web browser. When the user clicks on a link in an email from Voyado, the tracking script reads the contact id from the URL (vtid) and store it in cookie “_vaI”. With contact id web activities can be bound to a contact in Voyado.

A user can be identified with the script in two ways:

  • When the user clicks on a link in an email (from Voyado) that links to the website

  • When the user is identified by the website (e.g. sign in) and the method setContactId() is called

Abandoned cart

By register every state of a user’s cart, Voyado is able to communicate cart abandonment with automation workflows.


Product feed has to be configured in Voyado for Abandoned cart to work.

Products of interest

By tracking products views, Voyado can calculate a list of products of interest for each user. This data will also be a part of the algorithm that calculates Voyado's product recommendations.

Setup in Voyado

Voyado and Azure resources needs to be setup and configured in order to receive tracking data. This setup is done by your Voyado team.

Implementing script

This script should be implemented on each page on the website:


tenant id = [tenant id]

    (function (i, s, o, g, r, a, m) {
        i['VoyadoAnalyticsObject'] = r;
        i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date();
        a = s.createElement(o), m = s.getElementsByTagName(o)[0];
        a.async = 1;
        a.src = g;
        m.parentNode.insertBefore(a, m)
    })(window, document, 'script', '', 'va'); //Insert script depending on the environment (staging/production)
    va("setTenant", "[tenant id]");
What script should I use for the different environments?



Important steps to ensure during implementation

The tracking script must be on all pages on the site incl. non-product pages as well as other landing pages.

The tracking script identifies the user that comes via email links and is needed on all pages so as not to miss identification.