chexton
4/11/2013 - 12:53 AM

installation-cc.html

installation-cc.html

<!-- 1. Put this before the </head> tag on every page -->
<script type="text/javascript">
  var _veroq=_veroq||[];_veroq.push(["init",{api_key:"43b7c059ead5f46c21ca15f0b4271e87956535d9",development_mode:false}]);(function(){var e=document.createElement("script");e.type="text/javascript";e.async=true;e.src="//getvero.com/assets/m.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)})()
</script>

<!-- 2. Put this before the </body> tag on every page where a customer
is logged in OR after you get their email. Replace the email with theirs. -->
<script type="text/javascript">
  var email = 'customersemail@domain.com';
  _veroq.push(['user', {id: email, email: email}]);
</script>

<!-- 3. Each of these snippets should go on the appropriate page just before
the </body> tag -->

<script>
  _veroq.push(['track', 'signs up']);
</script>

<script>
  _veroq.push(['track', 'purchases product', {
    name: 'product-name', 
    price: 12.50, 
    url: 'http://link-to-product.com', 
    image_url: 'http://link-to-product-image.com'
  }]);
</script>

<script>
  _veroq.push(['track', 'adds product to cart']);
</script>

<script>
  _veroq.push(['track', 'begins checkout']);
</script>