examples-of-js.js
//1. Here is an example of tracking a user. Generally you'd include this on ever page a user is logged in, to keep the info
// up to date.
<script>
_veroq.push(['user', {
id: 'customer_id',
email: 'email@domain.com',
referring_source: 'http://www.google.com',
number_of_purchases: 4
}]);
</script>
//2. Here is an example of how you'd track an event.
<script>
_veroq.push(['track', 'views a product']);
</script>
// Those are the only two aspects of the Vero API. The Vero UI/filter handles the rest. You can add event attributes as well
// for added complexity / to do fancier stuff. For example...
<script>
_veroq.push(['track', 'views a product', {name: 'Television', url: 'http://www.tv.com', price: 25.00}]);
</script>