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