Difference between revisions of "ATC/Current/SDK/Forms: track"
From Genesys Documentation
DannaShirley (talk | contribs) (Published) |
|||
Line 9: | Line 9: | ||
|Section={{Section | |Section={{Section | ||
|sectionHeading=Description | |sectionHeading=Description | ||
− | | | + | |Standalone=No |
+ | |ComingSoon=No | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
|structuredtext=The <tt>forms:track</tt> method tracks form submission and abandonment events. By default, forms tracking captures form data when a user submits or abandons a form. | |structuredtext=The <tt>forms:track</tt> method tracks form submission and abandonment events. By default, forms tracking captures form data when a user submits or abandons a form. | ||
Line 23: | Line 23: | ||
}}{{Section | }}{{Section | ||
|sectionHeading=Signature | |sectionHeading=Signature | ||
− | | | + | |Standalone=No |
+ | |ComingSoon=No | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
|structuredtext=<tt>ac('forms:track', [selector], [options]);</tt> | |structuredtext=<tt>ac('forms:track', [selector], [options]);</tt> | ||
|fullwidth=No | |fullwidth=No | ||
Line 31: | Line 31: | ||
}}{{Section | }}{{Section | ||
|sectionHeading=Arguments | |sectionHeading=Arguments | ||
− | | | + | |Standalone=No |
+ | |ComingSoon=No | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
|structuredtext=*[[#selector|selector]] | |structuredtext=*[[#selector|selector]] | ||
*[[#options|options]] | *[[#options|options]] | ||
Line 40: | Line 40: | ||
}}{{Section | }}{{Section | ||
|sectionHeading=selector | |sectionHeading=selector | ||
− | | | + | |Standalone=No |
+ | |ComingSoon=No | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
|structuredtext=*Description: The element you want to track. | |structuredtext=*Description: The element you want to track. | ||
*Type: string | *Type: string | ||
Line 51: | Line 51: | ||
}}{{Section | }}{{Section | ||
|sectionHeading=options | |sectionHeading=options | ||
− | |||
|anchor=options | |anchor=options | ||
+ | |Standalone=No | ||
+ | |ComingSoon=No | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
|structuredtext=*Description: The activity or behavior that you want to track. | |structuredtext=*Description: The activity or behavior that you want to track. | ||
*Type: object | *Type: object |
Revision as of 13:34, January 17, 2020
This topic is part of the manual Journey JavaScript SDK for version Current of Genesys Predictive Engagement.
Learn how to use theforms:track method to capture when users complete web-based forms.
Description
The forms:track method tracks form submission and abandonment events. By default, forms tracking captures form data when a user submits or abandons a form.
- Recorded form data includes the values of all input, select, and textarea fields.
- Recorded form data excludes the values of hidden, submit, and password fields, along with any fields that contain any of the sensitive input strings.
Important
In order for Altocloud SDK forms tracking to capture form data, each input needs to have a properly defined name attribute.See also Form Tracking API.
Signature
ac('forms:track', [selector], [options]);
Arguments
selector
- Description: The element you want to track.
- Type: string
- Status: optional
- Default: form
options
- Description: The activity or behavior that you want to track.
- Type: object
- Status: optional
- Default: {}
- Properties:
Name | Description | Type | Status | Default | Arguments |
captureFormDataOnAbandon | boolean | optional | true | ||
captureFormDataOnSubmit | boolean | optional | true | ||
transform | function | optional | formDataObject | ||
traitsMapper | traitsMapper |
Comments or questions about this documentation? Contact us for support!