Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Great Way but this does not fix my Problem. I dont want any authentication or sign in with google. But with this Code it still redirects me and let me choose a account to sign in with. Commented Aug 13, 2019 at 14:01
  • Then you are using the wrong code look again. This form of authorization will NOT require authorization its service account authorization. If your getting a redirect to login then your using OAUTH2 code. Follow the tutorial I linked. Not this one Hello Analytics Reporting API v4; PHP quickstart for web applications Commented Aug 13, 2019 at 14:03
  • 1
    Sorry that was my bad i used the wrong credentials json. Thanks this answered my question. Commented Aug 13, 2019 at 14:09