forms: track

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 theforms:track method to capture when users complete web-based forms.

Related pages:

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 CSS selector for the element or elements 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      
Retrieved from "https://all.docs.genesys.com/ATC/Current/SDK/Forms:track (2020-05-29 19:37:08)"