Forem Creators and Builders 🌱

Discussion on: What is handling stats on self-hosted forem?

Collapse
 
pandeybk profile image
Balkrishna Pandey • Edited

This is what I am seeing write now in google analytics. Forem shows

forem.dev/remoteimages/uploads/art...

"Readers this Week: 2".
So how we count readers?
forem.dev/remoteimages/uploads/art...

Collapse
 
ellativity profile image
Ella (she/her/elle)

This could be a caching issue on Forem, or a discrepency in Forem/GA logic. e.g. your Forem is public but doesn't count anonymous page views (not logged-in members), and if GA does (I'm not 100% sure this is the case!), then you're going to see more hits from GA.

The cool thing from a community manager's perspective is, if you're recording member engagement, you can use these separate datasets to compare and contrast the difference between member and non-member views.

Additionally, without knowing exactly how GA is logging requests/views, it may be logging a single view multiple times. Forem's frontend updates the database every 15 seconds you're reading a post, to collect data on how long people are spending on each post. If GA is counting every request from frontend to backend, then it could be counting a new pageview every 15 seconds, even if Forem is only counting that as a single page view.

Thread Thread
 
pandeybk profile image
Balkrishna Pandey

I believe you've addressed my question.

"but doesn't count anonymous page views (not logged-in members),"

Thread Thread
 
ellativity profile image
Ella (she/her/elle)

Glad you feel your question is answered! Again, I'm not 100 that this is the discrepancy, because I don't know exactly what GA is logging, so please take this theory with a grain of salt πŸ˜‰