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/api
RobertJoonas 17b9e36a19
Refactor: Standardize API metrics used internally (#3208)
* 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`,
3 years ago
..
external_controller.ex derive jason encoder for request (#3182) 3 years ago
external_sites_controller.ex Clean up after V2 migration (#2868) 4 years ago
external_stats_controller.ex Enable sampling in the Stats API (#2985) 4 years ago
helpers.ex Block Stats API for locked sites (#2302) 4 years ago
internal_controller.ex Prevent robots from looking too much into public dashboards (#3118) 3 years ago
paddle_controller.ex Wrap paddle actions with DB transactions (#2558) 4 years ago
stats_controller.ex Refactor: Standardize API metrics used internally (#3208) 3 years ago