diff --git a/backend/views/report/index.php b/backend/views/report/index.php
index b3dccee..de76ede 100644
--- a/backend/views/report/index.php
+++ b/backend/views/report/index.php
@@ -19,7 +19,13 @@ $this->params['breadcrumbs'][] = $this->title;
= Html::encode($this->title) ?>
googleApi->client);
+
+ $client = new Google_Client();
+ //$client->setAuthConfig(__DIR__ . '/client_secrets.json');
+ $client->addScope(Google_Service_Analytics::ANALYTICS_READONLY);
+
+ $analytics = new Google_Service_AnalyticsReporting($client);
+ //$analytics = new Google_Service_AnalyticsReporting(\Yii::$app->googleApi->client);
// Вызов the Analytics Reporting API V4.
$response = getReport($analytics);
--
libgit2 0.21.4