Track Users Across Multiple Subdomains

Say you have Drift installed on two sites, and How do you ensure when a user starts a conversation on your blog they'll pick up the same conversation in your app?


One way is to use something like Segment which will track users across all of your sites. Our Segment Integration will piggy back the user ID that Segment is using to track users and re-use that within our widget.


Out of the box the Drift widget uses cookies to track users that are tied to a specific domain; in this case "" and "" are two distinct sites. You can add a little extra configuration to your Drift snippet to easily change this behavior...

Notice this little bit at the end that we added manually...

Now all subdomains of will use the same cookie to track users. Make sure you grab the latest snippet from to use this new config method.

The preceding "." is on purpose and acts like a wildcard in cookie-speak.

Let us know if this helps!

Did this help answer your question?

thumbs up
thumbs down

Thanks for the feedback! πŸ™πŸ½

Help by drift