analytics/lib/plausible_web
Matt Colligan 29e37c8342 More improvements for CSV export (#1446)
* Round time_on_page metric returned by 'pages' API

This rounds the `time_on_page` metric returned as part of the `pages`
API to the nearest second. While this shows no apparent change in the
web UI, it removes the decimal from the exported data in `pages.csv`.

* Tidy up export tests

* Round time_on_page in db query

* Add goal to CSV export tests

* Display CSV export spinner until download is ready

The mechanism used to make the page aware that the download is ready is:

- Client code sets a cookie and requests download.
- Server code handles download and removes cookie when complete.
- Client code polls every 1s to check the cookies, removing spinner when
  the export cookie is removed.
2021-11-09 09:51:38 +02:00
..
controllers More improvements for CSV export (#1446) 2021-11-09 09:51:38 +02:00
plugs Add 'manual' script variant 2021-10-10 13:07:37 +02:00
templates Remove bad EEX tag 2021-10-27 14:28:05 +02:00
views Remove custom domain link if site does not have a custom domain 2021-06-17 10:51:58 +03:00
captcha.ex Mix format 2020-11-03 11:20:11 +02:00
email.ex Check site limit for enterprise customers 2021-10-22 11:26:07 +02:00
endpoint.ex Add honeycomb 2021-11-05 14:58:57 +02:00
remote_ip.ex Fix IP address parsing for ipv6 with port number 2021-06-03 10:36:06 +03:00
router.ex Start putting together means to export all aggregate data (#1387) 2021-10-26 15:54:50 +02:00