- Issue created by @kaszarobert
- Merge request !24Issue #3501839 by kaszarobert: Update google/analytics-data dependency to the latest β (Open) created by kaszarobert
- Assigned to kaszarobert
- Status changed to RTBC
6 months ago 2:56pm 6 April 2025 - π―π΄Jordan yahyaalhamad Palestine
This issue appears when updating the Google Analytics library to the latest version:
class Google\Analytics\Data\V1beta\BetaAnalyticsDataClient not found
which appears to be inside src/GoogleAnalyticsCounterAppManager.php
- Status changed to Needs work
3 months ago 8:41am 21 July 2025 - π―π΄Jordan yahyaalhamad Palestine
Related issue: π Class "Google\Analytics\Data\V1beta\BetaAnalyticsDataClient" not found Active
- π―π΄Jordan yahyaalhamad Palestine
Change the reference from
Google\Analytics\Data\V1beta\BetaAnalyticsDataClient => Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient - π΅π±Poland szymon-gorecki
There is more errors after google library update. runReport function is different
v22public function runReport(RunReportRequest $request, array $callOptions = []): RunReportResponse
v17
public function runReport(array $optionalArgs = [])
Drupal error log:
Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient::runReport(): Argument #1 ($request) must be of type Google\Analytics\Data\V1beta\RunReportRequest, array given, called in /var/www/html/web/modules/contrib/google_analytics_counter/src/GoogleAnalyticsCounterAppManager.php on line 408 in Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient->runReport() (line 786 of /var/www/html/vendor/google/analytics-data/src/V1beta/Client/BetaAnalyticsDataClient.php
- Status changed to Needs review
5 days ago 6:37pm 1 October 2025