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

From Genesys Documentation
Jump to: navigation, search
(Published)
 
(Published)
Line 4: Line 4:
 
|Platform=PureEngage, PureConnect, PureCloud
 
|Platform=PureEngage, PureConnect, PureCloud
 
|TocName=record
 
|TocName=record
 +
|ComingSoon=No
 
|Context=The <tt>record</tt> method records custom website events.
 
|Context=The <tt>record</tt> method records custom website events.
 
|Section={{Section
 
|Section={{Section
Line 12: Line 13:
 
|structuredtext=The <tt>record</tt> method records custom website events.
 
|structuredtext=The <tt>record</tt> method records custom website events.
 
|fullwidth=No
 
|fullwidth=No
 +
|Status=No
 
}}{{Section
 
}}{{Section
 
|sectionHeading=Signature
 
|sectionHeading=Signature
Line 19: Line 21:
 
|structuredtext=<tt>ac('record', eventName, [customAttributes], [options])</tt>
 
|structuredtext=<tt>ac('record', eventName, [customAttributes], [options])</tt>
 
|fullwidth=No
 
|fullwidth=No
 +
|Status=No
 
}}{{Section
 
}}{{Section
 
|sectionHeading=Arguments
 
|sectionHeading=Arguments
Line 28: Line 31:
 
* [[#options|options]]
 
* [[#options|options]]
 
|fullwidth=No
 
|fullwidth=No
 +
|Status=No
 
}}{{Section
 
}}{{Section
 
|sectionHeading=eventName
 
|sectionHeading=eventName
Line 38: Line 42:
 
* Status: required
 
* Status: required
 
|fullwidth=No
 
|fullwidth=No
 +
|Status=No
 
}}{{Section
 
}}{{Section
 
|sectionHeading=customAttributes
 
|sectionHeading=customAttributes
Line 49: Line 54:
 
* 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
 
}}{{Section
 
}}{{Section
 
|sectionHeading=options
 
|sectionHeading=options
Line 67: Line 73:
 
{{!}}-
 
{{!}}-
 
{{!}}{{!}}traitsMapper
 
{{!}}{{!}}traitsMapper
{{!}}{{!}}Used to map custom attributes to traits
+
{{!}}{{!}}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 />
Line 85: Line 91:
 
{{!}}}
 
{{!}}}
 
|fullwidth=No
 
|fullwidth=No
 +
|Status=No
 
}}
 
}}
 
}}
 
}}

Revision as of 12:14, June 28, 2019

This topic is part of the manual Journey JavaScript SDK for version Current of Genesys Predictive Engagement.

The record method records custom 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, seeTraits 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 20:05:52)"
Comments or questions about this documentation? Contact us for support!