analytics/assets/js/dashboard
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
..
components List props frontend (#3126) 2023-07-21 11:19:07 +03:00
stats Add revenue metrics to Properties report (#3209) 2023-08-01 13:52:31 +01:00
util Fix long URLs in outbound breakdown (#3183) 2023-07-24 12:37:20 +02:00
api.js Bugfix for #3005 (#3025) 2023-06-13 12:26:33 +02:00
comparison-consumer-hoc.js Adds Main Graph Metric Selection (#1364) 2022-04-13 10:38:47 +03:00
comparison-context.js Adds Main Graph Metric Selection (#1364) 2022-04-13 10:38:47 +03:00
comparison-input.js Prepare Comparisons for release (#2873) 2023-04-26 12:22:33 +01:00
comparison-provider-hoc.js Adds Main Graph Metric Selection (#1364) 2022-04-13 10:38:47 +03:00
datepicker.js Prepare Comparisons for release (#2873) 2023-04-26 12:22:33 +01:00
error-boundary.js Adds dark mode to entire dashboard (#467) 2020-12-16 11:57:28 +02:00
fade-in.js Additional pre-commit hooks (#1428) 2021-11-03 15:46:12 +01:00
filters.js remove custom_dimension_filter feature and views_per_visit_metric flags (#2996) 2023-06-07 11:02:36 +03:00
historical.js Make the ListReport component more flexible (#3078) 2023-07-06 17:29:08 +03:00
index.js Make the ListReport component more flexible (#3078) 2023-07-06 17:29:08 +03:00
keybinding.js Support multiple filters - frontend (#2773) 2023-03-27 16:51:31 +03:00
mount.js List props frontend (#3126) 2023-07-21 11:19:07 +03:00
pinned-header-hoc.js Add fallback if InteractionObserver is unavailable 2022-02-08 15:07:40 -06:00
query.js Match day of the week feature for comparisons (#2822) 2023-04-13 14:01:54 +01:00
realtime.js Make the ListReport component more flexible (#3078) 2023-07-06 17:29:08 +03:00
router.js Props details view (#3196) 2023-07-28 19:44:56 +01:00
site-switcher.js Fix svg favicons (#2295) 2022-10-04 13:20:51 +03:00