Ticket #534 (new New feature)
Opened 3 years ago
Last modified 80 minutes ago
Show graph of visits/pages over the last 30 days, for a specific row (keyword, country, etc.)
| Reported by: | matt | Owned by: | |
|---|---|---|---|
| Priority: | critical | Milestone: | 1.8 Piwik 1.8 |
| Component: | UI (templates, javascript) | Keywords: | evolution, graph, multiple values, multi lines, plot, entity, UI pattern |
| Cc: | Sensitive: | no |
Description (last modified by matt) (diff)
The plugin would add, in all data tables, an icon next to the keyword/ country / page view (or on hover), that would ajax load an evolution graph of the number of visits for this keyword, country or page, over the last 30 days/weeks/month. The graph would have the 'data export' links.
UI
We should find out how to provide this UI feature without bloating the UI with icons and new functionnality. Note that some rows in Piwik are already clickable (eg. to get the list of keyword by search engine).
One way of doing it would be to show a semi transparent icon when hovering over a row. The icon would be shown at the end of the row.
The new UI would also be used to report the new reports from #756
Report The report would contain, for a specific keyword or search engine or country or page, the following information:
- visits in date range + sparkline
- unique visitors in date range + sparkline
- bounce rate + sparkline
- (for pages) time per page, exit rate, etc. + sparkline
Also, we should report Goals conversions, maybe in a different report, available by a click on a tab, or some other mechanism. This report would show, for this keyword/country/page, the following info:
- overall conversions / conversion rate / revenue per visit
- for each goal...
- conversions / conversion rate/ revenue per visit.
Performance note
Piwik stores data on a "per day" basis. When plotting number of page views for the url ' http://example.org/category/photo' for the last 30 days, it will require selecting data for the 30 days, and navigate through the tree to get the child node data (/photo) - this is all done automatically via filters. In this example, piwik would select 90 blobs of data, and unserialize, load in memory, grep, etc. This is a severe requirement and feasability should be studied before starting the implementation.
When plotting evolution of keyword "piwik" over the last 30 days, this would require 30 blobs of data to be selected/unserialize/loaded/etc.
Note
In the first version, only one data would be plottable. In future versions, we could think about plotting 3 or 4 keywords/countris on the same graph. How would this be available in the UI? Clicking on the icon could "enable" the line to be displayed on the graph, and a "reset" button, or a click on the icon, would disable this line. Requires #397.

