Control how LogRocket records across sub-domains of your website

Capture traffic from all sub-domains under one session

rootHostname - String

optional (default - null)

Use this option to control whether sessions that traverse different subdomains on your site are kept intact or broken up into sessions specific to each subdomain. Set this to the highest-level hostname sessions should be shared across (e.g. or Leave it unspecified if you want a different session per subdomain.

LogRocket.init(YOUR_APP_ID, {
  rootHostname: '',