I want to show google analytics dashboard to my users. It is not possible to give access of "google analytics dashboard" to all users. So I want to integrate it on my own website. Will it be possible to integrate google analytics dashboard on a particular website?
标签:
google-analytics
相关问题
- Set API key with embed API google analytics
- Integrate Firebase Analytics with Xamarin Android
- Real time visitors from Google Analytics. How to g
- Google Universal Analytics - Command ignored
- Custom dimension data not showing in analytics (us
相关文章
- How to correctly use google analytics measurement
- Android referral tracking not working with Google
- Universal Analytics Measurement Protocol respond 2
- Profiling the Performance of a Google App Script
- Testing Google Analytics iOS SDK
- Tracking Anchor Links in Goal Funnels
- Expand array-of-structs into columns in PySpark
- Manually adding e-commerce transactions in Google
This question gets asked quite a bit. It is important to understand the security model for the API. All Google APIs use OAuth2.0 to authenticate the user. This is designed to make it easy to use the API to access the Users's data on behalf of the user. In contrast you will need to do work to show Your data to your users.
With that said, an example of what you are looking for is the Server side Auth example provided by the Analytics API team.
The simplest answer is to query the API on the server side, with a service account and serve that data as you serve any other data to your users. Read the scenarios in detail, and pick one that best suits your end goals. Understand how the API views the following entities.
You are breaking this paradigm because you are the user and developer from the API's perspective. You want to share your data with people who are not authorized to view it, so you will need to use a service account to access that data and share it directly with your users.
Also remember to add the service account to Analytics View you wish it to access.
Check out EmbeddedAnalytics if you prefer not to get bogged down learning oAuth2, the CoreReporting API, and lastly a charting tool. We simplify the process. All you do is create your chart and embed a snippet of code in your site where you want the chart/dashboard to show.