Ticket #1125 (closed New feature: duplicate)

Opened 2 years ago

Last modified 11 months ago

Browsers plugin graph report percentage instead of visits

Reported by: jnandreae Owned by:
Priority: normal Milestone: Piwik 1.2.1
Component: Core Keywords: browser, plugin, chart
Cc: Sensitive: no

Description (last modified by matt) (diff)

The current view of the plugins used are meaningless. You can see in the graph how many people support this plugin but you have to look to another widget to see the count of people traced.

If i see it right in ticket #852 there are no detection for IE.

Proposal:

  • put percentage of visitors handling the plugin instead of number of visitors. This percentage would be based on all visits, excluding IE visits.
  • Add a note below the datatable explaining that Plugins detection doesn't work in IE and therefore the report is extrapolated based on non IE browsers.

Attachments

plugins.png Download (15.7 KB) - added by matt 19 months ago.
after changes
cookie works on all browsers.png Download (14.4 KB) - added by matt 19 months ago.

Change History

Changed 2 years ago by vipsoft

  • priority changed from major to normal
  • type changed from Bug to New feature
  • milestone set to Features requests - after Piwik 1.0

Requires changes to Visualization and ViewDataTable classes to support this chart type and data stream (Similar to #397.)

Changed 2 years ago by matt

  • description modified (diff)
  • summary changed from Improved view of used browser plugins to Browsers plugin graph report percentage instead of visits

Renaming and increasing priority.

It would be easy to change the current graph and display percentage of users that have the plugin enabled. This would fix the main issue of this report.

Changed 2 years ago by matt

  • milestone changed from Features requests - after Piwik 1.0 to 5 - Piwik 1.0 - Stable release

Changed 20 months ago by matt

  • description modified (diff)

Changed 19 months ago by SteveG

(In [2469]) refs #1125 now shows table instead of bar chart, displaying percentage of visits (excluding ie visits)

Changed 19 months ago by SteveG

would anyone please add the mentioned note to the view script/translation and close this ticket. I have problems with finding a suitable phrase for that in english (only got some in german...)

Changed 19 months ago by vipsoft

  • milestone changed from 4 - Piwik 1.0 - Stable release to 0 - Piwik 0.6.4

Changed 19 months ago by matt

Message proposal: {{{ Note: Plugins detection doesn't work in Internet Explorer. This report is based only on non IE browsers. }}}

patch looks good!

Changed 19 months ago by matt

(In [2474]) Refs #1125

  • fixing integration tests
  • fixing bug when no visit (called function on non object)

Refs #818: all_tests.php is now green on my box

Changed 19 months ago by matt

  • status changed from new to closed
  • resolution set to fixed

(In [2493]) Fixes #1125

  • column translation was empty
  • displaying message in footer + adding general feature to display footer messages
  • fixing sorting was not working on the % Visits column because filter was queued and the Sort filter was executed before the new column was added. Instead, just applied the filter directly in API.

Changed 19 months ago by matt

after changes

Changed 19 months ago by matt

  • status changed from closed to reopened
  • resolution fixed deleted

Bug, see screenshot: cookie detection works on IE therefore should not remove IE users (or % visits is higher than 100%)

Changed 19 months ago by matt

Changed 19 months ago by SteveG

I guess the best solution to get representive values for all is to calculate the cookie value including IE users and the rest without those. Or shall we include ie to all values?

Changed 19 months ago by matt

sounds good - I think we can leave the messaging as it is.

Changed 19 months ago by vipsoft

  • status changed from reopened to new

Changed 19 months ago by SteveG

  • status changed from new to closed
  • resolution set to fixed

(In [2519]) fixes #1125 include ie users for cookie value calculation, now works for multiple periods like last10

Changed 19 months ago by SteveG

Wasn't as easy as I thought. The last change for the API-function didn't work for multiple periods like last10. So I had to change a bit more than only the cookie value calculation. Maybe anyone sees an easier way of doing this...

Changed 19 months ago by matt

  • status changed from closed to reopened
  • resolution fixed deleted

code is too complicated I agree. Maybe this would be easy by writing a DataTable Filter? The Filter will access a standard datatable and therefore can contain the simple code contained currently in your API function.

The datatable array will simply apply the filter to all datatable inside it. It would in this case update all stats, except cookies.

Do you see what I mean?

Changed 19 months ago by matt

(In [2595]) Refs #1125

  • Example of a simple filter to apply to the datatable in the API method. Filters will automatically work on all dataTable are are easy to write /maintain
  • Fixing tests

Changed 19 months ago by SteveG

java detection seems to work in IE, too. see #1496

Changed 19 months ago by matt

  • milestone changed from 0 - Piwik 0.6.5 to Features requests - after Piwik 1.0

we can do this a bit later as code works as is. Let's focus on the secret project ;-)

Changed 18 months ago by vipsoft

(In [3031]) refs #1125 - partially revert r2595 ... the "%" (unit) is inconsistent with revenue (no unit); refs #1562

Changed 17 months ago by vipsoft

What's the remaining "todo" on this ticket?

Changed 17 months ago by SteveG

Code works as it is, but code complexity is still a bit too hight. see  http://dev.piwik.org/trac/browser/trunk/plugins/UserSettings/API.php#L93

Maybe that could be solved a better way by using an tablefilter. Problem is that some plugins are treated a special way, as their detection does work in IE aswell.

Changed 16 months ago by vipsoft

  • status changed from reopened to new

Changed 15 months ago by matt

  • milestone changed from Features requests 1.x or 2.x to 1.2 - Piwik 1.2

I'll take a look at the code and see if we can write a shorter version (maybe reusable). See also #1816

Changed 13 months ago by matt

it seems sometimes the % visit might be wrong:  http://wishuload.de/images/19232-42-2011-01-12142443.png

Changed 11 months ago by matt

  • status changed from new to closed
  • resolution set to duplicate

See #2133 for code improvement now affecting another code

Closing this ticket as request was implemented, SteveG your next patch will be closed a lot faster I promise :)

Note: See TracTickets for help on using tickets.