Title: Universal Analytics Submit Event Not Working
Last modified: August 22, 2016

---

# Universal Analytics Submit Event Not Working

 *  [Johndesu](https://wordpress.org/support/users/johndesu/)
 * (@johndesu)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/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…
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/universal-analytics-submit-event-not-working/#post-5913784)
 * Can I see the site?
 *  Thread Starter [Johndesu](https://wordpress.org/support/users/johndesu/)
 * (@johndesu)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/universal-analytics-submit-event-not-working/#post-5913790)
 * [http://byd.pt](http://byd.pt)
 * The initial video has an auto startup, you have to pause it. The contact form
   is located at end of the page next to google map.
 * Right now i didn’t add the <script> tag on the on_sent_ok so when you submit 
   something it’s going to show in portuguese “Message not sent. Please try again
   later or contact the administrator”.
 * 助けてくれてありがとうございます、　この状況はほんとにもうわかりません。。。
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/universal-analytics-submit-event-not-working/#post-5913858)
 * Check the page with [Firebug](http://getfirebug.com/). You’ll see a JavaScript
   syntax error that is likely causing this issue.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Universal Analytics Submit Event Not Working’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/universal-analytics-submit-event-not-working/#post-5913858)
 * Status: not resolved