Dilipkumar Jadhav wrote:
> Hello folks,
>
> I was trying to get the visit count for a single Page through the following
> Groovy Code in Syntax 2.0:
>
>
>
> {{groovy}}
>
> println "Total No. Of Visits:
> ${doc.getCurrentMonthPageStats("view").getVisits()}";
>
> {{/groovy}}
>
>
>
> It looks like it is returning some data for the Page from the start of the
> month. However, the concern is every time I view the Page, the count
> increases by +2 rather than +1.
>
> The same is saved in the database in xwikistatsdoc as well.
>
> Is there a logic that probably I missed out on. My understanding was that
> the counter should have increased by +1.
I think this is a known issue, see
http://jira.xwiki.org/jira/browse/XWIKI-4590 .
Hope this helps,
Marius
>
> Also, is the code snippet that I wrote correct to get this kind of
> data...Any help would as always be greatly appreciated.
>
> Thank you.
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users