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.13k stars 2.57k forks source link

Detect more mobile phones, mobile devices, consoles #395

Closed mattab closed 11 years ago

mattab commented 15 years ago

We can detect more mobile phones, consoles, etc. in Piwik We can build a simple plugin that lists all the user agent flagged as "unknown" in the logs. We can then use this tool to add new Operating Systems / Browsers in the related files (https://github.com/piwik/piwik/blob/master/core/DataFiles)

robocoder commented 15 years ago

Here's the UserAgent string from an iPhone:

Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_2 like Mac OS X; en-us) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5G77 Safari/525.20
robocoder commented 15 years ago

Some lists:

anonymous-matomo-user commented 15 years ago

Maybe some integration with URFL could provide an extension of the browser header functionality

mattab commented 15 years ago

see also http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/ for lists.

one idea from this page: we could execute the code on a list of 100s of user agents and check for the accuracy of algorithm.

mattab commented 15 years ago

I added iphone detection; http://piwik.org/demo/libs/UserAgentParser/test.php what other widely used phone or system can we add?

robocoder commented 15 years ago

I'd add "BlackBerry" to the list.

mattab commented 15 years ago

added support for: windows 7, IE8, palmOS, iPod, blackberry, Android see [907]

mattab commented 11 years ago

See next ticket: mobile analytics reports