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:

Example:

Your main domain is mywebsite.com but you also want to record on blog.mywebsite.com :

__ls("init", "YOUR_TRACK_ID", { rootHostname: '.mywebsite.com' })

Didn’t find an answer?

Try using the search engine or just contact us

hello@livesession.ioChat with us

Start using LiveSession for free now.

Free 14-day trial

No credit card required

Easy setup