简体   繁体   中英

Google Analytics reports API - Insufficient Permission 403

I am trying to access data from google-analytics. I am following the guide and is able to gauthorize my user and get the code from oauth.

When I try to access data from GA I only get 403 Insufficient Permission back. Do I somehow have to connect my project in Google API console to my analytics project? How would I do this? Or is there some other reason why I get 403 Insufficient Permission back?

I am doing this in Python with Django and I have Analytics API turned on i my API console!

Had the same problem, but now is solved. Use View ID Not account ID, the 'View ID', can be found in the Admin->Profiles->Profile Settings tab

UPDATE now, if you have more a account , you must go: Admin -> Select account -> under View-> click on View Settings

I had the same problem; sounds as simple as adding the email concerned to the list of users having at least a read access to your google analytics account Some complete (but not up-to-date, rails code speaking) tutorial here

Should we mentions the scopes too ? googleapis.com/auth/analytics and googleapis.com/auth/analytics.readonly I guess would be sufficient

and yep, the above question (view id instead of account id, as usually used in the tracking) is something to set as explained.

With those 3 checks, you're about to make it work as expected

You should use View ID Not account ID, the 'View ID', you can go:

Admin -> Select Site -> Under "View" -> View Settings , if it doesn't works

you can go: Admin->Profiles->Profile Settings

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM