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