Monthly/weekly report wrong with 1.1.1


#1

Hello,

I am new to this forum, but not new to Piwik.

I use Piwik since a half year without problems.

After updating to 1.1.1 I got the problem with the “Wrong Visit Count” described
in here.

I have updated piwik.js like recommend. But now the vistor report for the month
February and this week are wrong. Monthly report shows only 1 visitor instead
of number visitor today ( ca 150).

Is this a knows bug of 1.1.1 or with the new piwik.js ?

I use a cronjob (3600) .Reports for today will be processed at most every hour.

It would be nice, you can help me.


Klaro


#2

Hello,

i think i have got the same problem! I just installed 1.1.1 and i do not use the new piwik.js

If i use a call to the API-function VisitsSummary.getVisits with the period day it results in a plausible result.

Today it is 2011-02-04. Here two example call's for the first days within this month:

http://mysite.org/?module=API&method=VisitsSummary.getVisits&idSite=1&date=2011-02-01&period=day&format=xml&token_auth=XXX

==> result is: 400

http://mysite.org/?module=API&method=VisitsSummary.getVisits&idSite=1&date=2011-02-02&period=day&format=xml&token_auth=XXX

==> result is: 293

As you can see there are more then 690 visits within this month!

If i use the last call and just change the period to month:

http://mysite.org/?module=API&method=VisitsSummary.getVisits&idSite=1&date=2011-02-02&period=[b]month[/b]&format=xml&token_auth=XXX

==> result is: 0

If i change to year:

http://mysite.org/?module=API&method=VisitsSummary.getVisits&idSite=1&date=2011-02-02&period=[b]year[/b]&format=xml&token_auth=XXX

==> result is: 217

Following the documentation i would expect the summation of visits within February and the year 2011 which should be greater than the resulting values!

I found the same result using the dashbord view instead of the API-calls. I did a cron run
su www-data -c "sh /path/to/piwik/misc/cron/archive.sh"

Nothing changed! Within the XML displayed during the call of archive.sh i found the same results:

400
293

1

217

What's going wrong? Is it a bug? Or do i miss somthing?


(Matthieu Aubry) #3

This is a known “bug” or “feature” Period reports must always or never include today’s statistics · Issue #5793 · matomo-org/matomo · GitHub