diff --git a/Google/AuthorizationGA4.php b/Google/AuthorizationGA4.php index c66d52df..fb2e4948 100644 --- a/Google/AuthorizationGA4.php +++ b/Google/AuthorizationGA4.php @@ -48,7 +48,7 @@ protected function getClientClassArguments(): array $proxyHttpClient = StaticContainer::get('GoogleAnalyticsImporter.proxyHttpClient'); if ($proxyHttpClient) { $proxyHttpHandler = \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Auth\HttpHandler\HttpHandlerFactory::build($proxyHttpClient); - $arguments['credentialsConfig'] = ['authHttpHandler' => $proxyHttpHandler]; + $arguments['credentialsConfig'] = ['authHttpHandler' => $proxyHttpHandler, 'keyFile' => $arguments['keyFile']]; $arguments['transport'] = 'rest'; $arguments['transportConfig'] = ['rest' => ['httpHandler' => $proxyHttpHandler]];