I think Piwik is very interesting and I am considering to develop a small extension to better recognise mobile devices (show data in the dashboard) and also be able to better track them.
I saw a ticket on this and it’s already closed, 395[/url]. I think the current implementation solves only part of the problem. What I would like to do is integrate with [url=http://deviceatlas.com]DeviceAtlas a mobile device database with also knowledge of robots for the part of detection. I looked into the code and it seems to me like the changes should happen in the UserAgentParser.php, but I suspect that I’d have to replace most of it. The problem is, of course, that Tracker.php and I assume also the UI (haven’t looked into it, yet) will rely on methods that are in UserAgentParser.
I’d like to know if there is a recommended way to move forward. Since DeviceAtlas is a commercial product even though I could release the plugin as Open Source, I don’t think all users of Piwik would be very happy if my new UserAgentParser replaced completely the existing one, so what I’d like to do is leave the parsing as it is now for regular browsers, but intercept the call with my new module, get more mobile device details and then insert the code in the database.
The other part of the change would be to also provide code snippets that could be used in the website instead of the Javascript, but I don’t think this would interfere with anything else in Piwik, it would just be another page in the admin, next to the existing page for the Javascript code.
Any recommendations are welcome.