analytics/test/plausible_web/controllers
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>
2023-08-01 13:52:31 +01:00
..
api Add revenue metrics to Properties report (#3209) 2023-08-01 13:52:31 +01:00
auth_controller add LOG_FAILED_LOGIN_ATTEMPTS (#2936) 2023-05-25 10:37:10 +03:00
CSVs Props into CSV export (#3167) 2023-07-24 15:27:44 +01:00
site Upgrade phoenix (#2902) 2023-05-09 11:51:35 +03:00
admin_auth_controller_test.exs improve first launch experience for self-hosters (#2357) 2022-11-10 12:42:22 +01:00
auth_controller_test.exs Wrap user deletion in DB transaction (#2964) 2023-05-24 14:23:23 +03:00
billing_controller_test.exs Run tests in async mode where applicable (#2542) 2022-12-26 10:20:29 -03:00
error_report_controller_test.exs Funnel site settings (#3039) 2023-06-22 09:00:07 +02:00
invitation_controller_test.exs Fix APP-46E: accept invitation 2nd click (#3120) 2023-07-11 10:52:09 +02:00
page_controller_test.exs add landing page (#2989) 2023-06-01 14:34:48 +03:00
site_controller_test.exs Fix unique constraint validation on weekly/monthly reports (#3200) 2023-07-27 14:27:01 +02:00
stats_controller_test.exs Props into CSV export (#3167) 2023-07-24 15:27:44 +01:00
unsubscribe_controller_test.exs Run tests in async mode where applicable (#2542) 2022-12-26 10:20:29 -03:00