Google Analytics events dont work




Wordpress LScache Plugin: Google Analytics events dont work

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello, I updated LiteSpeed Cache plugin to 3.6.2 version. I noticed then that Google Analytics stopped working. So I downgraded it to 3.6.1 version (the same settings) and Google Analytics start to work?. BUT events are not tracked. I tried to do things from here https://wordpress.org/support/topic/litespeed-plugin-is-stopping-the-google-analytics-script/ but it didnt help. Now I use 3.6.1 version and Google Analytics works but events are not tracked in Google Analytics. The page I need help with: https://lasti.pl Hi, Please try remove the GA URL from the localization list , purge all, and see how it goes Best regards Hi, I removed: https://www.google-analytics.com/analytics.js https://www.googletagmanager.com/gtag/js from localization. Purged all. Still event are not tracked. I write in my first post that I did it beacuse it was mentioned here https://wordpress.org/support/topic/litespeed-plugin-is-stopping-the-google-analytics-script/ but it didnt help. When I turn off plugin it works fine. When plugin is ON only traffic is collected but evenst are not tracked. Hi, please try add gtag analytics into JS exclude list, purge all , see how it goes Best regards, Hi, I added: gtag analytics into js exclude and even removed: https://www.google-analytics.com/analytics.js https://www.googletagmanager.com/gtag/js from localization but still events are not tracked : ( Hi, Okay , lets try old-fashion way if you disable localization , JS minify , JS combine , combine inline/external JS , defer JS , defer inline JS , does it work ? Best regards, Hi, i tried to disable setting you mentioned but it didnt help so I leaved all settings turned on BUT one thing I changed is Load Inline JS from after dom ready to default . Now it works : ) Hi, then you can exclude the GA inline code from being defer gtag analytics add them into JS defer exclude (dont mistake it with JS exclude) Best regards,



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference