问题
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!
回答1:
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
回答2:
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
回答3:
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
来源:https://stackoverflow.com/questions/23128964/google-analytics-reports-api-insufficient-permission-403