Thanks for Piwik - it’s a great piece of software.
I’ve hit one snag, though. I’m using the PHP PiwikTracker object to post a historic visit to our Piwik tracker site. Everything is registering correctly: keywords, custom variables, forced urls etc.
But my forcedDateTime is failing to be acknowledged by Piwik. Visits that include, eg
&cdt=1296546002
are being registered with their actual arrival time, not the historic date.
I’m using the SuperUser token. I’ve edited the piwik_site.ts_created field to backdate the website creation to before the cdt time. I’ve dropped all old archives. I’ve tried using a string for the cdt instead of a timestamp.
But still cdt seems to be being ignored. Any advice gratefully received.
Many thanks for getting back on this. I’ve removed the actual token, but the one I’m sending is for the user who was created on installation of Piwik. I believe this is the superuser. I’ve also aliased the target so the link below doesn’t point to our actual website but the structure is the same. Let me know if that’s a problem.
The cdt in this request is a Unix timestamp. I’ve tried using
What’s happening currently is that Piwik is putting all the data where I need it, but reporting this event as coming in with today’s date and time, rather than as having come in on 2011-02-01 07:40:02.
Also, the IP is being reported as the actual IP rather than the forced one 10.4.0.1.
Hope that makes some kind of sense. (And thanks again for Piwik. Haven’t been using it long but it’s already saved me more time than I’ve put into it.)