Browse SDK

plandalf.reset()

Clear the current visitor identity.

Implemented by the browser object; parameter and return types follow the delegated class declaration.

Workspace snapshot: the inspected SDK has local changes. Source links identify its base commit and may differ from this working copy. Verify the SDK build you deploy before relying on unreleased behavior.

Call this after plandalf.ready(). The browser wrapper can return undefined before initialization.

Signature

plandalf.reset(): void

Arguments

NameTypeMeaning
None—This method takes no arguments.

Example

reset.js
plandalf.ready(() => {
  plandalf.reset()
})

Returns

void

Behaviour

Clears the identified user while preserving the anonymous visitor ID.

All plandalf methods

Feature detail