Commit ac10801
authored
Fixed data inconsistency in Post Analytics > Overview tab (#24558)
ref
https://linear.app/ghost/issue/PROD-2243/inconsistency-in-the-post-analytics-overview-data-compared-to-post
On the Post Analytics > Overview tab, the top level metric shown for
unique visitors and the sum of the actual data in the chart can show
different values. The metric and the chart are using separate requests
to the same API endpoint with different `date_from` parameters,
resulting in slightly different numbers, i.e. it's possible to see "1
unique visitor" but with 0 for every data point on the chart:
<img width="2306" height="1388" alt="image"
src="https://github.com/user-attachments/assets/110ede5c-8ea6-4600-bdb1-f1d7950fd59e"
/>
This fixes that by removing the duplicate API call, so the data for the
metric and the chart use the same exact underlying data.1 parent 2be1eed commit ac10801
1 file changed
+6
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
| 35 | + | |
37 | 36 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 37 | | |
59 | 38 | | |
60 | 39 | | |
| |||
73 | 52 | | |
74 | 53 | | |
75 | 54 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 55 | | |
83 | 56 | | |
84 | 57 | | |
85 | | - | |
| 58 | + | |
86 | 59 | | |
87 | 60 | | |
88 | 61 | | |
89 | 62 | | |
90 | | - | |
| 63 | + | |
91 | 64 | | |
92 | 65 | | |
93 | | - | |
| 66 | + | |
94 | 67 | | |
95 | 68 | | |
96 | 69 | | |
97 | | - | |
| 70 | + | |
98 | 71 | | |
99 | 72 | | |
100 | 73 | | |
| |||
115 | 88 | | |
116 | 89 | | |
117 | 90 | | |
118 | | - | |
| 91 | + | |
119 | 92 | | |
120 | 93 | | |
121 | 94 | | |
| |||
0 commit comments