You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/test/plausible_web/controllers/api/stats_controller
RobertJoonas 8ac166b447
Add revenue metrics to Properties report (#3209)
* extract add_exit_rate function

* Change internal API metric names for /entry-pages & /exit-pages

* `unique_entrances` -> `visitors`,
* `total_entrances` -> `visits`,
* `unique_exits` -> `visitors`,
* `total_exits` -> `visits`,

This is just a consistency improvement - the `visitors` metric always means
one thing and there's no need to call it different for entry pages internally.

This commit does not change any noticable behavior. The UI labels are kept
the same and the column headers in the CSV export will also remain the same.

* Change internal API metric names for /conversions

* `unique_conversions` -> `visitors`,
* `total_conversions` -> `events`,

* return revenue metrics from /custom-prop-values (backend)

* be more explicit about which metric is plotted with Bar

* validate that ListReport input metrics actually exist in the API response

* display revenue metrics in the dashboard Properties section

* limit the number of columns shown on mobile

* add revenue metrics to Properties > Details

* review suggestions

* define hiddenOnMobile per metric instead of keeping the first 3

* rewrite if-else block

---------

Co-authored-by: Vini Brasil <vini@hey.com>
3 years ago
..
authorization_test.exs Google APIs integration improvements (#2358) 4 years ago
browsers_test.exs Props details view (#3196) 3 years ago
cities_test.exs Reject unknown imported cities from queries (#2675) 4 years ago
conversions_test.exs Refactor: Standardize API metrics used internally (#3208) 3 years ago
countries_test.exs Props details view (#3196) 3 years ago
current_visitors_test.exs Conditionally support switching between v1 and v2 clickhouse schemas (#2780) 4 years ago
custom_prop_breakdown_test.exs Add revenue metrics to Properties report (#3209) 3 years ago
funnels_test.exs Evaluate ephemeral funnels before saving (#3097) 3 years ago
main_graph_test.exs Plot revenue metrics on main graph (#3112) 3 years ago
operating_systems_test.exs Props details view (#3196) 3 years ago
pages_test.exs Refactor: Standardize API metrics used internally (#3208) 3 years ago
prop_breakdown_test.exs New private API to return custom prop values (#3111) 3 years ago
regions_test.exs Harden API input validation (#2869) 4 years ago
screen_sizes_test.exs Props details view (#3196) 3 years ago
sources_test.exs Refactor: Use ListReport component in Sources (#3153) 3 years ago
suggestions_test.exs Props into CSV export (#3167) 3 years ago
top_stats_test.exs Add revenue metrics to top stats (#3059) 3 years ago