Is there a way to embed charts from Google Analytic onto a webpage and allowing the public to view the charts without having to authenticate themselves?
I keep getting pointed to OAuth2, but I dont want my users to do any kind of logging in.
Some help please.
Something similar to the question below, but he doesnt seemt to have found an answer.
Google Analytics API in Javascript
Yes this is all doable. If you just want to show them your data not there own data then you can use a service account. If you want to show them data from there own accounts then you have to go though Oauth2 and authenticate access to there account.
Your Data
You can't use a service account with JavaScript so you will have to do it yourself in the background in your C# code.
I recommend you use the Google.apis.Analytics.v3 from nugget. You can find a tutorial series on it here Google Analytics API authentication with C# as for displaying the charts check out Google Charts
Their data
If you want to display there data and need to go though Oauth2 then the Embeded API will do all this for you.
Related
I am in a need of sharing a Google analytics access of my website to a developer and want to hide revenue and conversions sections in Google Analytics account/property/view.
any guidance how is it possible to do that?
if you want to share access to the report in Google analytics web application then the simple answer is you can't, access to a Google analytics account is all or nothing
you could grab the data for them through the API using a service account and design your own reports display of the data
It is not possible to give visibility to only some sections or metrics of a view. You can use API (like said to DalmTo) or more simple to provide data with an external dashboard, for example with Google Data Studio, which fetches data from your Google Analytics and shows only the ones you want to share.
I'm able to create a dynamic link through API request in jquery but to get data back I couldn't find any documentation on it. please advise..
This wasn't possible initially, but recently the Dynamic Links analytics API has launched, take a look at the docs here: analytics api docs: https://firebase.google.com/docs/dynamic-links/analytics#rest_api
In the Google Analytics console I can easily create charts and add them to dashboards. But how can I display those charts or dashboards on a 3rd party website?
I've seen the Embed API, but it looks like the definition of the reports is always in the Javascript. Is it not possible to say something like display the dashboard that I already created which name/id is XYZ?
Or is there a way, when creating a report in Google Analytics, to get its definition so that I can easily use it? I saw Query Explorer but it doesn't help.
No you can not take the Google Analytics dashboard and display it on another website.
The best option there is to date is the Embedded API which you mentioned. Although it has its limitations. The Embedded API is designed to display a specific users Google Analytics Dashboard who ever is logged in. If you are trying to share the information from your account with other users it wont work unless they also have access to your Google Analytics account.
The Query Explorer shows you what the google Analytics API is capable of. You can develop your own tool to show this information to your users.
I am using Google Analytics Embed API in one of my projects and I haven't figured out if it is possible to change language of the rendered charts. Default one is english. Autentication is done on a backend side and I use google service account for gathering the data (the exact same scenario as shown here)
I assume it should be possible since Google Analytics are available in different languages, but I was not able to find the solution anywhere.
The Google Analytics reporting API returns data in English only there is no way to change the language it is returned in.
The Embeded API access the Google Analytics reporting API. If you want to change the language you will have to pre-process all of the data returned from the API yourself and change the language and then display it in the Embeded graphics API .
When registering your website with Google Analytics, is it possible to then create your own dashboard on your website and retrieve individual Google Analytics data segments instead of logging into Google and watch the statistics from there?
In short building your own dashboard, using Google Analytics data? Perhaps Google Analytics have some sort of API one can use to specify what to return to the website to display?
Thanks in advance
You could also checkout the Embed API. it makes creating dashboards simple by making the auth step simple.
Just google for the question.
https://developers.google.com/analytics/devguides/reporting/
and probably this is the best tool you can get from anywhere to fetch all your data :
http://ga-dev-tools.appspot.com/explorer/