Title: Google Analytics Tracking not working
Last modified: August 24, 2016

---

# Google Analytics Tracking not working

 *  Resolved [robinnc](https://wordpress.org/support/users/robinnc/)
 * (@robinnc)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/google-analytics-tracking-not-working-3/)
 * We installed the plugin and the forms are working.
    One thing remains, tracking
   in Google Analytics. We followed the instructions found here: [https://mc4wp.com/kb/google-analytics-tracking/](https://mc4wp.com/kb/google-analytics-tracking/)
   But, have yet to see any of the events show up in Google Analytics.
 * Anyone else experience this?
 * [https://wordpress.org/plugins/mailchimp-for-wp/](https://wordpress.org/plugins/mailchimp-for-wp/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/google-analytics-tracking-not-working-3/#post-6130389)
 * Hi Robin,
 * Which of the snippets listed are you using? The top snippet is only for AJAX 
   enabled forms which only exist in the premium version of the plugin.
 * If you want to track your form submissions using the lite version of the plugin,
   please use the bottom snippet **or add your tracking code to the success message**.
 * _Example script (all form submissions)_
 *     ```
       <script type="text/javascript">
   
       // find all mailchimp for wordpress forms
       var forms = document.querySelectorAll('form.mc4wp-form, .mc4wp-form form');
   
       // attach google analytics event to form submit event
       for( var i = 0; i < forms.length; i++ ) {
       	forms[i].onsubmit = function() {
       		// analytics.js
       		ga('send', 'event', 'button', 'click', 'Sign-up form submission');
   
       	}
       }
       </script>
       ```
   
 * _Example success message with tracking code_
 *     ```
       Thanks a lot, please check your inbox for a confirmation email! <script type="text/javascript">ga('send', 'event', 'button', 'click', 'Sign-up form submission');</script>
       ```
   
 * Hope that helps!

Viewing 1 replies (of 1 total)

The topic ‘Google Analytics Tracking not working’ is closed to new replies.

 * ![](https://ps.w.org/mailchimp-for-wp/assets/icon-256x256.png?rev=1224577)
 * [MC4WP: Mailchimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-wp/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/google-analytics-tracking-not-working-3/#post-6130389)
 * Status: resolved