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/lib/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>
3 years ago
..
api Add revenue metrics to Properties report (#3209) 3 years ago
site improve transfer ownership error message (#2651) 4 years ago
auth_controller.ex disable registration by default in self-hosted setups (#3014) 3 years ago
billing_controller.ex Add tracking back to upgrade-success page (#2938) 4 years ago
error_report_controller.ex Simplify Phoenix error template (#2913) 4 years ago
helpers.ex Simplify Phoenix error template (#2913) 4 years ago
invitation_controller.ex Fix APP-46E: accept invitation 2nd click (#3120) 3 years ago
page_controller.ex add landing page (#2989) 4 years ago
site_controller.ex Create props settings page (#3191) 3 years ago
stats_controller.ex read FF status per user, not only global (#3185) 3 years ago
unsubscribe_controller.ex Add presence check when unsubscribing from email reports 6 years ago