• Resolved redshot

    (@redshotalpha)


    We have a wordpress website with google analytics installed with the code similar below:

    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
    
      ga('create', 'UA-123456-1', 'auto');
      ga('send', 'pageview');
    
    </script>

    Since we installed W3TC 3 weeks ago, we had a conversion report from AdRelevance yesterday, which was the first conversion of approximately two weeks.

    These are the current settings we have:
    Page Cache: Enabled
    Minify: Enabled
    JS Minify Settings: Enabled
    Embed type:
    Before </head> Minify Non-blocking using “defer”
    After <body> Minify Non-blocking using “defer”
    Before </body> Minify Default (blocking)

    Browser Cache: Disabled

    Do you know what other settings should I set like Enabling the browser cache to solve this kind of issue?

    • This topic was modified 6 years ago by redshot.
Viewing 7 replies - 1 through 7 (of 7 total)
  • bgdstr

    (@bogdanstratulat)

    have you performed a compatibility test? Please note that there are couple of pache modules that are a must for browser cache to work.

    Thread Starter redshot

    (@redshotalpha)

    Hi,

    I haven’t performed a compatibility test yet.

    Is compatibility test needed for googly analytics script?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @redshotalpha,

    I see that you ar using Manual minify. have you added https://www.google-analytics.com/analytics.js??

    Thread Starter redshot

    (@redshotalpha)

    Hello @vmarke

    This is how the our JS Minifi Settings look like(Please see screenshot below):
    https://www.screencast.com/t/OJ99LI6Z84N2

    Do I need to click Add Script button below the text

    Files are minified by template. First select the theme to manage, then add scripts used in all templates to the “All Templates” group. Use the menu above to manage scripts unique to a specific template. If necessary drag & drop to resolve dependency issues (due to incorrect order).

    No JS files added

    ?

    Thread Starter redshot

    (@redshotalpha)

    Hello,

    Do you know if I still need to set anything in the

    JS File management

    section for the analytics?

    Thanks.

    • This reply was modified 6 years ago by redshot.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    You haven’t added any JS files to minify.
    If the analytics js file hasn’t been added that means that it’s not minified. Therefore the issue is not caused by minification or W3 Total Cache.

    Thread Starter redshot

    (@redshotalpha)

    @vmarko

    Thank you for letting me know

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to make google analytics work well with W3 Total Cache?’ is closed to new replies.