*Note: When following these steps be sure to begin by referencing the instructions outlined in this article about setting up the pixel.

The Roster tracking pixel has the capability to track referral links across sub domains. If your eCommerce setup involves multiple sub domains then follow these instructions to enable cookie tracking. For example, your visitor comes to your root domain "mystore.com" and then the purchase process redirects to "shop.mystore.com". Cookies are used to track referral information across sub domains.

Update Your Main Link Tracking Script

To enable cookie tracking you need to include query string parameters in the script's URL for "cookies" and "domain" settings.

  • cookies=true: enables the cookie tracking functionality in your embedded script.

  • domain=mystore.com: tells us what your root domain is. Cookies are tracked across sub domains based on the root domain you specify here. Cookie tracking won't work without this setting.

Update your root tracking pixel as follows:

<!-- Roster Analytics -->
<script async type="application/javascript" src="https://sa.getroster.com/wooly-analytics.js?token=ACCESS_TOKEN&cookies=true&domain=ROOT_DOMAIN"></script>

*Set your Access Token: be sure to replace the ACCESS_TOKEN placeholder with your public access token.

*Set your Root Domain: be sure to replace the ROOT_DOMAIN placeholder with your domain. For example: mystore.com

Did this answer your question?