Integration sample for PractisingTax
// Each line of code here is JS so you'd put it in <script></script> tags where required. I am going to leave these out for clarity. The first step is to add our library to your <head> tag, you can get this from you account at getvero.com/getting-started.
// 1. Track when someone signs up. Note when identifying a user you can record *any* attributes you want.
_veroq.push(['user', {email: 'customer-email@domain.com', first_name: 'first-name', last_name: 'last-name'}]);
_veroq.push(['track', 'signed_up']);
// 2. Track when someone signs in.
_veroq.push(['track', 'signed_in']);
// 3. Track when someone views a product
_veroq.push(['track', 'viewed_product', {sku: 'product-sku', name: 'product-name', price: 'product-price', url: 'product-url', image_url: 'product-image-url']);
// 4. Track when someone downloads a free product / pack
_veroq.push(['track', 'downloaded_free_trial', {name: 'product-name', url: 'link-to-product', download_url: 'link-to-download'}]);
// 5. Track when someone subscribes
_veroq.push(['track', 'subscribed']);
// That's it! You can track any event you want on top of these but this should allow you to send a great number of marketing emails and achieve the goals set out when I spoke to Ani. You should also check out our docs for direct API requests: https://github.com/getvero/vero-api. For example, tracking the purchases in step 6 is really just passing a JSON object with product details to us in real time. This can easily be done on the backend.
// Questions: support@getvero.com or chat with us, http://www.hipchat.com/g4DoJPkMW.