Cookies set by AppMeasurement typically have an expiration of 2 years. Use the
cookieLifetime variable to override the expiration date for cookies set by AppMeasurement.
This variable impacts unique visitor counts and attribution. Use caution when setting this variable.
The Web SDK does not yet offer customization to the lifetime of cookies that it sets.
Cookie Lifetime is a dropdown under the Cookies accordion when configuring the Adobe Analytics extension.
This dropdown contains the following values:
86400into the custom field forces cookies to expire after exactly 24 hours.
s.cookieLifetime variable is a string that determines the expiration date of cookies set by AppMeasurement.
SESSION, cookies set by AppMeasurement expire after the browser session completes.
NONE, AppMeasurement does not attempt to set cookies.
// Expire cookies after each session s.cookieLifetime = "SESSION"; // Expire cookies after exactly 24 hours s.cookieLifetime = "86400";