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/lib/workers
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
..
check_usage.ex Do not report hard bounce e-mail errors to Sentry (#2361) 4 years ago
clean_email_verification_codes.ex Add :ok return to CleanEmailVerificationCodes (#1018) 6 years ago
clean_invitations.ex Invitations (#1122) 6 years ago
import_google_analytics.ex Save city name when importing from GA (#2608) 4 years ago
lock_sites.ex Make sure the latest subscription is always used 5 years ago
notify_annual_renewal.ex Do not report hard bounce e-mail errors to Sentry (#2361) 4 years ago
rotate_salts.ex Upgrades Oban to v2.6.1 (#967) 6 years ago
schedule_email_reports.ex Do not send email reports for locked sites 5 years ago
send_check_stats_emails.ex Do not report hard bounce e-mail errors to Sentry (#2361) 4 years ago
send_email_report.ex Do not report hard bounce e-mail errors to Sentry (#2361) 4 years ago
send_site_setup_emails.ex Do not report hard bounce e-mail errors to Sentry (#2361) 4 years ago
send_trial_notifications.ex Do not report hard bounce e-mail errors to Sentry (#2361) 4 years ago
spike_notifier.ex add a test and fix rendering the dashboard link 4 years ago
stats_removal.ex Delay stats deletions (#2632) 4 years ago