Skip to content

Instantly share code, notes, and snippets.

@chexton
Created August 30, 2013 01:53
Show Gist options
  • Select an option

  • Save chexton/6385484 to your computer and use it in GitHub Desktop.

Select an option

Save chexton/6385484 to your computer and use it in GitHub Desktop.
install-vero-kd.js
//1. Install this on EVERY page (header.phtml) just before </head>
//2. Install this on EVERY page where you collect a customer's email (signed in, logged in, fills out form)
<script type="text/javascript">
var email = 'customer@domain.com';
_veroq.push(['user', {
id: email,
email: email
}]);
</script>
//3. Put these on the various pages, as below.
// On http://www.kidsdealz.com.au/checkout/cart/
<script>_veroq.push(['track', 'views cart']);</script>
// On http://www.kidsdealz.com.au/checkout/cart/
<script>_veroq.push(['track', 'views cart']);</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment