postCodeAnalyticsEpictakes in an action, checks that the action is the one we want, and if it is, maps the action to our analytics event action. Note, we must include
ofType(types.POST_CODE_REQUEST)as in Redux actions are passed through to all of the epics, so we need to make sure we're only dealing with the ones we're interested in.
sendAnalyticsEvent()action. These correspond to what the action will appear as on the Google analytics dashboard, so discussing with whoever relies on this the most (Most likely the PO [Product Owner]) to agree on how to categorise the event would be advisable.