Title: Javascript error after adding GA tacking code
Last modified: August 21, 2016

---

# Javascript error after adding GA tacking code

 *  [ElColo13](https://wordpress.org/support/users/elcolo13/)
 * (@elcolo13)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-after-adding-ga-tacking-code/)
 * I’ve been using CF7 for a while now and everything has been working just fine.
   I wanted to add the new universal tracking code rather than redirecting to a 
   thank-you page so I followed the instructions here: [http://contactform7.com/tracking-form-submissions-with-google-analytics/](http://contactform7.com/tracking-form-submissions-with-google-analytics/)
 * After doing that, on submit, the thank you message doesn’t appear, resulting 
   in multiple messages from people. I removed the code and everything worked fine
   again. With the Facebook tracking pixel I interested the code into the ‘message
   sent’ field instead of the additional settings. Should I do the same with the
   GA code? Any advice or suggestions are greatly appreciated. Thanks in advance.
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

Viewing 1 replies (of 1 total)

 *  [shanebecks](https://wordpress.org/support/users/shanebecks/)
 * (@shanebecks)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-after-adding-ga-tacking-code/#post-5055659)
 * Hi ElColo13 & Contact Form 7
 * I am having exactly the same issue as you!
 * When adding the Google Analytics code (on_sent_ok: “_gaq.push([‘_trackEvent’,‘
   Contact Form’, ‘Submit’]);”)to the Additional Settings section the Message Sent
   Successfully message no longer appears. The information still shows in the fields
   and the email does send. But some people just keep clicking on the send button
   cause they don’t think it worked. Strangely even with the Google Analytics code
   entered the Verification Error still shows?
 * [http://www.drsau.com/contact/](http://www.drsau.com/contact/)
 * Thanks very much for you help and the great plugin!
 * Kind regards,
    Shane

Viewing 1 replies (of 1 total)

The topic ‘Javascript error after adding GA tacking code’ 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/)

## Tags

 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [shanebecks](https://wordpress.org/support/users/shanebecks/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-after-adding-ga-tacking-code/#post-5055659)
 * Status: not resolved