• Resolved oblanda004

    (@oblanda004)


    I use W3 total cache on my site giftlightbulbs com but have problem caused by plugin. I know that plugin cause problem because when I deactivate plugin everything work normal. Problem is this one (please check images)
    https://ibb.co/vjgbXbg
    https://ibb.co/PQtLgQG

    I do not know why and how but when plugin is activated I have this 2 page request and when someone visit my site I got 2 pageviews in analytics. And this cause extremely low bounce rate in my Google analytic and incorrect data and statistic I use just one code

    <!– Global site tag (gtag.js) – Google Analytics –>
    <script async src=”https://www.googletagmanager.com/gtag/js?id=UA-416xxxx-3″></script&gt;
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());

    gtag(‘config’, ‘UA-41xxxxx-3’);
    </script>

    and I add it with plugin https://www.ads-software.com/plugins/ga-google-analytics/

    I use this plugin on my other sites and work without any problems with other caching plugins. I inserted GA code in header with this plugin. I also must to say again, when I deactivate W3 Total Cache there is no problem and everything work fine.

    Can you tell me what I can do to resolve this problem

Viewing 2 replies - 1 through 2 (of 2 total)
  • HKP

    (@hiskingdomprophecy)

    @oblanda004

    An unusually low bounce rates means your GA ‘UA-41xxxxx-3’ appears twice.
    Since GA was working and recording accurately when W3TC is deactivated, the solution is to remove the GA ‘UA-41xxxxx-3’ from W3TC.
    I speak from experience – the same happened to me….

    For your information, I am not associated with W3TC.
    Regards!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @oblanda004,

    You can Use page fragment cache around the analytics script (check our FAQ for Page Fragment Cache details)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘W3 Total Cache cause problem with Google Analytics’ is closed to new replies.