analytics/lib
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
..
mix/tasks Support custom events and props in mix send_pageview (#2606) 2023-01-18 16:35:37 +02:00
plausible Save city name when importing from GA (#2608) 2023-02-14 09:32:18 -03:00
plausible_web improve transfer ownership error message (#2651) 2023-02-13 15:25:17 +01:00
workers Save city name when importing from GA (#2608) 2023-02-14 09:32:18 -03:00
oban_error_reporter.ex Delete stats improvements (#2318) 2022-10-10 08:55:58 -03:00
plausible_release.ex improve first launch experience for self-hosters (#2357) 2022-11-10 12:42:22 +01:00
plausible_web.ex Fix dark mode for GA import 2022-03-24 12:25:07 +02:00
plausible.ex Initial commit 2019-09-02 12:29:19 +01:00
sentry_filter.ex Fingerprint DBConnection.ConnectionError in Sentry (#2597) 2023-01-16 13:05:56 +01:00