analytics/lib
RobertJoonas fce909d041
Improve merge imported (#4003)
* Pass the actual date args that are returned in fixtures (just for clarity)

* Change select key from operating_system to os

* Select (not set) from imported data as done from native stats

* Support breakdown by imported os_version

* Remove dead code

The `query.include_imported` is set to `false` from the start when
filters are included.

* Refactor Plausible.Stats.Imported

Extract a function that does group_by and dimension select, instead of
doing both separately inside the merge_imported function body

* Further refactor of Plausible.Stats.Imported

Get rid of code repetition

* Support breakdown by imported browser_version

* Support breakdown by imported referrer

* Support breakdown by imported referrer

* remove redundant if in select

* use greatest instead of coalesce

Co-authored-by: ruslandoga <doga.ruslan@gmail.com>

* add back the :member filter handling in Stats.Imported

---------

Co-authored-by: Uku Taht <uku.taht@gmail.com>
Co-authored-by: ruslandoga <doga.ruslan@gmail.com>
2024-04-16 16:58:22 +01:00
..
mix/tasks Filter by hostnames (#3963) 2024-04-04 10:48:30 +02:00
plausible Improve merge imported (#4003) 2024-04-16 16:58:22 +01:00
plausible_web use custom email template for csv imports (#4011) 2024-04-16 10:10:59 +02:00
workers Reapply "Local CSV exports/imports and S3/UI updates (#3989)" (#3995) (#3996) 2024-04-11 09:15:01 +02:00
oban_error_reporter.ex safe(r) Oban telemetry (#3743) 2024-02-14 10:12:03 +01:00
plausible_release.ex Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
plausible_web.ex Merge Plugins.API.Router into main one (#3767) 2024-02-12 10:44:32 +01:00
plausible.ex Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
sentry_filter.ex Update Sentry (#3843) 2024-03-18 10:10:20 +01:00