record

From Genesys Documentation
Jump to: navigation, search
This topic is part of the manual Journey JavaScript SDK for version Current of Altocloud.

Learn how to use the record method to capture website events.

Related pages:

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

Example

ac('record', 'product_added', { price: 15.99, code: 'CDE-123', name: 'Product', hasBatteries: false });


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
Retrieved from "https://all.docs.genesys.com/ATC/Current/SDK/Record (2020-05-29 21:06:48)"