Cookies & storage
Client Side Cookies (JS SDK)
Name | Lifetime | Description | Is flag secure | Is flag SameSite | If deleted |
---|---|---|---|---|---|
_pcid | 13 months by default, can be configured | Visitor ID | ✅ | SameSite=lax | New cookie set, new visitor ID assigned |
_pctx | 13 months by default, can be configured | Piano context storage | ✅ | SameSite=lax | No persistence of contextual information between Piano SDKs |
_pprv | 13 months by default, can be configured | Consent Mode persistence | ✅ | SameSite=lax | No persistence of Consent Mode, window.pdl.consent.defaultPreset.PA configuration assigned |
pa_user | 13 months by default, can be configured | Stored user information | ✅ | SameSite=lax | No persistence of user information information in events |
Before 6.8.0
Name | Lifetime | Description | Is flag secure | Is flag SameSite | If deleted |
---|---|---|---|---|---|
pa_vid | 13 months by default, can be configured | Visitor ID | ✅ | SameSite=lax | New cookie set, new visitor ID assigned |
pa_user | 13 months by default, can be configured | Stored user information | ✅ | SameSite=lax | No persistence of user information information in events |
pa_privacy | 13 months by default, can be configured | Privacy Mode persistence | ✅ | SameSite=lax | No persistence of Privacy Mode, privacyDefaultMode configuration assigned |
Server Side Cookies
Name | Lifetime | Description | Secure flag | SameSite flag | HTTPOnly flag | If deleted |
---|---|---|---|---|---|---|
idrxvr | 13 months | Legacy Server Side Visitor ID | ❌ | ❌ | ✅ | New cookie set, new visitor ID assigned |
atidx | 13 months | Server Side Visitor ID | ✅ | ❌ | ✅ | New cookie set, new visitor ID assigned |
atid | 13 months | Main Server Side Visitor ID | ✅ | SameSite=none | ✅ | New cookie set, new visitor ID assigned |
Piano Analytics Mobile SDKs
- Android
- Apple
Storage key | Lifetime | Description |
---|---|---|
pa_vid | 13 months by default, can be configured | Visitor ID |
pa_uid | 13 months by default, can be configured | Stored user information |
pa_privacy | 13 months by default, can be configured | Privacy Mode persistence |
pa_crash | Until app relaunch | Crash information |
pa_lifecycle | No expiration | Application lifecycle |
Storage key | Lifetime | Description |
---|---|---|
pa_vid | 13 months by default, can be configured | Visitor ID |
pa_uid | 13 months by default, can be configured | Stored user information |
pa_privacy | 13 months by default, can be configured | Privacy Mode persistence |
pa_crash | Until app relaunch | Crash information |
pa_lifecycle | No expiration | Application lifecycle |
Legacy cookie management
If you're migrating from SmartTag SDKs to Piano Analytics SDKs, we still use the atuserid
cookie (visitor identification) so as not to cause a break in the detection of the visitor. As soon as this atuserid
cookie is deleted, we replace it with _pcid
cookie.
Same applies to pa_vid
(legacy value of PA SDK visitor cookie ID).
The atauthority
cookie (Privacy) is not used anymore. Please implement Consent methods to deposit the new _pprv
cookie instead (or Privacy methods if your use mobile SDKs).
Same applies for legacy atidvisitor
cookie ("identified visitor" detection, now "user"). Please implement Users methods to deposit the new pa_user
cookie instead.