Visitor

Visitor

Visitor class represents information about current website visitor.

Constructor

new Visitor()

Source:
Properties:
Name Type Description
uuid string

UUID is unique identifier for user. UUID for visitor sets automatically on starting. Managers have UUID in their account.

name string
email string
fields Array.<Field>

custom fiels defined for user

Visitor constructor

Extends

Methods

(static) buildFromInfo(data) → {Visitor}

Source:

Static builder for visitor instance

Parameters:
Name Type Description
data object

Visitor representation received from API

Returns:
Type
Visitor

getEmail() → {string|*}

Source:
Inherited From:

Getter for email

Returns:
Type
string | *

getFields()

Source:

Gets visitor's custom fields

getIsOnline() → {boolean}

Source:
Inherited From:

Getter for isOnline

Returns:
Type
boolean

getName() → {string}

Source:
Inherited From:

Getter for name

Returns:
Type
string

getUuid() → {string|*}

Source:
Inherited From:

Getter for UUID

Returns:
Type
string | *

setEmail(email)

Source:
Inherited From:

Setter for email

Parameters:
Name Type Description
email string

setFields(fields)

Source:

Sets custom fields for visitor

Parameters:
Name Type Description
fields object

Visitor fields object

setIsOnline(isOnline)

Source:
Inherited From:

Setter for isOnline

Parameters:
Name Type Description
isOnline boolean

setName(name)

Source:
Inherited From:

Setter for name

Parameters:
Name Type Description
name string

setUuid(uuid)

Source:
Inherited From:

Setter for UUID

Parameters:
Name Type Description
uuid string