record
From Genesys Documentation
This topic is part of the manual Journey JavaScript SDK for version Current of Genesys Predictive Engagement.
Learn how to use the record method to capture website events.
Description
The record method records custom website events.
Signature
ac('record', eventName, [customAttributes], [options])
Arguments
eventName
- Description: name of the custom event
- Type: string
- Status: required
customAttributes
- Description: adds extra information to pageview event
- Type: object
- Status: optional
- Restrictions: a flat object with properties of type string, number, or boolean
options
- Description: Used for additional configuration
- Type: object
- Status: optional
- Properties:
Name | Description | Type | Status | Default |
traitsMapper | used to map custom attributes to traits. For more information, see Traits Mapper. | traitsMapper | ||
callback | called once beacon is sent | function | optional | |
callbackTimeout | ms to wait for beacon to send | number | optional |
Comments or questions about this documentation? Contact us for support!