4 ms·
It gets a 403 on https://www.googleapis.com/analytics/v3/management/accountSummaries https://www.googleapis.com/analytics/v3/management/accountSu... after loggi
by r1ch 9y ago
It gets a 403 on https://www.googleapis.com/analytics/v3/management/accountSummaries https://www.googleapis.com/analytics/v3/management/accountSu... after logging in. I am signed in to multiple Google accounts, although the primary account is also the one I use with analytics.
"{"error":{"errors":[{"domain":"global","reason":"insufficientPermissions","message":"Insufficient Permission"}],"code":403,"message":"Insufficient Permission"}}"
I wasn't prompted to approve any permissions so this doesn't seem surprising.
Looks like you need to replace "scope: 'profile'" with "scope: context.SCOPE" in your gapi.client.init call.
- Fileformat 9y agoFixed. Thanks! I'm not sure what was going on. It was definitely working in some scenarios, since I can see active users (with Heatmap.TV, naturally). The Google Auth stuff has been a complete nightmare.