Browse SDK

plandalf.getAnonId()

Read the anonymous visitor ID.

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.getAnonId(): string

Arguments

NameTypeMeaning
NoneThis method takes no arguments.

Example

getAnonId.js
plandalf.ready(() => {
  const anonId = plandalf.getAnonId()
  console.log(anonId)
})

Returns

string

Behaviour

Returns the anonymous visitor ID after initialization.

All plandalf methods

Feature detail