0

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

1 Answer 1

0

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.

answered Jan 21, 2015 at 8:23
Sign up to request clarification or add additional context in comments.

2 Comments

Awesome!! Thanks for the reply. I shall look into that right away.
I have tried to use the sample project provided by you. Unfortunately I am stuck with a casting error, and I can't think of a way to solve that problem. Could you please help me out in this issue. The error is in you Management helper class regarding, allRows @dalmto

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.