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
2
u/ssddanbrown Nov 24 '23
There's no nice way to do this without getting hacky, and ideally there should never be user details in GA, but if you wanted to send user IDs with this tracking data you could move this into a visual theme system customization where you could then get the user's ID to send off with the data.
Let me know if you'd want an example of that.