Universal Analytics Submit Event Not Working
-
Hello.
After tons of tries and searching for a solution i couldn’t put the submit tracking event working to Google Universal Analytics..
Here’s what i’m doing.
I’m using a plugin called metronet tag manager in order to insert the universal analytics code. I tested with the pages and it works as intended. When i use an event link for email as such as
<a href="emailto:example@mail.com" onclick="ga('send', 'event', 'Email', 'click to email', 'example@mail.com');">Send Email</a>it works as well.But when i try to do the same thing for contact form 7 by adding
on_sent_ok: "ga('send', 'event', 'Contact Form', 'sent');"it doesn’t work at all. It even doesn’t accept the submit form anymore, and i’m forced to add the tags <script> to it to be able to submit the form successfully..
I’m using the WPML MAIL SMTP plugin for the email validation.Please help…
The topic ‘Universal Analytics Submit Event Not Working’ is closed to new replies.