Difference between revisions of "ATC/Current/SDK/Forms: track"

From Genesys Documentation
Jump to: navigation, search
(Published)
(Published)
Line 3: Line 3:
 
|DisplayName=forms:track
 
|DisplayName=forms:track
 
|TocName=forms:track
 
|TocName=forms:track
|Context=Learn how to use the<tt>forms:track</tt> method to capture when visitors complete web-based forms.
+
|Context=Learn how to use the<tt>forms:track</tt> method to capture when visitors complete web-based forms.{{BarbFeatureTemp|Feature=Web messaging}}This article only applies to customers using web chat. If you are a Genesys Cloud customer, we encourage you to use the new {{Link-AnywhereElse|product=ATC|version=Current|manual=AdminGuide|topic=About_web_messaging|display text=web messaging}} feature to replace web chat.
 
|Dimension=DevTracking
 
|Dimension=DevTracking
 
|ComingSoon=No
 
|ComingSoon=No

Revision as of 18:29, April 28, 2021

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 visitors complete web-based forms.

Feature coming soon: Web messaging

This article only applies to customers using web chat. If you are a Genesys Cloud customer, we encourage you to use the new web messaging feature to replace web chat.

Description

The forms:track method tracks form submission and abandonment events. By default, forms tracking captures form data when a visitor submits or abandons a form.

  • Recorded form data includes the values of all input, select, and text area 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
For Genesys Predictive Engagement SDK forms tracking to capture form data, each input requires a properly defined name attribute.

For more information, see Form Tracking API.

Signature

ac('forms:track', [selector], [options]);

Arguments

selector

  • Description: CSS selector for the element or elements to track
  • Type: String
  • Status: Optional
  • Default: Form

options

  • Description: Activity or behavior to track
  • Type: Object
  • Status: Optional
  • Default: {}
  • Properties: See the following table.
Name Description Type Status Default Arguments
captureFormDataOnAbandon
Boolean optional true  
captureFormDataOnSubmit
Boolean optional true  
transform
function optional
formDataObject
traitsMapper   traitsMapper      
Retrieved from "https://all.docs.genesys.com/ATC/Current/SDK/Forms:track (2024-07-27 23:15:18)"
Comments or questions about this documentation? Contact us for support!