Blog Analytics: Widget For BlogEngine.NET Powered By Google Analytics

by prashant 20. March 2011 02:44

Finally, I got to know the way to show Google Analytics stats on my blog space. To know more about using Google Analytics API read their official article on using the API.

I have built a widget with the help of Analytics API to show the Google Analytics stats on my blog. The widget shows three stats at the moment (I don't want to make the widget look complex). Below is a screenshot for the widget in action on my blog:

 

The above widget shows the stats since I have started blogging. As you can see my blog is not as popular as yours or as popular comparative with other MSFT guys and other popular bloggers. As usual before you can use the widget you need to do some settings for the widget.

  

You should be aware by now that this widgets uses Google Analytics API, and I hope you all have Analytics account. The Username and Password will be the same as your Analytics account (and without @xyz.com). From Date and To Date specifies the date range which then populate the stats from Analytics service for the specified date range. I have provided an option that allows you to always use the To Date as the current date, you can do that by checking Always use Current Date (checking this will override To Date value). If you wish to show the stats ONLY for the current day then check Use From and To Date as Current Date (change the widget title from what you have to Today's Hit or whatever you wish!). I have settings as shown in the screenshot above for my blog and I am showing all my stats since I have started blogging.Last three options will allow you to toggle between the three statistics options you want to show on the widget or not.

I built this this in a lot of hurry, so if you find some bug or have some thoughts or you have made the widget more uselful, please feel free to write to me using the Contact form and let me know.

Download: BlogAnalytics - Widget.zip (107.28 kb)

If you enjoyed this post, make sure you subscribe to my RSS feed!

Tags: , ,

API | ASP.NET | BlogEngine.NET


Comments (9) -

mc-kay
mc-kay Germany
6/17/2011 7:19:00 AM #

I've done a German translation so if everyone need it you can get it here:
www.0x00.to/.../...erend-auf-Google-Analytics.aspx

Reply

Saint Atique
Saint Atique Bangladesh
7/11/2011 12:27:19 AM #

Does it work with BlogEngine.Net 2.5?

Reply

prashant
prashant India
7/11/2011 1:09:12 AM #

Yes.

Reply

gr8books.net
gr8books.net Vietnam
10/21/2011 2:09:30 PM #

it worked. but the first i entered valid password and i cannot remove it  =.=

Reply

Prashant
Prashant India
10/22/2011 7:39:17 PM #

It seems to be working fine now. For the widget that is not getting removed from your page, try removing the widget (the working one also) and then try adding it again.

Reply

dfdfdd
dfdfdd Japan
2/18/2012 1:07:29 AM #

But my count result are 0,  0,  0.
why?

Reply

Prashant
Prashant India
2/18/2012 6:35:56 AM #

Try downloading the new GData Binaries from Google API and then try. If you still get the same error then let me know?

Reply

forum auto
forum auto Sweden
4/19/2012 4:03:27 AM #

Does it work with BlogEngine.Net 2.7?

Reply

Prashant
Prashant India
4/19/2012 5:23:22 PM #

It does work with BlogEngine 2.0 and should also be working fine with BE 2.5.

BlogEngine.NET 2.7 is not out yet. Also the next version of BlogEngine.NET will be called BlogEngine.NEXT and not BlogEngine.NET 2.7!!

Reply

Pingbacks and trackbacks (1)+

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading


Visit blogadda.com to discover Indian blogs Computers Blogs

About Me

Name of authorPrashant Khandelwal.
Programmer and tech enthusiast. More...

Feeds Subscribe Twitter Facebook Google Plus Linked In Delicious

Badges

MVB

MVP Blog Badge.

HTML5 Powered with CSS3 / Styling, Graphics, 3D & Effects, Multimedia, Performance & Integration, Semantics, and Offline & Storage

Month List

Blog Stats

414,206 Hits

Adverts

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2012

Creative Commons License