Site traffic explorer for new admin dashboard

AI-generated summary

tgxworld announced the release of a new Site Traffic Explorer for the admin dashboard. This admin-only tool allows filtering site traffic data by URLs, referrers, countries, networks, browsers, and IP addresses. By default, it analyzes the latest 200,000 pageviews within a selected date range, a limit that can be increased to 1,000,000 via the site_traffic_explorer_event_limit setting. However, raising this limit increases database load and might slow down query performance on less capable servers.

asa asked if Discourse plans to support custom track events, similar to tools like Umami. tgxworld clarified that there are currently no plans to add custom event tracking.

EricGT noticed that badge-related URLs appeared prominently in the Top URLs metric and asked for an explanation. tgxworld explained that internal metrics indicate these requests are likely from bots, evidenced by a 100% bounce rate.

Alfi requested details on how specific values in the UI are calculated or if a Data Explorer query is available.

Finally, nickdb reported that the explorer link seemed to open the old chart instead of the new details view. tgxworld had previously deployed the feature to nickdb’s hosted site, confirming it should be active.

We’ve released a new admin-only Site Traffic Explorer as part of the new admin dashboard.

It gives admins a clearer view of site traffic patterns, with filters for dimensions such as URLs, referrers, countries, networks, browsers, and IP addresses.

To open it, click the See details link in the site traffic section of the admin dashboard.

By default, the explorer analyzes the 200,000 most recent pageviews within the selected date range and can be configured up to a maximum of 1,000,000 pageviews via the site_traffic_explorer_event_limit site setting. A higher limit provides broader traffic coverage but requires more database resources and will increase loading times. Sites with more capable database servers can raise the limit, while sites experiencing slow queries or timeouts should lower it to maintain an acceptable user experience

21 Likes

Very nicely implemented, I really like it. Is there a plan to allow us to display track events, similar to how it works in Umami, for example? That’s a useful metric for us.

1 Like

Awesome, thanks to you and the Discourse team for your hard work!

Very useful!

1 Like

Took a look at your example and another one on a different site. The prevalence of badges among the Top URLs was not what I expected.

Can someone shed some light on why badge-related URLs are so prevalent? I have a theory, but facts are always better than guesses.

1 Like

I’m not seeing this on my hosted site..

Thanks for sharing the example but we currently do not have plans to add events tracking in Discourse.

From our own metrics, those requests look like they come from “bots” since they have a 100% bounce rate.

I’ve just deployed it to your hosted site :slight_smile:

4 Likes

Can anyone explain how the encircled values are calculated or has an Data Explorer query for it?

2 Likes

@tgxworld this seems to have disappeared from the admin page. The details link is present but it just opens the old chart, no details. Thanks