[Piwik-hackers] generateVisits Problems

Matthieu Aubry matthieu.aubry at gmail.com
Tue Jun 10 02:56:51 CEST 2008


Yusef,
one suggestion: maybe your numbers are wrong because the line
$generator->emptyAllLogTables();
was not commented, therefore when you run the script again and again, it 
adds new data to your logs.
Which explains why you get higher than expected stats.


Yusef Maali wrote:
> Alle 17:01, lunedì 12 maggio 2008, Matthieu Aubry ha scritto:
>   
>> Hi Yusef,
>> piwik wouldnt compute archives for dates before the website registration 
>> in piwik. This is not documented, so I shall make it very clear in the 
>> generateVisits UI, thanks for reminding me.
>>     
>
> I'm happy to be useful :)
> I forgot previously to say that I had changed also the ts_created field and things didn't work...
>
> Anyway I have reinstalled Piwik from scratch and now it seems to work.
> Just two points:
>
> 1) I'm not really sure the new option you have added with the last commit ("enable_browser_archiving_triggering") works as expected.
> Reading the comments, I think that the archiving process is started when I access piwik datas through the PiwikUI.
> After generating visits, I have to set "always_archive_data" to true otherwise the archiving process doesn't start even if "enable_browser_archiving_triggering" is set to true.
> With "always_archive_data=true" things work both with PiwikUI and with PiwikApi through php-cli (using the cron commands).
>
> 2) The output of the generateVisits script means that:
> "Generated 13 visits and 9 actions per visit for the 2008-05-03"
> Does it have generated 13 unique visits on 2008-05-03?
> If this is true, Piwik doesn't count well this kind of visits.
>
> This is the output of the script:
>   
>> Generated 13 visits and 9 actions per visit for the 2008-05-03
>> Generated 9 visits and 6 actions per visit for the 2008-05-04
>> Generated 13 visits and 8 actions per visit for the 2008-05-05
>> Generated 13 visits and 6 actions per visit for the 2008-05-06
>> Generated 15 visits and 9 actions per visit for the 2008-05-07
>> Generated 10 visits and 9 actions per visit for the 2008-05-08
>> Generated 6 visits and 9 actions per visit for the 2008-05-09
>> Generated 14 visits and 9 actions per visit for the 2008-05-10
>> Generated 7 visits and 7 actions per visit for the 2008-05-11
>> Generated 6 visits and 9 actions per visit for the 2008-05-12
>>
>> Total actions: 858
>> Total requests per sec: 209
>> Time elapsed: 4.11s
>>     
>
> These are the archived unique visits:
>   
>> $: php5 index.php -- "module=API&method=VisitsSummary.getUniqueVisitors&idSite=1&period=day&date=last52&format=xml&token_auth=XXXX"
>> <?xml version="1.0" encoding="utf-8" ?>
>> <results>
>> [SNIP]
>> <result date="2008-05-03">13</result>
>> <result date="2008-05-04">20</result>
>> <result date="2008-05-05">16</result>
>> <result date="2008-05-06">23</result>
>> <result date="2008-05-07">22</result>
>> <result date="2008-05-08">22</result>
>> <result date="2008-05-09">15</result>
>> <result date="2008-05-10">19</result>
>> <result date="2008-05-11">20</result>
>> <result date="2008-05-12">10</result>
>> </results>
>>     
>
> Only the day "03-05-2008" has the same number of visits.
> The others differ between them.
>
> I go back to translate piwik :)
>
> --
> ~Yusef
> _______________________________________________
> Piwik-hackers mailing list
> Piwik-hackers at piwik.org
> http://lists.piwik.org/cgi-bin/mailman/listinfo/piwik-hackers
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.piwik.org/pipermail/piwik-hackers/attachments/20080610/15360c8b/attachment.htm 


More information about the Piwik-hackers mailing list