Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Open
mattab opened this Issue · 8 comments

2 participants

@mattab
Owner

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
Collaborator

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
Owner

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
Collaborator

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
Owner

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
Collaborator

Replying to matt:

          ( ) Show Historical Graphs for the top 5 values 

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

@mattab
Owner

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
Collaborator

(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
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.