diff --git a/ckanext/googleanalytics/ga_auth.py b/ckanext/googleanalytics/ga_auth.py index 9fa3659..21eb478 100644 --- a/ckanext/googleanalytics/ga_auth.py +++ b/ckanext/googleanalytics/ga_auth.py @@ -14,9 +14,11 @@ def init_service(credentials_file): return build("analytics", "v3", credentials=credentials) + def get_ga4_client(credentials_json_path): return BetaAnalyticsDataClient.from_service_account_json(credentials_json_path) + def get_profile_id(service): """Get static profile ID or fetch one from the service.