Difference between revisions of "ATC/Current/SDK/Record"
From Genesys Documentation
DannaShirley (talk | contribs) (Published) |
DannaShirley (talk | contribs) (Published) |
||
Line 5: | Line 5: | ||
|TocName=record | |TocName=record | ||
|ComingSoon=No | |ComingSoon=No | ||
− | |Context= | + | |Context=Learn how to use the <tt>record</tt> method to capture website events. |
|Section={{Section | |Section={{Section | ||
|sectionHeading=Description | |sectionHeading=Description | ||
Line 73: | Line 73: | ||
{{!}}- | {{!}}- | ||
{{!}}{{!}}traitsMapper | {{!}}{{!}}traitsMapper | ||
− | {{!}}{{!}} | + | {{!}}{{!}}used to map custom attributes to traits. For more information, see {{Link-SomewhereInThisVersion|manual=SDK|topic=Traits_mapper|display text=Traits Mapper.}} |
{{!}}{{!}}traitsMapper | {{!}}{{!}}traitsMapper | ||
{{!}}{{!}}<br /> | {{!}}{{!}}<br /> |
Revision as of 20:46, October 10, 2019
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!