analytics/fixture/vcr_cassettes
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
..
google_analytics_auth#invalid_grant.json Catch Google Search Console grant error (#2101) 2022-08-16 10:55:46 +03:00
google_analytics_import#1.json Save city name when importing from GA (#2608) 2023-02-14 09:32:18 -03:00
google_analytics_stats.json Fix Google Search Console API call (#2090) 2022-08-11 11:03:06 +03:00
google_analytics_stats#with_page.json Fix Google Search Console API call (#2090) 2022-08-11 11:03:06 +03:00
google_analytics_stats#without_page.json Fix Google Search Console API call (#2090) 2022-08-11 11:03:06 +03:00