From faa94ef339c7a02233abbf75eb60c9c5c5dd9ff2 Mon Sep 17 00:00:00 2001 From: Marc Sardon Date: Tue, 14 Jan 2025 11:23:00 +0000 Subject: [PATCH] Remove Analytics scope from Google Api Client This scope was introduced to access/store the vacancies view counters data from Google Analytics. Was done with this PR: - https://github.com/DFE-Digital/teaching-vacancies/pull/547 Since then, those counter db fields have been removed, the Google Analytics gem & client also have been removed. Our current project only uses Google Api client for Google Drive and Indexing. All the statistical data gets queried directly through Google Bigquery client. Called from the Publishers::VacancyStats service. --- config/initializers/google_api.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/config/initializers/google_api.rb b/config/initializers/google_api.rb index 352dfb3fe4..4e14ee038d 100644 --- a/config/initializers/google_api.rb +++ b/config/initializers/google_api.rb @@ -11,7 +11,6 @@ end scope = ["https://www.googleapis.com/auth/indexing", - "https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/drive"] key = StringIO.new(GOOGLE_API_JSON_KEY)