Complete API reference for HumanBehaviorTracker
Example screenshot – your actual API key will be different.
HumanBehaviorTracker.init(apiKey, options?)
apiKey
(string): Your HumanBehavior API keyoptions
(object, optional): Configuration options
redactFields
(string[], optional): CSS selectors for fields to redactHumanBehaviorTracker
instance
Example:
start()
stop()
addEvent(event)
event
(any): Event object to recordaddUserInfo(userProperties)
userProperties
(object): User properties (email, name, etc.)auth(authFields)
authFields
(string[]): Array of field names to check for existing usersredact(options?)
options
(RedactionOptions, optional): Redaction configurationsetRedactedFields(fields)
fields
(string[]): Array of CSS selectors for fields to redactisRedactionActive()
boolean
Example:
getRedactedFields()
string[]
Example:
getUserInfo()
getSessionId()
string
Example:
getCurrentUrl()
string