setForceVisitDateTime() put in Visitor log instead of Dashboard


#1

Hi,

I wanted to know how can I customize the time of my request for example I want to call the piwik server for the request that I generated two days a go and I want that date and that traffic be shown on Dashboard. I am working with Piwik.php code

Regards,

Thanks,


(Matthieu Aubry) #2

See Tracking API reference: Tracking HTTP API: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3

What you want is to use the cdt parameter. Make sure to set the token_auth if you set some old dates in cdt.


#3

I am using cdt like the code below.
$token_auth=‘string I got from website’;
$piwikTracker->setTokenAuth( $token_auth);
$piwikTracker->setForceVisitDateTime( ‘2014-10-10 11:23:43’ );
The problem is instead of showing traffic and page and event on the main dashboard it shows it in the visitor log.