thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.77k stars 2.67k forks source link

Google Analytics doesn't appear #5495

Open nesyou01 opened 2 years ago

nesyou01 commented 2 years ago

Laravel version

8.65

PHP version

8.0.7

Voyager version

1.5

Database

mysql

Description

I've linked my project with google analytics, but the charts don't appear instead I get this message: You are logged in as: <myemail>

Steps to reproduce

q

Expected behavior

q

Screenshots

No response

Additional context

No response

arsengoian commented 2 years ago

Experiencing the same issue.

Getting the following error in console:

"{
  "error": {
    "code": 403,
    "message": "Request had insufficient authentication scopes.",
    "errors": [
      {
        "message": "Insufficient Permission",
        "domain": "global",
        "reason": "insufficientPermissions"
      }
    ],
    "status": "PERMISSION_DENIED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
        "domain": "googleapis.com",
        "metadata": {
          "service": "analytics.googleapis.com",
          "method": "analytics.gaapi.v3.AnalyticsManagementAccountSummaries.List"
        }
      }
    ]
  }
}
"

Could it be due to API version mismatch?

EDIT

might be linked to https://github.com/the-control-group/voyager/issues/4622

@nesyou01 were you able to find any solution?