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
Vini Brasil 1cb07efe6d
Save city name when importing from GA (#2608)
This commit adds city data to imported records from Google Analytics. The
current implementation sets city to 0 because GA does not use the GeoNames
database.

Google Analytics Reporting API uses [Geographical IDs](https://developers.google.com/analytics/devguides/collection/protocol/v1/geoid)
to identify cities and countries. Plausible uses
[GeoNames](https://geonames.org/) and I couldn't find databases corelating the
two.

Fortunately, GA also returns the city name and this commit uses the city name
and the country ISO code to find the Geoname ID. To avoid making expensive ETS
searches, I created another ETS table in the Location library that uses
{country, city} as a key.

Related PR: https://github.com/plausible/location/pull/3
4 years ago
..
auth Handle duplicate invitations gracefully (#2323) 4 years ago
billing Wrap paddle actions with DB transactions (#2558) 4 years ago
event Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661) 4 years ago
goal Trim goals when creating and retrieving from the DB (#2382) 4 years ago
google Save city name when importing from GA (#2608) 4 years ago
helpers improve transfer ownership error message (#2651) 4 years ago
imported Save city name when importing from GA (#2608) 4 years ago
ingestion Replace Geolix with Locus (#2362) 4 years ago
sentry Use finch in sentry client (#1996) 4 years ago
session Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661) 4 years ago
site Delay stats deletions (#2632) 4 years ago
stats Fix 'field key does not exist' error (#2674) 4 years ago
telemetry Gatekeep ingestion pipeline (#2472) 4 years ago
application.ex Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661) 4 years ago
clickhouse_repo.ex Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661) 4 years ago
geo.ex Stop logging invalid_address errors from Locus (#2604) 4 years ago
goals.ex Improve test coverage (#2392) 4 years ago
http_client.ex Trace external HTTP requests (#2419) 4 years ago
ingest_repo.ex Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661) 4 years ago
mailer.ex Do not report hard bounce e-mail errors to Sentry (#2361) 4 years ago
mailer_test.exs Do not report hard bounce e-mail errors to Sentry (#2361) 4 years ago
open_telemetry.ex Remove ingestion requests and Oban queries from OTEL (#2543) 4 years ago
prom_ex.ex Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661) 4 years ago
purge.ex Delay stats deletions (#2632) 4 years ago
repo.ex Pagination for sites listing (#994) 6 years ago
site.ex Some changes to the "site taken" copy (#2647) 4 years ago
sites.ex Some changes to the "site taken" copy (#2647) 4 years ago
themes.ex Adds dark mode to entire dashboard (#467) 6 years ago
timezones.ex Fix timezone list when time changes (#2268) 4 years ago