Form analytics

NOTE: This document refers to functionality currently under development in WebHare 5.7

The Forms API sends out various lifecycle events as FormAnalyticsEvent if you listen to wh:form-analytics events.

PXL integrations

To enable built in form analytics your frontend code should invoke setupFormAnalytics (from @webhare/frontend)

GTM

Use setupFormAnalyticsForGTM to send form analytics to the GTM dataLayer. You will also need to invoke this if you set up the gtmdatalayer form handler