analytics/lib/plausible_web/controllers/api
RobertJoonas c32779a3e5
Timeseries for conversion rate (#3919)
* add conversion rate to Stats API timeseries

* make sure CR can be queried as the only metric

* add a test asserting zeros are returned

* add tests for filtering by other properties at the same time

* Remove unnecessary validation of params

1. It doesn't make to validate `interval` (and its granularity) in all
   endpoints. It's only relevant for the main graph.

2. The plug (renamed to `date_validation_plug`) already makes sure that
   the dates are validated. No need to call the same function again in
   Top Stats and Funnel endpoints.

* add metric validation to main graph

* Add tests for main graph API

* put conversion rate on the graph

* update changelog

* Add revenue metrics into metrics.ex

* make fn private

* avoid setting graph metric to visitors in goal-filtered view
2024-03-21 13:58:00 +00:00
..
external_controller.ex IP Block List (#3761) 2024-02-12 14:55:20 +01:00
external_stats_controller.ex Timeseries for conversion rate (#3919) 2024-03-21 13:58:00 +00:00
helpers.ex Block Stats API for locked sites (#2302) 2022-10-04 15:34:45 +03:00
internal_controller.ex Implement pinned sites (#3469) 2023-11-13 09:08:26 +01:00
paddle_controller.ex Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00
stats_controller.ex Timeseries for conversion rate (#3919) 2024-03-21 13:58:00 +00:00