0

i am working on asp.net c# and my question is suppose my website is(www.abc.com) and my admin panel is(adminabc.com) and now i have create google analytics account with www.abc.com and get records successfully from my admin panel but right now if i login from my admin panel that time charts is not display.

In my admin panel one google analytics button are display and if i click on button and enter username and password of my google account then after i will see the chart on my admin panel

so my question is it is possible to see chart without login with google analytics or can i pass google account credential on script that i put from my .aspx page.

pleae help me.

thanks in advance.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
Deep Patel
  • 11
  • 2
  • You haven't included any code so its hard for me to know exactly how you have created this admin panel on your website. Assuming that you are using the Google Analytics api Create a service account will allow you to access the Google Analytics API without authenticating. – Linda Lawton - DaImTo Feb 19 '16 at 07:35
  • Hi i have follow this link : https://ga-dev-tools.appspot.com/embed-api/basic-dashboard/ please check this link................. – Deep Patel Feb 19 '16 at 08:23
  • also please suggest me how to get records using google analytics service account – Deep Patel Feb 19 '16 at 08:24
  • Possible duplicate of [Google Analytics Embed API: How to retireve access token?](http://stackoverflow.com/questions/28070463/google-analytics-embed-api-how-to-retireve-access-token) – Linda Lawton - DaImTo Feb 19 '16 at 08:35
  • i didn't understand can you please give me the any url then explain me how to get google analytics chart and records from my asp.net c# admn panel.................please help me – Deep Patel Feb 19 '16 at 09:30
  • Alternatively you should look into setting up server-side auth as in this example: https://ga-dev-tools.appspot.com/embed-api/server-side-authorization/ – Matt Feb 24 '16 at 23:06
  • At the end of the day you need to use the Core Reporting API/OAuth. Are you entering the username/password client side? if so, then you are not using oAuth. If you are using oAuth then you would be re-directed to Google to authenticate/authorize. Then you webapp must store the refresh token. Every hour you would need to query Google to get a new access token. If you don't want to deal with the Core Reporting API and oAuth, check out http://www.embeddedanalytics.com - we specialize in displaying GA based reports outside of GA. – M Schenkel Mar 03 '16 at 02:18

0 Answers0