With pages broken down by URL, sorting the Top pages details also sorts the Entry pages and Exit pages details
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 75/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- elixir, javascript
Hướng nghiên cứu
Bắt đầu với assets/js/dashboard/hooks/use-metric-order-by.ts, ở phần tạo khóa sắp xếp đã lưu và getStoredOrderBy, sau đó kiểm tra ba mục báo cáo URL trong assets/js/dashboard/stats/reports/reports-config.ts, quanh các dòng 170, 206 và 255. Tái hiện lỗi bằng cách sắp xếp Top pages ở chế độ URL rồi mở chi tiết Entry pages hoặc Exit pages. Hoàn tất khi mỗi báo cáo giữ thứ tự sắp xếp riêng và hành vi của chế độ Path vẫn như mong đợi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Watch in BugReels (URL is picked at 0:17, Top pages is sorted by Visitors ascending at 0:35, the Entry pages details open sorted ascending at 1:42, Top pages is sorted by Bounce rate at 3:03, and the Entry pages details open sorted by Bounce rate at 3:34)
Past Issues Searched
- I have searched open and closed issues to make sure that the bug has not yet been reported
Issue is a Bug Report
- This is a bug report and not a feature request, nor asking for self-hosted support
Using official Plausible Cloud hosting or self-hosting?
Plausible Cloud from plausible.io
Describe the bug
When the pages report is broken down by URL, the Top pages, Entry pages and Exit pages details share one stored sort order. Sorting one of them changes how the others open. In Path mode each of the three keeps its own sort.
Reproduced on the public demo dashboard https://plausible.io/plausible.io on 2026-10-26, in a fresh browser profile. The code is the same on master (57f734e).
Steps:
- In the pages report, click "Breakdown options" and pick "URL".
- With "Top pages" selected, click "View details", click the "Visitors" header once (lowest first), and close the details.
- Click the "Entry pages" tab and click "View details".
Actual: the Entry pages details open sorted by "Unique entrances" ascending, starting with "ingest.plausible.io/blog/community-edition" with 1 unique entrance. localStorage has a single key, order_URL_by__plausible.io = [["visitors","asc"]], for all three URL reports. Later in the same recording, Top pages is sorted by Bounce rate, and the Entry pages details then open sorted by Bounce rate as well.
Expected behavior
The Entry pages details open with their default sort, most unique entrances first, the same as in Path mode, where the keys are order_Page_by, order_Entry page_by and order_Exit page_by. The sort chosen in Top pages applies to Top pages only.
Cause
The stored sort key is built from the report's dimensionLabel:
The three URL reports all use the label "URL":
https://github.com/plausible/analytics/blob/57f734e3dbc5e96d868766dc1e61064984ee3a80/assets/js/dashboard/stats/reports/reports-config.ts#L170
https://github.com/plausible/analytics/blob/57f734e3dbc5e96d868766dc1e61064984ee3a80/assets/js/dashboard/stats/reports/reports-config.ts#L206
https://github.com/plausible/analytics/blob/57f734e3dbc5e96d868766dc1e61064984ee3a80/assets/js/dashboard/stats/reports/reports-config.ts#L255
getStoredOrderBy accepts the stored value whenever its metric is sortable in the current report. Visitors and bounce rate exist in Top pages and Entry pages, and visitors exists in Exit pages, so the stored sort carries across. The labels came from #6452, which added the URL breakdown. The label is also the column header, so the key needs something unique per report instead, for example the report's detailsPath (pages-with-hostname, entry-pages-with-hostname, exit-pages-with-hostname). I have not tested that change.
Screenshots
The replay link above shows the dashboard.
Environment
- OS: Linux
- Browser: Chrome
- Browser Version: 151
This report was drafted with Claude Code (Claude Opus 5.5). The bug was reproduced on the demo, and the cause was checked against the linked source.
- Ngôn ngữ chính
- Elixir
- Star
- 29.7k
- Fork
- 1.9k
- Merge trung bình
- 3 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 50
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của plausible/analytics
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
ObanErrorReporter purges imported data when the cleanup worker crashes — silent loss of completed CSV importsCó thể đã có người làm @EmmS21 đã nhận 96 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
plausible/analytics#5201 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Wrong API URL for GTMĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
plausible/analytics#5200 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[Tracker] Scroll-depth tracking still forces layout on large pages after #6174Có thể đã có người làm @trotzig đã nhận 21 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 18/100
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của plausible/analytics
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
MustacheCase/zanadir#403 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pip: same package pinned twice with different casing in pyproject.toml, only the first pin is updatedCó thể đã có người làm @v-abhishekbhaskar đã nhận 1 ngày trước. Đang mởL: python L: ruby:bundler T: bug 🐞
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
dependabot/dependabot-core#16756 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feat: signup pageĐang mởd: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100