plandalf.getAnonId()
Read the anonymous visitor ID.
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.getAnonId(): stringArguments
| Name | Type | Meaning |
|---|---|---|
| None | — | This 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.