• Resolved luka995

    (@luka995)


    First of all, this is a great plugin, my site got 100% at page speed insights.
    
    But I have a problem when I turn on the minification option both automatic and manual, I have a problem with Google Analytics picking up any data.
    
    As long as minify JS is turned off, everything is OK, but then my page speed score is lower.
    
    Is there any way to fix this other than seeing FAQ because I don't quite understand what should I do?
    
    I use the Avada theme.
    • This topic was modified 2 years, 10 months ago by luka995.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @luka995

    Thank you for reaching out and I am happy to assist you with this.
    This is the first time I am seeing this kind of issue reported. There should be no issues whatsoever with Minification and Google Analytics.
    Can you please share your website URL?
    Also, re-enable minify on Auto, and disable the settings in Performance>Minify one by one (HTML minify, JS minify, CSS minify) and see which one might be causing the issue.
    Make sure to save all settings and purge the cache after each option is disabled.
    Thanks!

    Thread Starter luka995

    (@luka995)

    https://elektrovat.net/

    The problem is with JS minify.

    I tried bypassing this problem by installing GA plugin instead using Avada theme tracking code option.

    Still testing this out…

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @luka995

    Thank you for the information
    I am not familiar with the Avada theme tracking code option, so it appears that there is a problem with how the GA is added by the Avada theme.
    I’ve checked your website and as I can see Google analytics is installed and showing the UA tracking code
    You can try with the GA plugin or add the Google analytics script manually.
    If you wish to continue using the Avada theme option, you need to determine which JS file is responsible for this and exclude it from being minified in Perfomrance>Minify>Advanced>Never Minify following JS files.
    I hope this helps!
    Thanks!

    Thread Starter luka995

    (@luka995)

    Dear @vmarko

    Firstly, thank you for your swift response.

    I did the following:
    – I decided to use “SITE KIT” plugin by Google
    – I put the corresponding JS file into “Never minify following JS file”

    For the time being, everything works as it should.

    I am grateful for your time, will keep you updated if anything else comes up.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @luka995

    You are most welcome.
    Let me know if you continue to experience the problem.
    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘W3 total cache minify JS obstructing google analytics from working’ is closed to new replies.