>> How does one obtain stats on the number of times an XWiki page has been visited?
 
> The code you provided below does indeed give me a page view count
 
Isn't it giving the count for the total times all wiki pages have been visited, not for that particular page?
 
--Craig

 
On 2/28/06, Stephen Schaub <stephen_schaub_88@hotmail.com> wrote:

Thanks for the reply, Jeremy. The code you provided below does indeed give
me a page view count. However, when I substitute "download" for "view", I
get the same count as I got for the "view" action.

Also, when I download an attachment, the page view count is not affected.
So, I'm still wondering if the stats are tracked somewhere for attachment
downloads.

Stephen

>From: "jeremi joslin" <jeremi23@gmail.com>
>Reply-To: xwiki-users@objectweb.org
>To: xwiki-users@objectweb.org
>Subject: Re: [xwiki-users] Obtaining page hit info
>Date: Sun, 26 Feb 2006 09:56:57 +0800
>
>On 2/25/06, Stephen Schaub < stephen_schaub_88@hotmail.com> wrote:
> > How does one obtain stats on the number of times an XWiki page has been
> > visited?
> >
> > I've tried
> >
> > $doc.getCurrentMonthPageStats("view").getVisits()
> >
> > but all I get is 0. Perhaps I'm passign the wrong parameter ("view") --
>I'm
> > just guessing at what it should be -- or perhaps I have to do something
>to
> > enable collection of stats?
> >
> > Also, does xwiki track the number of times an attachment has been
> > downloaded?
> >
>Hi,
>
>
>have you tried this:
>
>#set($docstats = $tdoc.getCurrentMonthPageStats("view"))
>$msg.get("pageviews"): $docstats.getPageViews()
>
>#set($docstats = $tdoc.getCurrentMonthWebStats("view"))
>$msg.get("webpageviews"): $docstats.getPageViews()
>
>#set($docstats = $xwiki.getCurrentMonthXWikiStats("view"))
>$msg.get("xwikipageviews"): $docstats.getPageViews()
>$msg.get("xwikivisits"): $docstats.getVisits()
>
>
>For the download, i'm not sure, but i think it counts the number of
>download action in a page. For seeing it, you have to replace "view"
>by "download"
>
>
>Jérémi
>
>--
>Blog: http://www.jeremi.info
>LinkedIn: https://www.linkedin.com/profile?viewProfile=&key=1437724
>Project Manager XWiki: http://www.xwiki.org
>skype: jeremi23 -- msn et gtalk : jeremi23@gmail.com






--
You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list.
To unsubscribe: mailto: xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws