Difference between revisions of "ATC/Current/SDK/Record"

From Genesys Documentation
Jump to: navigation, search
(Published)
(Published)
Line 27: Line 27:
 
|alignment=Vertical
 
|alignment=Vertical
 
|gif=No
 
|gif=No
|structuredtext=* [[#eventName|eventName]]
+
|structuredtext=*[[#eventName|eventName]]
* [[#customAttributes|customAttributes]]
+
*[[#customAttributes|customAttributes]]
* [[#options|options]]
+
*[[#options|options]]
 
|fullwidth=No
 
|fullwidth=No
 
|Status=No
 
|Status=No
Line 38: Line 38:
 
|alignment=Vertical
 
|alignment=Vertical
 
|gif=No
 
|gif=No
|structuredtext=* Description: name of the custom event
+
|structuredtext=*Description: name of the custom event
* Type: string
+
*Type: string
* Status: required
+
*Status: required
 
|fullwidth=No
 
|fullwidth=No
 
|Status=No
 
|Status=No
Line 49: Line 49:
 
|alignment=Vertical
 
|alignment=Vertical
 
|gif=No
 
|gif=No
|structuredtext=* Description: adds extra information to <tt>pageview</tt> event
+
|structuredtext=*Description: adds extra information to <tt>pageview</tt> event
* Type: object
+
*Type: object
* Status: optional
+
*Status: optional
* Restrictions: a flat object with properties of type string, number, or boolean
+
*Restrictions: a flat object with properties of type string, number, or boolean
 
|fullwidth=No
 
|fullwidth=No
 
|Status=No
 
|Status=No
Line 60: Line 60:
 
|alignment=Vertical
 
|alignment=Vertical
 
|gif=No
 
|gif=No
|structuredtext=* Description: Used for additional configuration
+
|structuredtext=*Description: Used for additional configuration
* Type: object
+
*Type: object
* Status: optional
+
*Status: optional
* Properties:
+
*Properties:
 +
 
 
{{{!}} class="wikitable"
 
{{{!}} class="wikitable"
 
{{!}}-
 
{{!}}-

Revision as of 14:33, January 9, 2020

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
Retrieved from "https://all.docs.genesys.com/ATC/Current/SDK/Record (2025-07-14 15:36:49)"
Comments or questions about this documentation? Contact us for support!