W3 Total Cache cause problem with Google Analytics
-
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/PQtLgQGI 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>
<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
- The topic ‘W3 Total Cache cause problem with Google Analytics’ is closed to new replies.