analytics/fixture
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
..
vcr_cassettes Save city name when importing from GA (#2608) 2023-02-14 09:32:18 -03:00
ga_batch_report.json Google Analytics Import Refactor (#2046) 2022-08-03 12:25:50 +03:00
ga_list_views.json List all Google Analytics views during import (#2184) 2022-09-08 21:02:17 +03:00
ga_refresh_token.json Fix and test Google Analytics token refresh (#2381) 2022-10-26 07:43:49 +02:00
ga_report_empty_rows.json Add fallback for GA reports without rows (#2121) 2022-08-19 13:14:49 +03:00
ga_report_imported_browsers.json Move GA fixtures to fixtures/ folder (#2398) 2022-10-29 09:44:10 +02:00
ga_report_imported_devices.json Move GA fixtures to fixtures/ folder (#2398) 2022-10-29 09:44:10 +02:00
ga_report_imported_entry_pages.json Move GA fixtures to fixtures/ folder (#2398) 2022-10-29 09:44:10 +02:00
ga_report_imported_exit_pages.json Move GA fixtures to fixtures/ folder (#2398) 2022-10-29 09:44:10 +02:00
ga_report_imported_locations.json Save city name when importing from GA (#2608) 2023-02-14 09:32:18 -03:00
ga_report_imported_operating_systems.json Move GA fixtures to fixtures/ folder (#2398) 2022-10-29 09:44:10 +02:00
ga_report_imported_pages.json Move GA fixtures to fixtures/ folder (#2398) 2022-10-29 09:44:10 +02:00
ga_report_imported_sources.json Move GA fixtures to fixtures/ folder (#2398) 2022-10-29 09:44:10 +02:00
ga_report_imported_visitors.json Move GA fixtures to fixtures/ folder (#2398) 2022-10-29 09:44:10 +02:00