Bob Smith
Bob Smith

Reputation: 349

Adding a counter for number of blog post views - BlogEngine.net

I am setting up a new blog and looked for a widget I could add that would give me the total number of views for a blog post (and it would be nice to find out the number of views in the last X days) and didn't find any.

Is there a quick way of setting this up?

Upvotes: 3

Views: 2460

Answers (3)

Scott Marlowe
Scott Marlowe

Reputation: 8035

Check out Al Nyveldt's post Most Popular Posts Extension and Widget. It does what you want in terms of counting. If you're willing to extend BlogEngine.NET, you can fairly easily consume the file his extension produces to display all posts and the number of times they've been viewed. Remember to make it accessible to admins only, if that's what you want.

Upvotes: 1

SpoiledTechie.com
SpoiledTechie.com

Reputation: 10735

Bob,

Got something for you here. I created it a while back, just never made a post for it. It should be EXACTLY what your looking for.

Top Posts / Top Comments Widgets

Upvotes: 3

Marc Gravell
Marc Gravell

Reputation: 1064244

If it is for you to see (i.e. not an on-screen counter, but something you can look at separately): Google analytics, perhaps with feedburner if you have an atom/rss feed.

Adding google analytics is simply a case of adding a few lines of script (that it generates for you); and it gives so much information (not just how many hits, but a proper usage history, referring sites / search terms that people used to find you, physical location by IP, etc). And it is free.

Upvotes: 1

Related Questions