discourse/app/models/concerns/reports
Martin Brennan 14b436923c
FEATURE: Switch to new methods of pageview measurement and reporting (#28729)
### UI changes

All of the UI changes described are gated behind the `use_legacy_pageviews`
site setting.

This commit changes the admin dashboard pageviews report to
use the "Consolidated Pageviews with Browser Detection" report
introduced in 2f2da72747 with
the following changes:

* The report name is changed to "Site traffic"
* The pageview count on the dashboard is counting only using the new method
* The old "Consolidated Pageviews" report is renamed as "Consolidated Legacy Pageviews"
* By default "known crawlers" and "other" sources of pageviews are hidden on the report

When `use_legacy_pageviews` is `true`, we do not show or allow running
the "Site traffic" report for admins. When `use_legacy_pageviews` is `false`,
we do not show or allow running the following legacy reports:

* consolidated_page_views
* consolidated_page_views_browser_detection
* page_view_anon_reqs
* page_view_logged_in_reqs

### Historical data changes

Also part of this change is that, since we introduced our new "Consolidated
Pageviews with Browser Detection" report, some admins are confused at either:

* The lack of data before a certain date , which didn’t exist before
  we started collecting it
* Comparing this and the current "Consolidated Pageviews" report data,
  which rolls up "Other Pageviews" into "Anonymous Browser" and so it
  appears inaccurate

All pageview data in the new report before the date where the _first_
anon or logged in browser pageview was recorded is now hidden.
2024-09-10 09:51:49 +10:00
..
bookmarks.rb DEV: Add missing report filter type in bookmarks report (#22616) 2023-07-18 11:07:01 +08:00
consolidated_api_requests.rb UX: Change consolidated pageview experimental report colors (#27240) 2024-05-29 17:01:30 +10:00
consolidated_page_views_browser_detection.rb FEATURE: Switch to new methods of pageview measurement and reporting (#28729) 2024-09-10 09:51:49 +10:00
consolidated_page_views.rb FEATURE: Switch to new methods of pageview measurement and reporting (#28729) 2024-09-10 09:51:49 +10:00
daily_engaged_users.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
dau_by_mau.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
emails.rb
flags_status.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
flags.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
likes.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
mobile_visits.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
moderator_warning_private_messages.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
moderators_activity.rb FEATURE: custom flag can require additional message (#27908) 2024-07-18 10:10:22 +10:00
new_contributors.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
notify_moderators_private_messages.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
notify_user_private_messages.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
post_edits.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
posts.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
profile_views.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
signups.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
site_traffic.rb FEATURE: Switch to new methods of pageview measurement and reporting (#28729) 2024-09-10 09:51:49 +10:00
staff_logins.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
storage_stats.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
suspicious_logins.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
system_private_messages.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
time_to_first_response.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
top_ignored_users.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
top_referred_topics.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
top_referrers.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
top_traffic_sources.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
top_uploads.rb DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
top_users_by_likes_received_from_a_variety_of_people.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
top_users_by_likes_received_from_inferior_trust_level.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
top_users_by_likes_received.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
topic_view_stats.rb FEATURE: Topic view stats report (#27760) 2024-07-09 15:39:10 +10:00
topics_with_no_response.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
topics.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
trending_search.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
trust_level_growth.rb UX: Use fixed colors for admin stacked chart reports (#21371) 2023-05-04 08:35:19 +02:00
user_flagging_ratio.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
user_to_user_private_messages_with_replies.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
user_to_user_private_messages.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
users_by_trust_level.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
users_by_type.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
visits.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
web_crawlers.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
web_hook_events_daily_aggregate.rb FEATURE: Add WebHookEventsDailyAggregate report page (#27573) 2024-06-27 10:26:42 -03:00