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.
1 Answer 1
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.
2 Comments
Explore related questions
See similar questions with these tags.