Google Analytics Embed API authentication

六眼飞鱼酱① 提交于 2019-12-01 00:21:25

This is definitely possible, but you'll have to get the access token yourself (server side, using whatever OAuth 2.0 flow you want).

Once you have a valid access token, you can pass it to the gapi.analytics.auth component and use the Embed API as normal.

Here's some documentation on that:
https://developers.google.com/analytics/devguides/reporting/embed/v1/component-reference#auth

UPDATE: (07/27/2015)

A demo of server-side authorization with the Embed API is now featured on the Google Analytics Demos & Tools site. You should look there to see a working example.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!