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

Scheduled report: "Referrer Type" could have a graph plotting each referrer type evolution #3014

Open
mattab opened this issue Mar 6, 2012 · 8 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@mattab
Copy link
Member

mattab commented Mar 6, 2012

To assess whether a SEO or Social network marketing strategy is working, it would be nice to be able to visualize in the Scheduled Report the Evolution graph plotting the number of visits from Search Engines, Campaigns, direct Websites.

It requires #3013 (Static graphs to support multiple metrics)
But also another feature to plot a same metric from different rows (in the case of Referrer Type, we want to plot nb_visits for each Row of the table, which we know has maximum 4 rows: search,websites,campaigns,direct)

We might be able to re-use the Row evolution API from: #534

@julienmoumne
Copy link
Member

Should row evolutions be displayed :

  • only for Referrer Types
  • for all reports with dimensions, or
  • for a specific set of reports. This set could be
    • hard-coded, or
    • defined by the user when creating the scheduled report

@mattab
Copy link
Member Author

mattab commented Jun 19, 2012

I think we could maybe have a new field in the metadata output "imageGraphShowEvolution" ?

This flag could be set for:

  • Referrer types
  • Mobile vs Desktop
  • Operating system family
  • Browsers by family
  • All Websites dashboard

For these (and maybe others we could add later), the row evolution could be displayed for the top 5 rows?

What do you think?

Alternatively we could also add a new SELECT entry "Display a historical graph for each report" ?

@julienmoumne
Copy link
Member

Replying to matt:

I think we could maybe have a new field in the metadata output "imageGraphShowEvolution" ?

I don't think introducing this field adds that much value. We could simply store the list of reports around https://github.com/piwik/piwik/blob/master/plugins/ImageGraph/ImageGraph.php#L44. This is the method constructing the imageGraphUrl metadata field.

Adding "imageGraphShowEvolution" would make sense if two modules need it. We can introduce this field when that happens.

If I am missing something please enlighten me.

Alternatively we could also add a new SELECT entry "Display a historical graph for each report" ?

Do you mean a UI element in the report creation form? Would this be a SELECT or a checkbox input?

@mattab
Copy link
Member Author

mattab commented Jun 27, 2012

Replying to JulienM:

Adding "imageGraphShowEvolution" would make sense if two modules need it. We can introduce this field when that happens.

OK

Do you mean a UI element in the report creation form? Would this be a SELECT or a checkbox input?

below the SELECT in (optional) Display options, we could have a radio button

Graphs style: (X) (default) Show Horizontal Bar Graphs
              ( ) Show Historical Graphs for the top 5 values 

what do you think?

@julienmoumne
Copy link
Member

Replying to matt:

          ( ) Show Historical Graphs for the top 5 values 

For all reports or only for those mentioned in comment:3 ?

@mattab
Copy link
Member Author

mattab commented Jun 28, 2012

For all reports that would otherwise have a Horizontal Bar Graph above (depending on what options are selected in the SELECT), when the radio "Historical graph" is selected then there will be ONLY historical graphs

  • (unchanged graphs) the 1 dataset graph for example plotting last visits, or last ecommerce conversions is not changed by this radio button
  • top browsers, keywords, custom var, pages titles, etc. all reports that would normally have had a horizontal bar graph, would then get a historical lines graph for the top 5 values

does it sound like a good idea?

@julienmoumne
Copy link
Member

(In [6918]) refs #3013

  • plot multiple metrics using $columns (renamed from $column)
  • plot row evolutions using optional $labels, will plot top 5 labels when omitted
  • imageGraphEvolutionUrl added to report metadata (only for reports without constant row count and Referers.getRefererType)
  • $showMetricTitle renamed to $showLegend

refs #3014

  • new report parameter 'Show Historical Graphs for the top 5 values'
  • better looking evolution graph on landcape pages

refs #3158

  • $label is now optional, will return top N=filter_limit row evolutions sorted with filter_sort_column when omitted
  • support for $idGoal
  • integration tests updated

constantRowsCount set on

  • Goals_getDaysToConversion
  • Goals_getVisitsUntilConversion
  • Referers_getRefererType

merges

  • r6874

IDEA

  • in Piwik UI, add a link 'display top 10 row evolutions' using API.getRowEvolution &label=false&filter_sort_column=xyz&filter_limit=10

TODO

  • fix scheduled report integration tests
  • review @reviews

@mattab
Copy link
Member Author

mattab commented Oct 26, 2012

Julien has done most work on this already, it's going to be awesome. We also should include this graph in Piwik Mobile of course.

@mattab mattab added this to the 2.x - The Great Piwik 2.x Backlog milestone Jul 8, 2014
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants