Skip to main content

Configure the analytics cookie lifetime


How to configure the Sitecore Content Delivery analytics cookie lifetime.

Applies to

Content Delivery

Configuration file


The Analytics.CookieLifetime setting determines the lifetime of the tracking cookie (SC_ANALYTICS_GLOBAL_COOKIE) in hours.

<setting name="Analytics.CookieLifetime" value="87600" />

You may need to change the analytics cookie lifetime if privacy law in your region dictates a maximum cookie lifetime that differs from the default.