Configure the analytics cookie domain
Current version: 9.0
Applies to |
Content Delivery (CD) |
---|---|
Configuration file |
|
You can configure the domain of the tracking cookie (SC_ANALYTICS_GLOBAL_COOKIE
) if you do not want it to be the default 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:
-
Open the
\App_Config\Sitecore\Marketing.Tracking\Sitecore.Analytics.Tracking.config
file. -
Insert the
Analytics.CookieDomain
tag with the value set to the domain of your choice.RequestResponsexml<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/" xmlns:role="http://www.sitecore.net/xmlconfig/role/"> <sitecore role:require="Standalone or ContentDelivery or ContentManagement"> <settings> <setting name="Analytics.CookieDomain" value="<domain.name>" /> </settings> </sitecore> </configuration>
-
Save your changes.