Title: jQuery error Google Analytics
Last modified: February 27, 2017

---

# jQuery error Google Analytics

 *  Resolved [vanbclothing](https://wordpress.org/support/users/vanbclothing/)
 * (@vanbclothing)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-google-analytics/)
 * Hi,
 * I recently installed the plugin Enhanced E-commerce for Woocommerce store to 
   be able to track my data in Google Analytics. However, I have encountered some
   issues after installing the plugin and contacted the plugin support to fix these
   issues. They notified me that one issue seems to relate to a jQuery error which
   is most likely caused by the minifcation of Autoptimize. I’m therefore contacting
   you to inquire if you have a solution for this problem. My site is vanbclothing.
   nl.
 * Thanks, Maarten
 * I have the following plugins installed:
    Autoptimize Breadcrumb NavXT Contact
   Form 7 Enhanced E-commerce for Woocommerce store Mollie Payments for WooCommerce
   Slider Revolution Swift Framework WooCommerce WooCommerce Multilingual WooCommerce
   Quickview WP Rocket WPML Media WPML Multilingual CMS WPML String Translation 
   WPML Translation Management YITH WooCommerce Wishlist Yoast SEO

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-google-analytics/#post-8851734)
 * Morgend Maarten;
    Something is putting your jquery on `/wp-content/cache/busting/
   1/wp-includes-js-jquery-jquery-1.12.4.js` which does not match AO’s default exclude
   of `js/jquery/jquery.js`. To fix that, you can simple add `wp-includes-js-jquery-
   jquery` to the comma-separated JS optimization exclusion list.
 * Succes ermee!
    zuiderbuur frank
 *  Thread Starter [vanbclothing](https://wordpress.org/support/users/vanbclothing/)
 * (@vanbclothing)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-google-analytics/#post-8851831)
 * Hi Frank,
 * Bedankt voor de snelle reactie!
 * Ik heb zojuist de uitzondering toegevoegd aan de exclusion list. Hoe kan ik snel
   vaststellen of de jQuery error hiermee opgelost is?
 * Groet, Maarten
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-google-analytics/#post-8851897)
 * Ik vervolg in het Engels, kwestie dat toevallige (toekomstige) voorbijgangers
   ook iets aan deze thread hebben 🙂
 * So there are 2 things;
    1. you can check your HTML source, in there you should
   now see references to `wp-includes-js-jquery-jquery-1.12.4.js` (and I can confirm
   that is the case), so jquery is now most certainly available for any plugin to
   use early 2. there still, however, is a “jquery is not defined”-error on the 
   browser conosle, which most likely is caused by a plugin not doing things the
   right way. this is confirmed by the fact that the error also appears when AO 
   isn’t active (you can see this by adding `?ao_noptimize=1` to the URL).
 * So you’ll probably have to provide this info to enhanced commerce plugin’s support.
 * frank
 *  Thread Starter [vanbclothing](https://wordpress.org/support/users/vanbclothing/)
 * (@vanbclothing)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-google-analytics/#post-8851978)
 * Thank you Frank. I will follow up with enhanced ecommerce plugin’s support.
 *  [Andries Jansen](https://wordpress.org/support/users/jansencws/)
 * (@jansencws)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/jquery-error-google-analytics/#post-9292060)
 * The WP-Rocket option “Query strings van statische bestanden verwijderen” puts
   the js and css files in the /wp-content/cache/busting/sitenumber folder. Uncheck
   it and the problem is solved.
 * Groet,
    Andries

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

The topic ‘jQuery error Google Analytics’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Andries Jansen](https://wordpress.org/support/users/jansencws/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/jquery-error-google-analytics/#post-9292060)
 * Status: resolved