setDomain

Description

If your website and checkout pages are on different subdomains, you can use the setDomain function to track your users across your checkout flow. 

For example, maybe your website and shopping cart are located at "www.yourwebsite.com", but your secure checkout pages are located at "store.yourwebsite.com". In this case you would use the setDomain function on the checkout pages and confirmation page under "store.yourwebsite.com". 

Function Call

_cartstack.push(['setDomain', '']);
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(['setDomain', 'store.yourwebsite.com']);
</script>

Still need help? Contact Us Contact Us