Configure the analytics cookie domain

Current version: 10.2

Applies to

Content Delivery (CD)

Configuration file

\App_Config\Sitecore\Marketing.Tracking\Sitecore.Analytics.Tracking.config

The Analytics.CookieDomain setting determines the domain of the tracking cookie (SC_ANALYTICS_GLOBAL_COOKIE). The default value is empty, which makes the current domain the default cookie domain.

Configuring the analytics cookie domain can be useful when you have configured a proxy or special load balancer that changes the domain of the requests.

To configure the cookie domain:

  • Insert the domain name in the value attribute of the Analytics.CookieDomain tag.

    RequestResponse
    <setting name="Analytics.CookieDomain" value="<domain.name>" />

Do you have some feedback for us?

If you have suggestions for improving this article,