We have added code, as below, to Contact From 7 on our wordpress blog to trigger an event in Google Analytics when the form is submitted:
on_sent_ok: "ga('send','event','event category','event action','event label');"
We've replace category/action/label with specific descriptors for each form.
This is working fine and triggering events in GA.
The challenge is that we want to merge one of the form data fields into the event label for one of our forms. The form data field is populated by a user choosing a drop down. I have tried various solutions like the below but none of them work as the field data appears to be emptied before the on_sent_ok trigger:
on_sent_ok: "ga('send','event','contact form','build application','build application - [MERGE_FIELD]');"