analytics/priv
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
2023-02-14 09:32:18 -03:00
..
clickhouse_repo/migrations Save city name when importing from GA (#2608) 2023-02-14 09:32:18 -03:00
ingest_repo/migrations Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661) 2023-02-12 17:50:57 +01:00
ref_inspector [Continued] Google Analytics import (#1753) 2022-03-10 15:04:59 -06:00
repo Save city name when importing from GA (#2608) 2023-02-14 09:32:18 -03:00
tracker/js Remove static tracker files (#2116) 2022-10-11 12:19:28 +02:00
ua_inspector Upgrade ua_inspector to 3.0 (#1762) 2022-03-25 11:41:04 +02:00
paddle.pem Initial commit 2019-09-02 12:29:19 +01:00
placeholder_favicon.ico Add fallback for favicon (#2279) 2022-09-28 08:55:46 -03:00
plans_v1.json Use JSON 2021-05-11 11:32:29 +03:00
plans_v2.json Localize the /upgrade page 2021-05-13 11:59:33 +03:00
plans_v3.json New plans 2021-12-28 12:26:53 +02:00
referer_favicon_domains.json Additional pre-commit hooks (#1428) 2021-11-03 15:46:12 +01:00