diff --git a/userMng/third_party_services/google_analytics.py b/userMng/third_party_services/google_analytics.py index dbb8784cf..dbe29d88e 100644 --- a/userMng/third_party_services/google_analytics.py +++ b/userMng/third_party_services/google_analytics.py @@ -24,7 +24,7 @@ def initialize_analyticsreporting(self): fl = os.path.abspath(os.path.join(os.path.dirname(__file__),KEY_FILE_LOCATION)) print(fl) - credentials = ServiceAccountCredentials.from_json_keyfile_name(self.KEY_FILE_LOCATION, self.SCOPES) + credentials = ServiceAccountCredentials.from_json_keyfile_name(fl, self.SCOPES) # Build the service object. analytics = build('analyticsreporting', 'v4', credentials=credentials)