Interestingly the on_sent_ok: “location = ‘http://example.com/’;” works fine. It’s just the ga one that doesn’t.
I’m experiencing the same problem and I’ve tried everything that has been suggested in this post and this forum but still the same problem:
I use: on_sent_ok: “ga(‘send’, ‘event’, ‘Enquiry’, ‘Submit’);”
The form sends out an email with all the form details but it doesn’t show a confirmation message and all the fields remain filled.
If I take the on_sent_ok: “ga(‘send’, ‘event’, ‘Enquiry’, ‘Submit’);” out of the form settings it works perfectly but I can’t track the event in GA.
Any other suggestions?