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
Matt Colligan f576fa2a2c
Improvements to CSV export (#1427)
* Add details=True to export API parameters

This makes the ZIP export add `%{"details" => "True"}` to the query's
`params` when fetching data internally for packaging in the ZIP.

This adds bounce_rate and time_on_page to the data in pages.csv, and
bounce_rate and visit_duration to sources.csv.

* Make API return data with consistent names

Some of the data types returned via the JSON or CSV API use inconsistent
naming, and some have redundant name changes (i.e. count -> visitors ->
count). This makes these all consistent and removes the redundancy.

This addresses #1426, fixes some of the CSV headers, and unifies the
JSON and CSV return data labels.

* Update changelog

* Test should use Timex.shift, not relative time

* Return full country names in CSV export

This also replaces the " character with ' in two country names, as those
are the characters used in the names, yielding a more predictable and
'correct' output.

* Fetch CSV exported data concurrently

* Use spinner to indicate when export has started

* Use 300 as default number of brekadown entries for export

Higher numbers (e.g. 1000) seem to cause clickhouse errors when there
many pages to request. It is unclear what is causing the error, as
clickhouse returns an "unknown" error code and an empty error message.
5 years ago
..
auth Change default API limit to 600 5 years ago
billing Update dependencies 5 years ago
event Added parameters for Clickhouse flush interval and max buffer size (#1073) 6 years ago
goal Adds same glob patterns as exclusions for pageview goals (#750) 6 years ago
google Revert "Get fresh search console data" 5 years ago
helpers Fix reading config from file (#1312) 5 years ago
session Added parameters for Clickhouse flush interval and max buffer size (#1073) 6 years ago
site Admin - CRM shows site owner (#1345) 5 years ago
stats Improvements to CSV export (#1427) 5 years ago
twitter Formatting only changes - No code change (#75) 7 years ago
application.ex Upgrades Oban to v2.6.1 (#967) 6 years ago
clickhouse_repo.ex Use clickhouse_ecto for db connection (#317) 6 years ago
goals.ex Formatting only changes - No code change (#75) 7 years ago
mailer.ex Add enterprise plans 5 years ago
repo.ex Pagination for sites listing (#994) 6 years ago
sites.ex Check site limit for enterprise customers 5 years ago
slack.ex Update dependencies 5 years ago
themes.ex Adds dark mode to entire dashboard (#467) 6 years ago
timezones.ex Formatting only changes - No code change (#75) 7 years ago