discourse/app
Osama Sayegh 10ae7ef44a
FEATURE: Add estimated number of global and EU visitors to the about page (#28382)
This commit implements 2 new metrics/stats in the /about page for the _estimated_ numbers of unique visitors from the EU and the rest of the world. This new feature is currently off by default, but it can be enabled by turning on the hidden `display_eu_visitor_stats` site settings via the rails console.

There are a number of assumptions that we're making here in order to estimate the number of unique visitors, specifically:

1. we're assuming that the average of page views per anonymous visitor is similar to the average number of page views that a logged-in visitor makes, and
2. we're assuming that the ratio of logged in visitors from the EU is similar to the ratio of anonymous visitors from the EU

Discourse keeps track of the number of both logged-in and anonymous page views, and also the number of unique logged-in visitors and where they're from. So with those numbers and the assumptions above, we can estimate the number of unique anonymous visitors from the EU and the rest of the world.

Internal topic: t/128480.
2024-08-21 00:03:42 +03:00
..
assets FEATURE: Add estimated number of global and EU visitors to the about page (#28382) 2024-08-21 00:03:42 +03:00
controllers FIX: Don't show silence button on staff users and display similar users (#28423) 2024-08-20 15:27:29 +03:00
helpers UX: Use localized time format in embedded comments (#28014) 2024-07-22 18:42:36 +08:00
jobs DEV: Allow using an AR relation as a model in services 2024-08-20 16:32:46 +02:00
mailers UX: Use a dropdown for SSL mode for group SMTP (#27932) 2024-07-18 10:33:14 +10:00
models FEATURE: Add estimated number of global and EU visitors to the about page (#28382) 2024-08-21 00:03:42 +03:00
serializers FIX: Don't show silence button on staff users and display similar users (#28423) 2024-08-20 15:27:29 +03:00
services DEV: Allow using an AR relation as a model in services 2024-08-20 16:32:46 +02:00
views DEV: Convert account activation pages to use Ember (#28206) 2024-08-12 18:02:00 -03:00