1

I am using asp.net 3.5 with C#.

I have registered my application in google analytics and it is successfully showing my statistics. But I want to integrate that statistics into my website, is there any way I can do it.

j0k
  • 22,600
  • 28
  • 79
  • 90
Zerotoinfinity
  • 6,290
  • 32
  • 130
  • 206

2 Answers2

1

Have you looked at the Google Analytics API? It's javascript, but you can get that data into server-side code from there.

egrunin
  • 24,650
  • 8
  • 50
  • 93
  • Can I get any widget kind of report, all I found on the net is something which requires login. Also I have checked the link provided by Dave, it's fine but alas... not working for me. – Zerotoinfinity May 31 '10 at 22:34
1

If you're trying to retrieve Analytics data (rather than collect it, as it sounds like you're already doing), take a look at Google's Data Export API

Dave Kilian
  • 1,012
  • 8
  • 6
  • I am using this http://code.google.com/apis/analytics/docs/gdata/2.0/gdataJavascript.html Javascript version, but it seems that it's not working for me, I am getting no error which I can discuss here, I am pressing "Access Google Analytics" and after that I am getting loading button .. but no data or analytics .. :( – Zerotoinfinity May 31 '10 at 21:50
  • Please suggest how can I acheive it – Zerotoinfinity Jun 02 '10 at 14:19
  • How are you running the sample? I found that it doesn't work if you load the page from your local hard drive (i.e. with a file:// url) but does it you upload it to a live server (with an http:// url). I don't know if http:// localhost works. Also, are you building the html/js files according to their tutorials or have you tried copying the completed samples they give you? – Dave Kilian Jun 02 '10 at 20:41
  • Here's my (working) copy of the example code: http://dahveed.dyndns.org/stackoverflow/analytics/ – Dave Kilian Jun 02 '10 at 20:44
  • Dave Kilian - Du you have that sample code left? I'm having the same problem. Thx – WhoAmI Feb 20 '14 at 08:20