analytics/test/plausible_web
RobertJoonas 0d6c72d50f
Add new Pages / Visit metric to Stats API Aggregate and Timeseries (#2714)
* refactor metric validation

* link to the correct docs section

* add the new metric to aggregate API

* explicitly remove __internal_visits

The overall metric selection is well defined by
`Plausible.Stats.Timeseries.empty_row/2`. The only metric that needs
to be removed from the timeseries response is __internal_visits.

This commit also moves the `remove_internal_visits_metric` function to a
new Util module to be used by both breakdown and timeseries.

* add the new metric to timeseries API

* mix format

* add moduledoc to keep credo happy

* convert pages_per_visit to string straight away

* do rounding in db query

* query # of visits with sum(sign) instead

* stop converting pages_per_visit to string
2023-03-06 12:07:53 +02:00
..
controllers Add new Pages / Visit metric to Stats API Aggregate and Timeseries (#2714) 2023-03-06 12:07:53 +02:00
plugs Run tests in async mode where applicable (#2542) 2022-12-26 10:20:29 -03:00
views remove redundant test 2022-11-10 15:55:33 +02:00
captcha_test.exs Google APIs integration improvements (#2358) 2022-10-24 09:34:02 +02:00
email_test.exs add tests for base_email template 2022-11-09 19:56:46 +02:00