Ticket #2895 (new New feature)

Opened 4 months ago

Last modified 12 days ago

New reports: Browser and Operating system market shares

Reported by: matt Owned by:
Priority: critical Milestone: 1.7.x - Piwik 1.7.x
Component: UI (templates, javascript) Keywords:
Cc: Sensitive: no

Description (last modified by matt) (diff)

Currently Piwik reports

  • Browser family, Gecko VS Webkit VS IE vs Opera: useful for web developers since the engine impact the way pages are rendered
  • Browser versions: FF 8, IE 7, etc. Useful to know exactly what browsers are used

It would be nice to also provide Browser marketshare: FF Vs IE Vs Opera Vs Chrome Vs Safari Vs others.

  • This would be useful to answer the general geek question "Who is winning?"
    • It might be a bit too much to yet another report about browsers in Visitors > Settings report already a bit crowded.
    • Maybe The User Interface could be a button to access the other report, in a footer message for example "Switch to Browser Marketshare report" / "Switch to Browser versions report"
    • The report would be aggregated from the Browser versions datatable and in fact will be a "View" of this other report. It will not require a new archiving process. The API will call std API and extract browser name and re-aggregates.

This would be IMO a very useful new Piwik report and would not clutter the UI.

This ticket also includes similar work for Operating System Marketshare

  • By default, show Windows XP VS Mac OS X VS Windows 7 VS Android
  • An icon or link allows to display Windows VS Mac VS Linux
  • the new API is simply a view aggregating the existing API
  • there can be new integration tests for the 2 new API functions

Attachments

UserAgentParser_patch.php Download (1.2 KB) - added by macitbetter 3 months ago.
2895.diff.tar.gz Download (6.6 KB) - added by capedfuzz 12 days ago.
Patch for this issue.
2895.diff.tar.2.gz Download (8.3 KB) - added by capedfuzz 12 days ago.
Patch for this issue and issue #3133.

Change History

Changed 4 months ago by matt

  • description modified (diff)

Changed 3 months ago by matt

  • summary changed from New report: Browser market share to New reports: Browser and Operating system market shares

We could similarly provide the OS Market share report: Windows VS Mac VS Linux VS Blackberry.

I think that this could be done by simply "aggregating" All windows version together?

Once we do this, it could be relevant to provide breakdown of Mac OS X versions, similarly to the breakdown of Windows versions?

Changed 3 months ago by macitbetter

Changed 3 months ago by macitbetter

The patch above splits Mac OS X into its various major versions.

Changed 3 months ago by matt

  • milestone changed from 1.x - Piwik 1.x to 1.8 Piwik 1.8

It would be nice to do this early rather than later.

It's kind of annoying to see Chome 16 topping the reports just because their updater virus automatically updates everyone ;)

PS: I call the googleupdater.exe virus because I cant get rid of it on my computer, even deleting the scheduled updating task, it's then automatically re-created...

Changed 7 weeks ago by matt

  • priority changed from major to critical

Changed 7 weeks ago by matt

  • description modified (diff)
  • milestone changed from 1.8 Piwik 1.8 to 1.7.x - Piwik 1.7.2

Changed 12 days ago by capedfuzz

Patch for this issue.

Changed 12 days ago by capedfuzz

I've attached a patch for this issue. It adds a two new reports. Notes:

  • This patch includes the GroupBy filter from my patch in #3004 and the related reports code from #3137.
  • I only added one new report for operating systems: getOSFamily. The possible families are in UserAgentParser.php.
  • For the browser report, I modified the existing one to be getBrowserVersion and then added getBrowser. So the browser version report is no longer displayed by default.
  • For the browser report's metadata, I modified the existing metadata entry. There was a comment that said it was only used to define a segment. I'm not sure if modifying this was the correct path, though.

Changed 12 days ago by capedfuzz

Patch for this issue and issue #3133.

Changed 12 days ago by capedfuzz

I uploaded an updated patch for this issue. This patch has another report, getDeviceType, which is meant to solve #3133. The report differentiates between desktop OSes, mobile OSes and gaming consoles. The report is set as a related report for the Operating Systems section (not sure where else to put it).

Let me know what you think.

Note: See TracTickets for help on using tickets.