setEmail
Description
The default tracking snippet will automatically capture the website visitor's email address as they are typing into any field on the page. However, you can also use the setEmail function to pass our system the visitor's email address. For example, this is useful for tracking authenticated (logged in) users if they log into your website with a username, instead of an email.
Function Call
_cartstack.push(['setEmail', '']);
Code Example
<script data-siteid="XXXXXX" src="https://api.cartstack.com/js/customer-tracking/XXXXXXXXXX_222b5fb1025a6f580288f22cbd29c1bc.js" type="text/javascript"></script> <script type="text/javascript"> _cartstack.push(['setEmail', 'test@website.com']); </script>