src/applications/edu-benefits/0994/analytics-events.js
import { SET_SUBMISSION } from 'platform/forms-system/src/js/actions';
import recordEvent from 'platform/monitoring/record-event';
import _ from 'lodash';
const analyticsEvents = [
{
action: SET_SUBMISSION,
event: store => {
const state = store.getState();
if (!_.get(state, 'form.data.privacyAgreementAccepted', false)) {
recordEvent({
event: 'edu-0994--response-missing',
'missing-field-question':
'Education - Form 22-0994 - Review Application - Privacy Policy Agreement',
});
}
},
},
];
export default analyticsEvents;