Cookies and tracking transparency
Every cookie and local storage item the Userlane product sets, and the opt-out implementation.
Userlane sets a small number of cookies and one local storage item to maintain session state, remember UI preferences, and, when HEART analytics is enabled, track application sessions. This page covers the cookies set by the Userlane product: the portal and the Userlane content that runs inside your applications. Cookies on the Userlane marketing website are described in the website's Cookie Policy.
For how Userlane processes the data these cookies collect, see the data processing agreement.
When to include Userlane in a cookie policy
Whether Userlane needs to appear in the organization's cookie policy or consent banner is the organization's own decision, usually made by its data protection officer. It typically depends on who the end users are: employees, the organization's own customers or partners, or private individuals using a consumer-facing application. The cookie table below provides the information needed for that assessment.
Userlane cookies are functional, not marketing or advertising cookies. They do not track users across third-party sites and are not used for profiling or ad targeting. If the organization's consent tool distinguishes essential cookies from functional cookies, Userlane sits under functional.
Cookies Userlane sets
The table below lists every cookie and local storage item that Userlane's embeddable frontend package may store on the end user's device.
userlane-context
Cookie
Stores the state of the Userlane UI and the current context (for example, which guide is active and at which step) so that a guide continues seamlessly when the user navigates between pages or domains. Also keeps the Editor open across page changes for content authors.
5 minutes
Yes
userlane-app-session
Cookie
Stores the analytics session so that application-level events can be aggregated and attributed correctly.
30 minutes
Only when HEART analytics is enabled
userlane-user
Cookie
Stores a randomly generated user ID so that the Assistant can show consistent progress (for example, which guides have been completed). Used only when no user ID is passed through the implementation.
5 years
Only when no user identifier is passed
userlane-assistant-context
Local storage
Stores the state of the Assistant, including its position on the screen if the user has moved it by dragging.
Indefinite
Yes
AUTH_SESSION_ID
Cookie (third-party, Keycloak)
Stores the authentication session ID during the portal login flow.
Session
Only for users with portal access
KEYCLOAK_IDENTITY
Cookie (third-party, Keycloak)
Stores a JSON Web Token (JWT) that verifies the user's identity and authorization roles after login.
Session
Only for users with portal access
KEYCLOAK_SESSION
Cookie (third-party, Keycloak)
Stores the session ID for an authenticated portal user so that Keycloak can determine whether the user is still logged in.
Session
Only for users with portal access
The three Keycloak cookies are set only for users who access the Userlane portal directly, such as content authors working in the Editor. End users who interact with Userlane only through the browser extension or the Assistant do not receive them.
Implement cookie opt-out
The opt-out works in two steps: gating initialization on consent, and removing Userlane if consent is revoked.
Step 1: Initialize Userlane only after consent
The Userlane('init', property_id) command starts Userlane on the page. Configure the consent logic so that this command fires only after the user has accepted functional cookies.
The ID in the command identifies the organization's Userlane application and is available in the Userlane portal.
Step 2: Remove Userlane if consent is revoked
If the user later changes their cookie preferences and declines functional cookies, call the remove command to withdraw Userlane from the page immediately.
The removeUserlane command is global and does not require an ID.
After calling removeUserlane, the organization's consent logic must also store the user's updated preference so that Userlane('init') is not called again on the next page load.
Relevant articles
Environment prerequisitesQuick reference of commandsAI features: what data is processed and whereEU Data Act: data categories and portabilityFAQ
Last updated
Was this helpful?

