Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow session tracking across subdomains
In order to gain the ability to track our sessions, funnels, conversions, journeys, etc. across all of our various applications and subdomains, we need to add a couple of settings to RUM and Logs SDK setup. From [Datadog Browser Log Collection](https://docs.datadoghq.com/real_user_monitoring/browser/setup/#initialization-parameters) and [Datadog Log Collection initialization parameters](https://docs.datadoghq.com/logs/log_collection/javascript/#initialization-parameters): * `trackSessionAcrossSubdomains`: Preserve the session across subdomains for the same site. * `usePartitionedCrossSiteSessionCookie`: Use a partitioned secure cross-site session cookie. This allows the logs SDK to run when the site is loaded from another one (iframe). Implies `useSecureSessionCookie`. Per DD support: > The `useCrossSiteSessionCookie` parameter specifies the type of cookie the SDK will set, it's not a reference to cross-domain tracking. You would want this to be set to `true` to track events when the page is rendered as an iframe. Note: `useCrossSiteSessionCookie` is marked in the documents as a deprecated perimeter which we should replace with`usePartitionedCrossSiteSessionCookie`.
- Loading branch information