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

19. March 2011 17:44

API ASP.NET BlogEngine.NET  11 Comments

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 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 - (107.28 kb)

Currently rated 5.0 by 3 people

Comments (11)

mc-kay mc-kay
6/16/2011 10:19:00 PM #

I've done a German translation so if everyone need it you can get it here:

Saint Atique Saint Atique
7/10/2011 3:27:19 PM #

Does it work with BlogEngine.Net 2.5?

prashant prashant
7/10/2011 4:09:12 PM #

10/21/2011 5:09:30 AM #

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

Prashant Prashant
10/22/2011 10:39:17 AM #

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.

dfdfdd dfdfdd
2/17/2012 4:07:29 PM #

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

Prashant Prashant
2/17/2012 9:35:56 PM #

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

forum auto forum auto
4/18/2012 7:03:27 PM #

Does it work with BlogEngine.Net 2.7?

Prashant Prashant
4/19/2012 8:23:22 AM #

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!!

nick nick
7/10/2012 9:21:10 PM #

Does it work with BlogEngine.Net 2.5?

Prashant Prashant
7/12/2012 8:56:51 PM #

I have not checked it yet. It should work fine if the widget development is not different than that of 2.0.

Add Comment

Visit to discover Indian blogs Computers Blogs