Contact form 7 and google analytics problem
-
Hi
I’ve spent couple of hours trying to solve this without any results.
My problem is how i track for example submitted contact forms on my google analytics. I’ve tried different codes in contact form, these are:on_sent_ok: “ga(‘send’, ‘event’, ‘Contact Form’, ‘sent’);”
on_sent_ok: “_gaq.push([‘_trackEvent’, ‘Intresseanm?lan1’, ‘Submit’]);”
on_sent_ok: “ga(‘send’, ‘event’, ‘Intresseanm?lan2’, ‘sent’);”
on_sent_ok: “ga(‘Submit’, ‘event’, ‘Intresseanm?lan3’, ‘sent’);”
onClick=”_gaq.push([‘_trackEvent’, ‘Intresseanm?lan4’, ‘Skickat’, ‘Kontaktformul?r’,, false]);”
on_sent_ok: “ga([‘_trackEvent’, ‘Intresseanm?lan5’, ‘Skickat’, ‘Kontaktformul?r’,, false]);”and no one works. When i add the code in additional settings and then submitt a form name, email and so on doesnt reset (the form goes through). This can be fixed by removing the code in additional settings.
So i appreciate some help here..
- The topic ‘Contact form 7 and google analytics problem’ is closed to new replies.