Commit Graph

751 Commits (fdac5e2be61bc4b85d78e2c4fc2caadd7a57a7c2)

Author SHA1 Message Date
Uku Taht 6aa0d7405d Sample to 20m instead of 10m 5 years ago
Marko Saric aa5add2142
Update settings_email_reports.html.eex (#1486) 5 years ago
Uku Taht 05bf43c1be
City level location data (#1449)
* Merge branch 'plausible_master'

* Add City level details

* Add City level details

* Use ISO codes instead of geoname_id for subdivisions

* Add easier way to configure geolocation database

* Add workflow for dev branch

* Correct clickhouse migration

* Translate subdivision names

* Translate city names

* WIP

* Region and country filters

* Fix region filter

* Remove region_name when removing region filter

* Add modals for regions and cities

* Remove dead code

* WIP

* Revert "WIP"

This reverts commit 3202bf2fe9.

* Feature flag to hide cities when deployed

* Add changelog entry

* Remove unused code

* Remove unused variables

* Fix test

Co-authored-by: AymanTerra <aymanterra@yahoo.com>
5 years ago
Uku Taht 06d0d0eafa Fix over limit email reccommendation 5 years ago
Uku Taht 941a91ec22 Make better use of the index on sessions table 5 years ago
Uku Taht 218f1158d6 Show visitor counts in Search Console report
Fixes #1480
5 years ago
Uku Taht e355828465 Remove pageview filter by default 5 years ago
Uku Taht a3aede73f9 Let staging track itself 5 years ago
Uku Taht 6b55ace014 Fix error with JSON parsing 5 years ago
Uku Taht 0edf4765d4 Ignore maps in prop values 5 years ago
Uku Taht 373d05e8de Fix error with anonymous users on shared links 5 years ago
Uku Taht d3311898c5 Show message when grace period is over 5 years ago
Uku Taht e9cb8eb4e2 Remove grace period if user upgrades 5 years ago
Uku Taht ec2a4a1a65 Add [Action required] to over limit email 5 years ago
Uku Taht d547d0f996 Send email notification when sites are locked at grace period end 5 years ago
Uku Taht 29cb7462e6 Add grace period to upgrade 5 years ago
Uku Taht f88956ef3c Fix compiler warning 5 years ago
Uku Taht c4dcd87c08 Export fixes 5 years ago
Matt Colligan 7faa2f6673
CSV export output conversions and conversion rate when filtering for goal (#1464)
* Only add percentages to dashboard data when not filtering goal

* Correctly name CSV headers when exporting conversion data

* Remove percentages from tests when filtering for goal
5 years ago
Matt Colligan 3380685d40
Fix custom property total conversions value not displayed & Export custom properties (#1456)
* Fix custom property total conversions value not displayed

The custom property conversion metrics are not consistent with the other
metrics resulting in the total conversions not being displayed in the
dashboard. This fixes that.

* Export custom props of current goal when filtering dashboard for goal

This makes the CSV export also output a `prop_breakdown.csv` file which,
for the currently filtered goal, contains the conversion data for each
of its configured properties.

* Add test for goal-filtered CSV export
5 years ago
Uku Taht 7a02aae2a5 Accept custom props in expected format 5 years ago
Matt Colligan d781301886 Apply existing filter to visitors.csv in export (#1454)
Also adds a test to ensure the filter always applies.
5 years ago
Uku Taht c9f68248d8 Fix error with conversion rate 5 years ago
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.
5 years ago
Uku Taht 5c02811d26 Add opentelemetry oban 5 years ago
Uku Taht 42d70bf4ea Optimization: only request top sources if notification is to be sent 5 years ago
Matt Colligan 945bf82c72
Fix conversions metrics (#1447)
f576fa2 should have updated the conversion metric names so that
`unique_conversions` and `total_conversions` are the two metrics
returned by the conversions API. This updates those so that the CSV
export outputs the correct data.
5 years ago
Uku Taht 76f6a00bec Add honeycomb 5 years ago
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
Uku Taht 7364733faf Ensure that question marks are encoded properly for the database 5 years ago
Uku Taht 9aa466b23f Remove unused mix task 5 years ago
Uku Taht dc080e9aa3 Remove bad EEX tag 5 years ago
Uku Taht 6f842b5603 Add better copy to locked page 5 years ago
Matt Colligan 8138a6e3a5
Start putting together means to export all aggregate data (#1387)
* Export all dashboard data in zip

This packages all data currently visible in the dashboard into
individual CSVs and downloads them together in a zip.

* Also export conversions in zip of CSVs

* Update export test with zip file response

* Add zip file download to changelog
5 years ago
Uku Taht 1b0323f5c1 Use more path helpers 5 years ago
Uku Taht a22bc91429 Add rel="noreferrer" to links from self-hosted to our site 5 years ago
Uku Taht e4bcdfa474 Revert "Get fresh search console data"
This reverts commit 3ab19afea5.
5 years ago
Uku Taht 3ab19afea5 Get fresh search console data 5 years ago
Uku Taht 9edbbe805d Update dependencies 5 years ago
Uku Taht 83b646eaea Do not send slack message on self hosted 5 years ago
Uku Taht 710f6f568a Ignores invalid query param part 5 years ago
Uku Taht 6dd9b0bb2f Do not error when bad custom prop value is supplied 5 years ago
Uku Taht 00184ce8ab Remove page from plausible tracking 5 years ago
Uku Taht f13962b387 Remove page from Plausible tracking 5 years ago
Uku Taht 4ee6257fcd Preload when needed 5 years ago
Uku Taht b9b37cdd34 Show pricing v2 when appropriate 5 years ago
Uku Taht 4eae40cd71 Apply usage optimization in background job 5 years ago
Uku Taht 26e34596c8 Allow enterprise plan users to create sites 5 years ago
Uku Taht e66e9bd1b7 Check site limit for enterprise customers 5 years ago
Uku Taht 792e534edd Optimize usage calculation for large accounts 5 years ago