plugin-GoogleAnalyticsImporter
plugin-GoogleAnalyticsImporter copied to clipboard
AuthorizationGA4.php does not respect Matomo proxy setting.
Code to support the Matomo proxy setting was recently added via PR #202. This change applies to GoogleAnalyticsImporter.googleClient, which is used by Authorization.php::getConfiguredClient() for GA3. However, GA4 does not use GoogleAnalyticsImporter.googleClient, and a GA4 import from behind a proxy will timeout at the initial OAuth exchange with oauth2.googleapis.com, because the remote host is unreachable.
This probably belongs in GoogleAnalyticsGA4Importer.clientConfiguration but I'm not entirely sure. Tagging @snake14 since you moved #202 forward.
Hi @machinehum . Good catch. Sorry that I missed that in the PR. I'll see if I can create a new PR later today that addresses the GA4 issue.
Thanks! Looking forward to it.