As standard, the Pendo application preferentially uses local storage over cookies. For more information, see What Pendo uses in this article. This article explains how the Pendo Web SDK uses cookies and local storage. Cookies are relevant:
- For customers using a Pendo Web SDK version prior to 2.28.0.
- In fallback scenarios with a Pendo Web SDK version 2.28.0 and above.
Cookies and local storage
There are two primary methods for storing data on the client side in HTML: cookies and local storage. This data typically includes information such as user preferences and authentication tokens.
Cookies
Cookies are small pieces of data that are sent from the server to the browser and stored in a text file. Cookies can expire or be deleted by the user or the browser.
Cookies can be first-party or third-party. First-party cookies are set by the website that the user is currently visiting. They're primarily used to enhance the user experience by remembering things like user preferences and login information. If not using local storage, Pendo relies on first-party cookies, which are considered less invasive and less vulnerable to cross-site scripting attacks than third-party cookies. They're also compliant with GDPR, more adaptable to browser changes, and typically result in faster load times relative to third-party cookies.
Third-party cookies are set by domains other than the website that the user is currently visiting. Typically, these services are embedded into the website that the user is visiting and are commonly used for tracking user behavior across websites, creating user profiles, and delivering targeted advertising. Third-party cookies can be blocked or restricted by the user's privacy settings or browser extensions.
Local storage
Local storage is a feature of the HTML5 specification that, unlike cookies, doesn't send data to the server with every request and can persist across sessions and browser tabs. Local storage can store more data per domain than cookies without negatively affecting network performance or bandwidth usage. Local storage can also store complex data types, such as objects or arrays.
What Pendo uses
We use web SDK cookies for any Pendo Web SDK version before 2.28.0. For versions 2.28.0 and above, we use local storage as standard and use first-party cookies as a fallback when:
- Your browser doesn’t support local storage.
- Your browser's local storage is over quota.
- The web SDK is configured to use domain cookies, meaning that the values are intended to be used across different domains.
When local storage is unavailable, Pendo falls back on first-party cookies, which are tied to the Pendo website for site-specific purposes. This means that Pendo usage isn't affected by restrictions on third-party cookies, such as those imposed by some regulations (including the GDPR in Europe) and some web browsers that have introduced features or settings to block or limit third-party cookies by default. This includes Google Chrome.
Google's third-party cookie restrictions
As of January 4, 2024, Google Chrome started restricting third-party cookies.
Pendo uses local storage in preference to cookies, and Pendo falls back on first-party cookies rather than third-party cookies when not using local storage. This means that, whether Pendo uses local storage or first-party cookies, your visitors are unaffected by Google's third-party cookie restrictions. Your visitors still receive guides, and your analytics are unaffected.
However, you might not be able to use the Visual Design Studio for tagging or guide creation unless you enable third-party cookies or use a different browser. This is because Google Chrome also blocks access to local storage, which our designers rely on. This is a side effect of Google's restrictions on third-party cookies.
To override Google Chrome's third-party cookie restrictions:
- Copy and paste the following into your Chrome browser:
chrome://settings/cookies. - Select either Allow third-party cookies or Block third-party cookies in Incognito Mode.
Clear a stuck Visual Design Studio session
If the Visual Design Studio remains stuck after you've allowed the required cookies and local storage and tried the other launch troubleshooting steps, clear cookies and local storage for pendo.io in your browser's site-data settings. Sign in to Pendo again and retry the launch.
Limit clearing to Pendo's site data rather than clearing all browser data. This signs you out of Pendo without unnecessarily removing data for unrelated websites.
For other causes, including blocked communication between browser tabs, see Help launching the Visual Design Studio.
Cookies and storage keys the Pendo Web SDK sets
The Pendo Web SDK documentation lists the keys that the SDK stores in the browser and what each one is for:
- Cookies & Browser Storage: how the SDK chooses between cookies, local storage, and session storage, and how it names keys.
- localStorage: the keys the SDK stores in local storage.
- sessionStorage: the keys the SDK stores in session storage.
Tip: Before you audit the cookies on your own application, clear your browser's cookies, and don't visit the Pendo marketing website (pendo.io) or the Pendo application in that browser until you finish. Otherwise, your audit also lists cookies that Pendo's website and application set on the pendo.io domain, which your visitors won't have.