Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Shannon 148 posts 171 karma points
    Nov 03, 2010 @ 07:15
    Shannon
    0

    Tracking Pageviews in Umbraco

    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

  • Ismail Mayat 4354 posts 9409 karma points MVP 2x admin c-trib
    Nov 03, 2010 @ 10:02
    Ismail Mayat
    0

    Shannon,

    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.

    Regards

    Ismail

  • John C Scott 440 posts 1076 karma points
    Nov 03, 2010 @ 10:08
    John C Scott
    2

    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?

  • Shannon 148 posts 171 karma points
    Nov 03, 2010 @ 15:38
    Shannon
    0

    I am interested. Please email it to me at rainmanjam@gmail.com

  • John C Scott 440 posts 1076 karma points
    Nov 03, 2010 @ 17:39
    John C Scott
    0

    Will email you shortly, just tidying it up a little bit.

  • Shannon 148 posts 171 karma points
    Nov 08, 2010 @ 01:50
    Shannon
    0

    any progress?

  • Aaron Powell 1708 posts 3043 karma points c-trib
    Nov 08, 2010 @ 07:38
    Aaron Powell
    2

    What's wrong with Google Analytics?

  • Shannon 148 posts 171 karma points
    Nov 08, 2010 @ 16:52
    Shannon
    0

    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.

  • Aaron Powell 1708 posts 3043 karma points c-trib
    Nov 08, 2010 @ 21:53
    Aaron Powell
    0

    Google analytics has an API you can tie into and find out the page views, etc

  • John C Scott 440 posts 1076 karma points
    Nov 08, 2010 @ 23:24
    John C Scott
    0

    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 

  • Shannon 148 posts 171 karma points
    Nov 08, 2010 @ 23:32
    Shannon
    0

    Ok.. I got it. It blended in with my regular emails.

  • Jorge Ruiz Caro 9 posts 29 karma points
    Nov 21, 2010 @ 17:49
    Jorge Ruiz Caro
    0

    Hi Jhon, I am interested too about the macro you shared with Shannon . Please email it to me at datasolutions.e@gmail.com.

    Thank very much.

  • Jorge Ruiz Caro 9 posts 29 karma points
    Nov 25, 2010 @ 00:43
    Jorge Ruiz Caro
    0

    Hey Shannon, thanks a lot !!.

    Jorge

  • Shannon 148 posts 171 karma points
    Nov 25, 2010 @ 00:44
    Shannon
    0

    No prob. I had issues with getting it working.

  • John C Scott 440 posts 1076 karma points
    Nov 25, 2010 @ 12:09
    John C Scott
    0

    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

     

  • Jorge Ruiz Caro 9 posts 29 karma points
    Nov 26, 2010 @ 16:33
    Jorge Ruiz Caro
    0

    Excellent Jhon, I'll take a look as soon you publish it.

    Jorge

  • Lindsay 2 posts 22 karma points
    Aug 17, 2011 @ 06:49
    Lindsay
    0

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

     

Please Sign in or register to post replies

Write your reply to:

Draft