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.
Cookie Lifetime using the Web SDK
The Web SDK does not yet offer customization to the lifetime of cookies that it sets.
Cookie Lifetime using the Adobe Analytics extension
Cookie Lifetime is a drop-down list under the Cookies accordion when configuring the Adobe Analytics extension.
Log in to
Adobe Experience Platform Data Collection
using your AdobeID credentials.
Click the desired tag property.
Go to the Extensions tab, then click the
Configure
button under Adobe Analytics.
Expand the Cookies accordion, which reveals the Cookie Lifetime drop-down list.
Default
: Cookie expires after 2 years.
None
: AppMeasurement does not set cookies.
Session
: Cookie expires at the end of the visitor’s session.
Seconds
: Cookie expires after the specified number of seconds have elapsed. For example, setting this drop-down list to Seconds and placing
86400
into the custom field forces cookies to expire after exactly 24 hours.
If set to
SESSION
, cookies set by AppMeasurement expire after the browser session completes.
If set to
NONE
, AppMeasurement does not attempt to set cookies.
If set to an integer string, cookies set by AppMeasurement expire after the specified number of seconds have elapsed.