Browse SDK

plandalf.identify()

Set the current visitor identity.

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

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

Signature

plandalf.identify(token: string): void

Arguments

NameTypeMeaning
tokenstringCustomer JWT or email string.

Example

identify.js
plandalf.ready(() => {
  plandalf.identify('jane@example.com')
})

Returns

void

Behaviour

Pass a customer JWT or email string. The value is persisted for later SDK calls. Do not put a secret API key in browser code.

All plandalf methods

Feature detail