I've set up a Piwik server for logging. I've also written a script that imports historical data via the Tracking API.
In order to set a date in the past, I am using the method call PiwikTracker->setForceVisitDateTime()
. The date is set correctly in the table piwik_log_visit
.
However, if I open the dashboard I only see the statistics for the past two days. I also ran php /var/piwik/misc/cron/archive.php url=http://my.logging.url --force-all-websites --force-all-periods=2678400
(2678400 seconds = 31 Days), but to no avail.
Please note that because of my specific use case I cannot use the log importer.
My question is: How can I force piwik to (re-)generate the complete statistics for the past month?