Error:


Error calling GET https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A10898875&start-date=2020-01-20&end-date=2020-01-27&metrics=ga%3Avisits&dimensions=ga%3Adate&alt=json&key=AIzaSyAxfRC8v9UQJWwYe3bEPFd2h-h6Rw9Ugt8: (401) Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

apiServiceException Object ( [message:protected] => Error calling GET https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A10898875&start-date=2020-01-20&end-date=2020-01-27&metrics=ga%3Avisits&dimensions=ga%3Adate&alt=json&key=AIzaSyAxfRC8v9UQJWwYe3bEPFd2h-h6Rw9Ugt8: (401) Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project. [string:Exception:private] => [code:protected] => 0 [file:protected] => /home/adella/public_html/gapi/google-api-php-client/src/io/apiREST.php [line:protected] => 86 [trace:Exception:private] => Array ( [0] => Array ( [file] => /home/adella/public_html/gapi/google-api-php-client/src/io/apiREST.php [line] => 56 [function] => decodeHttpResponse [class] => apiREST [type] => :: [args] => Array ( [0] => apiHttpRequest Object ( [url:protected] => https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A10898875&start-date=2020-01-20&end-date=2020-01-27&metrics=ga%3Avisits&dimensions=ga%3Adate&alt=json&key=AIzaSyAxfRC8v9UQJWwYe3bEPFd2h-h6Rw9Ugt8 [method:protected] => GET [headers:protected] => [postBody:protected] => [userAgent:protected] => Google Analytics PHP Starter Application google-api-php-client/0.4.7 [responseHttpCode:protected] => 401 [responseHeaders:protected] => [responseBody:protected] => { "error": { "code": 401, "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", "errors": [ { "message": "Login Required.", "domain": "global", "reason": "required", "location": "Authorization", "locationType": "header" } ], "status": "UNAUTHENTICATED" } } [accessKey] => ) ) ) [1] => Array ( [file] => /home/adella/public_html/gapi/google-api-php-client/src/service/apiServiceResource.php [line] => 151 [function] => execute [class] => apiREST [type] => :: [args] => Array ( [0] => apiServiceRequest Object ( [restBasePath] => https://www.googleapis.com/analytics/v3/ [restPath] => data/ga [rpcPath] => /rpc [rpcName] => analytics.data.ga.get [httpMethod] => GET [parameters] => Array ( [ids] => Array ( [type] => string [location] => query [value] => ga:10898875 ) [start-date] => Array ( [type] => string [location] => query [value] => 2020-01-20 ) [end-date] => Array ( [type] => string [location] => query [value] => 2020-01-27 ) [metrics] => Array ( [type] => string [location] => query [value] => ga:visits ) [dimensions] => Array ( [type] => string [location] => query [value] => ga:date ) ) [postBody] => [batchKey] => ) ) ) [2] => Array ( [file] => /home/adella/public_html/gapi/google-api-php-client/src/contrib/apiAnalyticsService.php [line] => 254 [function] => __call [class] => apiServiceResource [type] => -> [args] => Array ( [0] => get [1] => Array ( [0] => Array ( [ids] => ga:10898875 [start-date] => 2020-01-20 [end-date] => 2020-01-27 [metrics] => ga:visits [dimensions] => ga:date ) ) ) ) [3] => Array ( [file] => /home/adella/public_html/gapi/canvalytics/lib/gcTempQuery.php [line] => 16 [function] => get [class] => DataGaServiceResource [type] => -> [args] => Array ( [0] => Array ( [ids] => ga:10898875 [start-date] => 2020-01-20 [end-date] => 2020-01-27 [metrics] => ga:visits [dimensions] => ga:date ) ) ) [4] => Array ( [file] => /home/adella/public_html/gapi/canvalytics/lib/init.php [line] => 11 [args] => Array ( [0] => /home/adella/public_html/gapi/canvalytics/lib/gcTempQuery.php ) [function] => require_once ) [5] => Array ( [file] => /home/adella/public_html/gapi/canvalytics/index.php [line] => 2 [args] => Array ( [0] => /home/adella/public_html/gapi/canvalytics/lib/init.php ) [function] => require_once ) ) [previous:Exception:private] => )
1
Google CANVAlytics

Google CANVAlytics

Results