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
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
4 years ago
..
controllers Add new `Pages / Visit` metric to Stats API Aggregate and Timeseries (#2714) 4 years ago
plugs Add Content-Security-Policy to favicon Plug (#2489) 4 years ago
templates Add data-domain to tracking script (#2663) 4 years ago
views Show user feedback form on server errors (#2617) 4 years ago
captcha.ex Include tests for Captcha success/failure scenarios (#2344) 4 years ago
email.ex Show user feedback form on server errors (#2617) 4 years ago
endpoint.ex Sentry cleanup (#2590) 4 years ago
refinspector.ex [Continued] Google Analytics import (#1753) 5 years ago
remote_ip.ex Parse bunny header 5 years ago
router.ex Show user feedback form on server errors (#2617) 4 years ago