Tracker API improvements : enable set IP and set server date & time
|Reported by:||matt||Owned by:||vipsoft|
Tracker API allows to record visits, pages and goal conversions using http rest API. Commonly users would have a webserver make the request to Piwik to record visits. This causes piwik to read the visit/page/goal conversion IP as being the server IP issuing the request to piwik.
This could cause discrepancies or generally wrong user data. It would be nice to be able to customize the IP and server time that Piwik uses in the tracker.
It is critical that these 2 attributes can only be set by the Super User, otherwise anyone could record fake time/ fake IP visits in a piwik instance. I suggest we check and require super user token_auth in the piwik.php request to allow setting IP + server time.
Note that in tests, we already set these 2 parameters. To allow this, the proxy-piwik.php hack is used. This mechanism could then be removed to use the token_auth mechanism.
Change History (16)
comment:3 Changed 4 years ago by vipsoft (robocoder)
- Milestone changed from Features requests 1.x or 2.x to 1.1 - Piwik 1.1
comment:8 Changed 3 years ago by matt (mattab)
- Summary changed from Tracker API: Add possibility to define IP and Server time for all requests to Tracker API improvements : enable set IP and set server date & time
comment:9 Changed 3 years ago by matt (mattab)
- Milestone changed from 1.1 - Piwik 1.1 to 1.2 - Piwik 1.2
comment:10 Changed 3 years ago by matt (mattab)
- Milestone changed from 1.2 Piwik 1.2 to 1.x - Piwik 1.x
comment:13 Changed 3 years ago by vipsoft (robocoder)
- Resolution set to fixed
- Status changed from new to closed
comment:14 Changed 3 years ago by vipsoft (robocoder)
- Milestone changed from 1.x - Piwik 1.x to 1.2 Piwik 1.2