on_sent_ok fires twice
-
Hello,
I am using the on_sent_ok hook to fire up Google Analytics event tracking for contact form submissions.
However, from a single form submission I am getting 2 events fired up. This would result in double-counting form submissions.
I suspect this might be the case because I have 2 emails sent out by the form:
#1 – Confirmation message sent to whoever submitted the form
#2 – Message sent to our inbox with the form submissionIs there a way around it to fire the on_sent_ok only once without getting rid of the confirmation message? Another solution would be to simply divide my results by 2, but I would rather avoid that in order to have clean reports.
Additional settings on form:
on_sent_ok: "ga('send', 'event', 'Contact Form', 'sent');"
Google tag manager report:
https://s3.amazonaws.com/uploads.hipchat.com/17604/1458157/mElzKXIAs6Uuumk/google%20tag%20report.pdfPage with contact form:
https://stok-engineering.com/w2/de/donutmaschinen/Thanks for the amazing plugin!
- The topic ‘on_sent_ok fires twice’ is closed to new replies.