Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm looking for a way of recording pageviews in Umbraco for blog posts so I can show them back to the user. Is there a way of doing that. I am using 4.5.2 and Blog4Umbraco
The old v3 umbraco used to have umbraco stats and that used to if you turned it on in web.config track page views. You could write you own macro and create your own table and write page views to it, ip,node id, date time of view etc.
i wrote something to do that very recently in v4.5.2 would be happy to share it if you want it - it is a macro that is added to the templates you want to track that writes to a table and also has a dashboard to allow you to view results - it also supports segmenting logged in users - would it be useful to share this with you? the code is not ideal for a high-volume site but if it's say less than 3000 views a day it will be fine - it can also support showing a count of views on the page it is on - happy to make a package out of this if it would help?
I am interested. Please email it to me at email@example.com
Will email you shortly, just tidying it up a little bit.
What's wrong with Google Analytics?
Tracking the pageviews would be for Blog4Umbraco to show back to the users how many times the page has been viewed.
edit: Just to clarify, What I am trying to do is create a macrro to create a Nivo Slider http://nivo.dev7studios.com/ concisting of images and links from the most popular news posts within a 24 hour period.
Google analytics has an API you can tie into and find out the page views, etc
yes if that is all you want the GA API sounds like a much better way to go
the only thing GA won't do is let you track individual logged in users - which is why I am recording logged in users
sounds like the email i sent didn't arrive? sent it that day with the full source and the package - sometimes emails with dlls in a zip in an attachment are blocked by some systems
Ok.. I got it. It blended in with my regular emails.
Hi Jhon, I am interested too about the macro you shared with Shannon . Please email it to me at firstname.lastname@example.org.
Thank very much.
Hey Shannon, thanks a lot !!.
No prob. I had issues with getting it working.
have nearly finished it as a package, planning to release it soon with a smoother set up :)
but as Slace says it is only useful where you couldn't do the same thing with google analytics and their api
Excellent Jhon, I'll take a look as soon you publish it.
any chance i can get my hands on this?
I've created a method to do this, however its currently storing it in a doctype value. but it means for the number to change on the front-end the page needs to be published each page view... not the best practise..
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted