matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.7k stars 2.62k forks source link

inconsistent field names/content for visitor details in Live API (getLastVisitsDetails) #6822

Open FelixSchwarz opened 9 years ago

FelixSchwarz commented 9 years ago

It seems inconsistent to me that visitor details in the live visitor log API ("Live.getLastVisitsDetails" ) uses "serverTimePretty" which actually contains date AND time while the attribute with the same name for actual visits only contains time (to be used with another attribute "serverDatePretty" ).

Preferrably if this is going to be fixed you could also have a look at #6814: changing the contents of "serverTimePretty" will require some code updates for all users of the API so better give them a "clean" way of consuming the information. Also the presence of the "serverTimestamp" field can be used to decide if you're talking to an older server or not.

mattab commented 9 years ago

Maybe such breaking API changes this could be a good candidate for Piwik 3.0.0 ? #6074

tsteur commented 9 years ago

:+1: for fixing in Piwik 3.0.0