Obtaining page hit info

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Obtaining page hit info

Stephen Schaub
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?

Thanks in advance for help.

Regards,

Stephen





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Obtaining page hit info

jeremi joslin
On 2/25/06, Stephen Schaub <[hidden email]> 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 : [hidden email]


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Obtaining page hit info

Stephen Schaub

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" <[hidden email]>
>Reply-To: [hidden email]
>To: [hidden email]
>Subject: Re: [xwiki-users] Obtaining page hit info
>Date: Sun, 26 Feb 2006 09:56:57 +0800
>
>On 2/25/06, Stephen Schaub <[hidden email]> 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 : [hidden email]




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Obtaining page hit info

Craig Muth
>> 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 <[hidden email]> 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" <[hidden email]>
>Reply-To: [hidden email]
>To: [hidden email]
>Subject: Re: [xwiki-users] Obtaining page hit info
>Date: Sun, 26 Feb 2006 09:56:57 +0800
>
>On 2/25/06, Stephen Schaub < [hidden email]> 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 : [hidden email]






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





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Obtaining page hit info

jeremi joslin
In reply to this post by Stephen Schaub
On 3/1/06, Stephen Schaub <[hidden email]> 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.
Yes, it's a bug, can you add it to jira? I will fix it soon.


>
> Also, when I download an attachment, the page view count is not affected.
yes, it's not a view, it's a download.

> So, I'm still wondering if the stats are tracked somewhere for attachment
> downloads.
it's for all attachments of a page, not for each attachment.

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 : [hidden email]


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Obtaining page hit info

jeremi joslin
Ok, I fix it.
The task : XWIKI-221

Jérémi


On 3/1/06, jeremi joslin <[hidden email]> wrote:

> On 3/1/06, Stephen Schaub <[hidden email]> 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.
> Yes, it's a bug, can you add it to jira? I will fix it soon.
>
>
> >
> > Also, when I download an attachment, the page view count is not affected.
> yes, it's not a view, it's a download.
>
> > So, I'm still wondering if the stats are tracked somewhere for attachment
> > downloads.
> it's for all attachments of a page, not for each attachment.
>
> 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 : [hidden email]
>

--
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 : [hidden email]


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