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/test/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 Manually lock outgrown enterprise accounts (#2197) 4 years ago
billing Google APIs integration improvements (#2358) 4 years ago
google Run tests in async mode where applicable (#2542) 4 years ago
imported Save city name when importing from GA (#2608) 4 years ago
ingestion Reject events with long URIs and data URIs (#2536) 4 years ago
session Use new Session.CacheStore in favour of Session.Store (#1934) 5 years ago
site Delay stats deletions (#2632) 4 years ago
stats Add API support for intervals (#2417) 4 years ago
config_test.exs Support alternative mailing services (Mailgun, Mandrill, Sendgrid) (#2649) 4 years ago
goals_test.exs Trim goals when creating and retrieving from the DB (#2382) 4 years ago
http_client_test.exs Google APIs integration improvements (#2358) 4 years ago
purge_test.exs Delay stats deletions (#2632) 4 years ago
release_test.exs improve first launch experience for self-hosters (#2357) 4 years ago
timezones_test.exs Fix timezone list when time changes (#2268) 4 years ago