Get Started With Events

All event tracking is done using an async javascript code snippet that gathers the information and push it to our servers where it is stored for you. The tracker is built to never interfere with your sites performance or functionality. It will fail silently in the event something would go wrong and it will queue up messages when it's not able to send them right away.

Note on Data Privacy

For certain events, such as the order completion event, we de-identify the personal information as soon as it arrives to our servers using Googles enterprise grade Data Loss Protection-solution. You can read more about the Google Data Loss Protection here, but in a nut shell it encrypts the data rendering it non-readable and non-identifiable.

Setup

The setup is pretty straight forward. To initialize the tracker, add the following code to your page header.

/* Initiate the tracker */
<script async src="https://assets.zubitracker.io/v1/tracker/js/zubitracker-v1.3.0.1.js" data-name="trackerjs" data-key ="[ADD YOUR TRACKER KEY]"></script>
<script type="text/javascript">window.zlt_queue||(window.zlt_queue=[]),window.zlt_queue2||(window.zlt_queue2=[]),window.zlt=function(){},window.zlt.rec=function(p,k,d){var u={p,k,d};window.zlt_queue2.push(u)},window.zlt.track=function(w,n){var u={};u[w]=n,window.zlt_queue.push(u)};</script>

All done! Now you can start tracking events using the zlt.track(); function. You may specify custom events for tracking, but we recommend that you get started with the ones described in this section first.

Prepare for product recommendations

The following two events are required in order to run product recommendations.