getVisitorId
The getVisitorId() method returns the visitor ID.
Syntax
getVisitorId()
getVisitorId(): Promise<string>
getVisitorId(): Promise<string>
getVisitorId(): Promise<string>
getVisitorId(): Promise<string>
getVisitorId(): Promise<string>
getVisitorId(): Promise<string>
Returns
The visitor ID value.
Format: 16-character hex Example: 0123456789abcdef
.
Type: string
Examples
To return the visitor ID:
_paq.push([function () {
console.log(this.getVisitorId());
}]);
getVisitorId(): Promise<string>
getVisitorId(): Promise<string>
getVisitorId(): Promise<string>
getVisitorId(): Promise<string>
getVisitorId(): Promise<string>
getVisitorId(): Promise<string>
A sample of the return value:
0123456789abcdef
Related methods
Updated 6 days ago