How to track users across multiple subdomains?
Let’s say you install a script on domains example.com and blog.example.com. When the user goes from one domain to another, it will be registered as two separate sessions under two different IDs.
In this situation, LiveSession sees the same person as two separate users. Here’s how you can solve this issue:
To track users across multiple subdomains, you have to set a
rootHostname option to your top-level domain (eg. .your-domain.com) when calling the
__ls("setOption") method. Please note that the first character in .your-domain.com is a dot.
Thanks to this, the script will place a cookie to identify the session and the user. You will see the whole user journey in one recording.