Can the FullStory cookie be associated with a specific subdomain?

When the FullStory recording snippet is executed, the cookie data associated with the session will by default be stored in a cookie associated with the second-level domain (e.g., regardless of the domain level of the current page.

For example, visitors to both and will both have session data stored in a cookie associated with This allows the same user session to be recorded across multiple pages on the same second-level domain and makes for a seamless playback experience within the FullStory app.

Changing the default domain behavior

Customers may wish to change the default domain behavior so that the cookie is associated with a specific subdomain rather than the second-level domain. For example, if you were only recording visitors to and didn't want the cookie to be associated with, you could modify the FullStory recording snippet to include the following line in the top of the snippet:

window["_fs_cookie_domain"] = ""

Keep in mind that by specifying that the cookie should be associated with the subdomain, rather than the second-level domain, if the user visits FullStory on a different subdomain on the same site, FullStory will assume this is a new visitor to the site and the session will be split. (You can somewhat workaround this issue by identifying the user on both sides of the domain boundary, which will cause the sessions to be listed under the same user, but the session will still split at the domain boundary).

Can’t find what you’re looking for?

The FullStory team awaits your every question.

Contact Us