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

Row Evolution, Support Per-Goals and Ecommerce metrics: conversions, conversion rate, revenue and total revenue #3883

Closed
mattab opened this issue Apr 8, 2013 · 6 comments · Fixed by #18228
Assignees
Labels
c: Usability For issues that let users achieve a defined goal more effectively or efficiently. 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 Apr 8, 2013

Row Evolution is an awesome feature of Piwik. This ticket is about adding support for Goals and Ecommerce reporting within Row evolution.

Rationale

Goals are a key report that users will want to know about historically. There is huge value in reporting metrics of "Goal Revenue, Ecommerce revenue" and then per Goal metrics: "Goal %s revenue", "%s conversions", conversation rate for 1 or all goals, over time, for any given report with Goal metrics.

Use cases

  • see the evolution of "Conversion rates" for specific keyword or set of websites and for a specific goal (currently it's not possible!).
  • see the revenue per custom dimension over time,
  • compare the ecommerce revenue for the top 4 search keywords or entry Pages over time

Specs

  • show the Goal metrics in Row Evolution report somehow at all times (along with standard visits metrics). Row evolution UI has to somehow let people view all metrics.
  • note: we can't display by default all goal metrics in the row evolution report: for example if there are 5 goals, that's already 10+ metrics. Instead we display by default the Actions metrics like in standard Row evolution + we display (Revenue + Conversions + Conversion rate) for this goal that was being viewed. (or for "All goals" if viewing Goals>Overview).
  • Row evolution metric picker is improved and user can somehow easily select additional metrics to list as a sparkline w/ text and plot in the evolution graph. Ideally the metrics are grouped/collapsed by Goal so the list is not overwhelming (since we have 3 metrics per goal).
@mattab mattab added this to the 2.x - The Great Piwik 2.x Backlog milestone Jul 8, 2014
@mattab mattab added the Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. label Apr 22, 2015
@mattab mattab modified the milestones: Mid term, Long term Dec 5, 2016
@mattab mattab removed this from the Backlog (Help wanted) milestone Mar 3, 2019
@mattab
Copy link
Member Author

mattab commented Mar 3, 2019

It's quite limiting not to be able to view conversion metrics in Row Evolution. For example, it would be very valuable to see "Conversion rate" and "conversions" over time, for a particular Campaign name, for a particular goal. Currently, the row evolution popover doesn't let us see any of the goal metrics:
cloud trial

@mattab mattab added this to the 4.1.0 milestone Nov 6, 2019
@mattab mattab added the c: Usability For issues that let users achieve a defined goal more effectively or efficiently. label Nov 10, 2019
@mattab mattab changed the title Row Evolution: Support Per-Goals and Ecommerce metrics Row Evolution, Support Per-Goals and Ecommerce metrics: conversions, conversion rate, revenue, May 29, 2020
@mattab mattab changed the title Row Evolution, Support Per-Goals and Ecommerce metrics: conversions, conversion rate, revenue, Row Evolution, Support Per-Goals and Ecommerce metrics: conversions, conversion rate, revenue and total revenue May 29, 2020
@mattab mattab modified the milestones: 4.1.0, 4.2.0 Dec 21, 2020
@mattab mattab modified the milestones: 4.2.0, 4.3.0 Feb 22, 2021
@mattab mattab modified the milestones: 4.3.0, 4.4.0 May 26, 2021
@tsteur
Copy link
Member

tsteur commented Jul 22, 2021

As the issue is not quite clear. What's wanted here is when viewing a goal eg https://demo.matomo.cloud/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday#?idSite=1&period=day&date=yesterday&segment=&category=Goals_Goals&subcategory=6 ,

and in the "by dimension" view click on "row evolution"
image

then it is showing different metrics compared to the report in the table
image

@mattab mattab modified the milestones: 4.4.0, 4.5.0 Jul 28, 2021
@geekdenz
Copy link
Contributor

It is showing visits and correctly.

Does this mean we want to show the Evolution of 'New Resume Conversions', 'New Resume Conversion Rate', 'New Resume Revenue'..., the data in the table, instead of 'Unique visitors', 'Actions' etc in the graph?

@tsteur
Copy link
Member

tsteur commented Sep 20, 2021

Yes, that's my understanding.

Maybe @mattab can confirm too but I'm pretty sure that's what we're after 👍

@geekdenz geekdenz self-assigned this Sep 20, 2021
@geekdenz
Copy link
Contributor

I could not find how to do this quickly with only existing code.

Should we

  1. create an API hook/endpoint in the Goals API for this that becomes the apiMethod=Goals.someMethod and pass that in a URL so that e.g. this:

/index.php?date=2021-09-19&apiMethod=Referrers.getReferrerType&label=%40Search%2520Engines&disableLink=1&module=CoreHome&action=getRowEvolutionPopover&idSite=1&period=year&colors=...

becomes

/index.php?date=2021-09-19&apiMethod=Goals.someMethod&label=%40Search%2520Engines&disableLink=1&module=Goals&action=getRowEvolutionPopover&idSite=1&period=year&colors=...

and then change the call in the JS on the client side to fetch this URL instead.

In the API call we could return the metrics to the popover render call and reuse quite a bit of code.

  1. Alternatively, we could maybe add the metrics to the API call that already exists.

I feel the first approach could be more flexible also for other plugins or core. But this might also be more work.

  1. I wonder also, if APIs should be preferred that return JSON and the client side should fetch or already have a template in AngularJS or later Vue and populate that instead. That way the template could be cached and the API call would be cleaner and smaller too.

@tsteur
Copy link
Member

tsteur commented Sep 21, 2021

I haven't looked in detail. But I think what you first will want to do is add the idGoal to the row evolution request which is currently not there. Without this you cannot possible show the metrics for the right goal I'm assuming.

image

When that idGoal is present then you will probably want to change which columns to display in the row evolution. To make this work you will want to check what the goals visualisation is doing probably https://github.com/matomo-org/matomo/blob/4.5.0-b2/plugins/Goals/Visualizations/Goals.php

I've only had a look for 5 minutes so I'm not too much into this topic but that's how I would likely approach it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Usability For issues that let users achieve a defined goal more effectively or efficiently. 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

Successfully merging a pull request may close this issue.

5 participants