chexton
6/16/2013 - 2:26 AM

vero-install-help.js

vero-install-help.js

//1. Copy and paste the FIRST snippet of code from https://www.getvero.com/events on EVERY page, before </head>

//2. Whenever you have a customer's email (when they login, signup, etc.) include this code and put it after the code in step one.
<script>
  var email = "customer@domain.com"; // Replace with customer's email
  _veroq.push(['user', {id: email, email: email}]);
</script>

//3. On the first complaint page (e.g. http://www.akosha.com/Maruti-Suzuki-complaints-20.html) you should track:
<script>
  _veroq.push(['track', 'started complaint']);
</script>

//4. On the plan page (e.g. http://www.akosha.com/user/upgradepaymentplan/240323) you should track:
<script>
  _veroq.push(['track', 'viewed plan select page']);
</script>

//5. Post-plan page (e.g. http://www.akosha.com/user/posttogateway) you should track:
<script>
  _veroq.push(['track', 'completed complaint']);
  _veroq.push(['user', {plan: 'free'}]); // Update this with the plan they chose
</script>

//6. When a complaint is resolved, you should track this with Vero:
<script>
  _veroq.push(['track', 'complaint resolved']);
</script>