Track Actions
Jafar's Form hooks exposes afterAction hook among others. Use this hook that gets args such as action type and metadata - to track user actions on the form.
Example
import TrackService from './TrackService';
const resources = {
// ...
hooks: {
afterAction: ({ type, metadata}) => {
TrackService.sendToGoogleAnalytics({ type, metadata });
},
},
};