• Resolved vanbclothing

    (@vanbclothing)


    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

    (@futtta)

    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

    (@vanbclothing)

    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

    (@futtta)

    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

    (@vanbclothing)

    Thank you Frank. I will follow up with enhanced ecommerce plugin’s support.

    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.