This topic explains the difference between Discourse’s legacy pageview tracking method and the new pageview tracking that was introduced in September 2024.
Required user level: Administrator
In September 2024, Discourse introduced a better way of tracking and reporting pageviews, providing more detailed insights into site traffic. This document outlines the key differences between the old method and the new approach.
Pageview tracking
We are in the process of rolling this pageview tracking out to hosted customers, so not all sites will be switched over right away.
The new method, presented in the “Site traffic” report, offers a more nuanced view of site traffic by categorizing pageviews into four types:
- Pageviews (logged in): Pageviews from users who are logged into your Discourse instance.
- Pageviews (anonymous): Pageviews from users who are not logged in but are using a web browser.
- Known crawlers: Pageviews from identified web crawlers or bots (e.g., search engine crawlers).
- Other traffic: This category includes various types of requests that don’t fall into the other three categories, including other crawlers.
The default report view hides the known crawlers and other traffic metrics, so that it aligns with the pageview metrics displayed elsewhere in the dashboard.
Note that only logged in browsers and anonymous browsers count toward the pageview limits on hosted plans.
Accessing the site traffic report
To view the new site traffic report:
- Log in as an administrator
- Go to the Discourse dashboard
- Navigate to
discourse.example.com/admin/reports/site_traffic
Find out more about pageview tracking and the site traffic report here:
Legacy tracking method
Discourse’s legacy method, that began being phased out in September 2024, counted pageviews as all requests for content, including:
- Requests for lists of categories, topics, or posts
- Initial page loads
- Transitions between routes
- All crawlers, whether known or unknown
- All Discourse API requests
The system would attempt to count pageviews only on initial page loads or significant route changes to avoid inflating numbers, and the pageviews would be listed as a single metric, with all of them counting toward pageview limits on hosted plans.
If you would like to access the reports for the legacy method to better track your pageview history you will find them in the “Legacy Consolidated Pageviews” and “Legacy Pageviews” reports.
Last edited by @hugh 2024-10-24T01:47:56Z
Last checked by @hugh 2024-10-24T01:48:42Z
Check document
Perform check on document: