litespeed and google analytics error
-
Hello
since activating Litespeed caching (latest version) I noticed a big discrepancy in google analytics. Most of the traffic is marked as Direct.
I found an earlier thread about how this was solved but, it seems it hasn’t.
This is the google analytics code that I use:
<!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-xxxxxx"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-xxxxxxx-1'); gtag('config', 'G-xxxxxxx'); </script>
I’ve added under JS excludes and JS Deferred excludes:
analytics.js
gtagNow I’ve also added those under Guest mode excludes which impacts the Pagespeed score negatively.
Is there anything else I should do or change in order to solve this?
thank you!
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘litespeed and google analytics error’ is closed to new replies.