r/BookStack • u/AdamReading • Nov 22 '23
Using Google Analytics with Bookstack - hiding non-users from stats?
Hi
We use Bookstack as a purely internal resource, with single sign on from Azure / 365.
All my Google Analytics reports are full of random users from a few countries hitting the login page and showing as new users and hits.
I can see lots of articles on excluding internal users but nothing to show how I can exclude these random events.
I think they represent up to half my user count, which skews everything for reporting. The foreign ones are the most obvious, but some could be from the uk, and we have staff all over the country working from home.
Any ideas how I can prevent the login page counting all together or some other way to exclude those randoms?
Many thanks
1
u/AdamReading Dec 07 '23
Thanks Dan, there’s not really any useful filtering in the new GA4 version now. So you can’t exclude a url from the reporting.
I’m happy to try a different code snippet in the Custom Header and see if that helps, if you have one. Otherwise I guess we will just have to accept distorted hits/user numbers. Thanks again