Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event reporting: new report to view the second dimension as columns (Pivot by second dimension) #6078

Closed
mattab opened this issue Aug 27, 2014 · 4 comments
Assignees
Labels
c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Aug 27, 2014

The goal of this ticket is to provide an alternative display of Event reporting data. Instead of displaying second dimension values in the sub-table, we would to display second dimensions as columns of the report. This is a different view of the existing Event data, which is much more useful data visualisation in many cases.

Context

Event Tracking is a powerful feature of Piwik, letting you track custom events defined by

  • Event category,
  • Event action,
  • Event name (optional),
  • Event value (value).

The Event tracking UI displays top Event categories. A click on a given Event category loads top Event actions for this category, or top Event names for this category.

Example

If you track following events (structure { Category, Action, Name }) { Documentary, Watch, Inside Job }, { Documentary, Watch, Thrive }, { Documentary, Download, Zeitgeist }, { Documentary, Buy, Food inc. }

Then you will be able to access a report such as:

Event name Watch Download Buy
Inside Job 111 51 5
Thrive 99 170 17
Zeitgeist 56 40 5
Food inc. 15 32 3

(Watch, Download and Buy are Event Actions.)

Specs

  • The rows are not clickable to show sub-tables (since we cannot display the third dimension - it is not archived)
  • If there are dozens of actions then the table will get very very wide (dozens of columns).
  • The metric displayed in the column is the Total events
  • On hover on the metric, we could display a useful tooltip eg. The total Event value is $totalValue. It is the sum of $total events values <br /> between minimum of $minValue and maximum of $maxValue.<br/>Average Event value is: $avgValue
    • make this tooltip text the text for the tooltip on event value as well (reuse the filter)
  • Open question: could this feature be somehow generalised to all reports with a sub-table?
    • This feature is a bit similar to Google Analytics "Pivot by [DIMENSION]" (except it's simpler since GA allows Pivot by many dimensions)
  • How to order columns? Display columns in descending order of their value, for the value of the first row.
    • Maybe we can also pre-pend the column name with a numeric index like GA does, eg.
Event name 1. Watch 2. Download 3. Buy
Inside Job 111 51 5

Tasks

  • Make this available via the API (eg. via a new parameter 'pivotBySecondDimension=1')
  • Add a new way in the UI to enable this feature (eg. link 'Pivot by second dimension')
  • Add tests
  • Update Event Tracking user guide
@mattab mattab added this to the Piwik 2.6.0 milestone Aug 27, 2014
@mattab mattab added the Major label Aug 27, 2014
@quba
Copy link
Contributor

quba commented Aug 28, 2014

Would it be possible to add also total number of specific actions for whole category? So basically the same visualization, but with event category instead of event name.

@mattab
Copy link
Member Author

mattab commented Aug 28, 2014

Yes definitely, it will be available for all sub-dimensions combinations, so you will be able to see event actions as columns for each event category.

@mattab mattab self-assigned this Sep 2, 2014
@mattab mattab added the c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. label Sep 9, 2014
diosmosis pushed a commit that referenced this issue Sep 15, 2014
…w ComponentFactory utility class and reuse in Dimension to allow creating Dimension instances by human readable string IDs.
diosmosis pushed a commit that referenced this issue Sep 15, 2014
Refs #6078, extract factory logic from Report::factory and move to ComponentFactory utility class. Also reuse in Dimension to allow creating Dimension instances by human readable string IDs.
diosmosis pushed a commit that referenced this issue Sep 19, 2014
…ure pivotBy works w/ Events plugins' secondaryDimension query parameter..
diosmosis pushed a commit that referenced this issue Sep 19, 2014
…tables of specific reports and use in Events to display nb_events. Also do not set columns_to_display in Events plugin if table is pivoted.
@quba
Copy link
Contributor

quba commented Sep 20, 2014

What about the column with total number of events? I think it was included in the initial specification.

@mattab
Copy link
Member Author

mattab commented Sep 20, 2014

What about the column with total number of events? I think it was included in the initial specification.

The proposal is to show 9 columns and the 10th. column will contain the sum of values of remaining columns. ie 10. Others aggregate column

diosmosis pushed a commit that referenced this issue Sep 20, 2014
… where undoing a saved pivot does nothing.
diosmosis pushed a commit that referenced this issue Sep 20, 2014
diosmosis pushed a commit that referenced this issue Sep 20, 2014
…column if filter_sort_column is not in columns_to_display and make sure changing pivot status undoes column sort.
diosmosis pushed a commit that referenced this issue Sep 20, 2014
diosmosis pushed a commit that referenced this issue Sep 20, 2014
diosmosis pushed a commit that referenced this issue Sep 20, 2014
…ivotted and has no subtables (eg, when flattened).
diosmosis pushed a commit that referenced this issue Sep 20, 2014
diosmosis pushed a commit that referenced this issue Sep 21, 2014
…e calling disablePivotBySubtableIfTableHasNoSubtables.
diosmosis pushed a commit that referenced this issue Sep 21, 2014
…; (use decoded entity in PHP and do not select columns using jquery selector in dataTable.js).
diosmosis pushed a commit that referenced this issue Sep 21, 2014
…o save viewdatatable params when un-pivoting.
mattab pushed a commit that referenced this issue Sep 21, 2014
Adding new PivotByDimension DataTable filter that can pivot a report by (almost) any dimension. refs #6078
diosmosis pushed a commit that referenced this issue Sep 21, 2014
…n't get sent in AJAX requests when not set.
diosmosis pushed a commit that referenced this issue Sep 21, 2014
… data, set columns to display to all available columns.
diosmosis pushed a commit that referenced this issue Sep 21, 2014
diosmosis pushed a commit that referenced this issue Sep 21, 2014
…olumn, it is ordered first and not prepended.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

2 participants