Standardise actions of last visitor API output #12284
Labels
c: Platform
For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.
Milestone
because of action entry
{ "type": 95, "formName": "rechnerform", "formId": "6", "converted": "0", "submitted": 0, "serverTimePretty": "18.11.2017 20:27:14", "fields": [], "timestamp": 1511036834 },
it looks like
where you can only see
95
for a form interaction.I reckon we will need to think about some way to standardide the output of actions maybe, so apps like Piwik Mobile can be written to process this API output. For example we already have always
icon
, next would be like atitle
, and asubtitle
or so maybe? For a page view that would be the Page Title and the URL as subtitle.The same logic should be then also used in the Piwik app to show the visitor log but that may actually not work because we want to have some links clickable, for example the form name which we would not be able to make clickable on the mobile app (at least it won't be trivial at all). Any thoughts?
Hiding unneeded output vs new API
Just thinking about the mobile app and that it would add quite a bit of data to send even more properties, and at the same time have lots of properties that are not needed. So maybe there would be an option to hide all action specific properties like
pageIdAction
orformId
orformName
to make the app much faster. Or maybe that would be a totally different API that only returns those standard fields? => If it is a new API then backwards compatibility will be a huge problem because not all users will have a new version of Piwik installed. But this I would need to somehow workaround anyway as I will either way need two different kind of views, one for old API format, and one for new API format (which shouldn't be too bad)The text was updated successfully, but these errors were encountered: