Vero is different from other email service providers because it is built around customer actions. Using the Vero API, you track what customers do on your website after you get their email. You can see this data in realtime in Vero and use it to create detailed segments and send personalized campaigns.
Installing the library and identify code
Copy the following code onto every page of your website, just before the </head> tag.
|
1 2 3 4 5 |
<script type="text/javascript"> var _veroq = _veroq || []; _veroq.push(['init', { api_key: 'YOUR_API_KEY' } ]); (function() {var ve = document.createElement('script'); ve.type = 'text/javascript'; ve.async = true; ve.src = '//d3qxef4rp70elm.cloudfront.net/m.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ve, s);})(); </script> |
Copy the following code onto every page of your wesite where you know the current visitor’s email address,just before the </body> tag.
|
1 2 3 4 5 6 |
<script type="text/javascript"> _veroq.push(['user', { email: 'email@domain.com', // Replace 'email@domain.com' with the logged in customer's email id: '1234' // Replace '1234' with the logged in customer's ID. This is optional. Leave it blank to use the email as the ID. }]); </script> |
Testing it worked
To check if you have installed these two sections of Javascript correctly, open your website in a new tab, login and you browse around. If you return to Vero and head to the Customers tab you’ll be able to see your email show up. Success! Your first subscriber in Vero.
Did you know?
You can also install Vero using Ruby, Python, PHP and many other languages. See the Full API docs to get the details.We have a plugin for BigCommerce customers that is even easier to install. More eCommerce platforms are coming soon.