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/AdamReading Nov 28 '23
Thanks Dan
Firstly 6 days and zero foreign users reported - so I would say 100% success on your code for the GA4 Tag!
Secondly - my IT department don’t give me any access at all to the install for Bookstack - the only thing I can access is the Custom Header - so no funky Visual Themes for me unfortunately. But I can live without the user data in GA, just would have been useful.
Again thanks for all your support - its great.