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

ImageGraph: The column 'revenue_discount' was not found in this report #3132

Closed
tsteur opened this issue May 1, 2012 · 6 comments
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@tsteur
Copy link
Member

tsteur commented May 1, 2012

ImageGraph just displays a message "The column 'revenue_discount' was not found in this report" when opening "Ecommerce orders" with metric "Tax" on Piwik Mobile.

Example url:
http://demo.piwik.org/index.php?module=API&method=ImageGraph.get&idSite=3&apiModule=Goals&apiAction=get&idGoal=ecommerceOrder&period=day&date=2012-04-01%2C2012-04-30&filter_sort_column=revenue_discount&column=revenue_discount&idSite=3&language=en&width=556&height=300&fontSize=18&showMetricTitle=0&aliasedGraph=1

The metric 'revenue' works but the lines are a bit too big, I'll attach an image to visualize this.

Further not working metrics are 'revenue_tax', 'items', 'revenue_subtotal', 'revenue_shipping' and 'avg_order_revenue'.

I always set the column and filter_sort_column parameter to the current selected metric in Piwik Mobile. This has the advantage that the displayed graph is in accordance with the list of displayed report data. It works fine for reports like "VisitsSummary.get" but just not for Ecommerce report.

Is this a bug? Is it possible to render a graph for these metrics?

@tsteur
Copy link
Member Author

tsteur commented May 1, 2012

Attachment:
graphecommerce.png

@mattab
Copy link
Member

mattab commented May 2, 2012

Thanks for the report. What are the URLs that have problems?

Screenshot: I don't know why these metrics in particular would have a broken Y axis... ?

Are these "broken" graphs available 1 click away from the main menu? or does the user has to pick to see these graphs? This could change the priority on the ticket I guess

@tsteur
Copy link
Member Author

tsteur commented May 2, 2012

Yes. The 'revenue' graph is just one click away from the main menu. The graph is directly displayed when selecting the report "Ecommerce orders". Here is the link (you just have to add the token_auth):

http://demo.piwik.org/index.php?module=API&method=ImageGraph.get&idSite=17&apiModule=Goals&apiAction=get&idGoal=ecommerceOrder&period=day&date=2012-04-02%2C2012-05-01&filter_sort_column=revenue&column=revenue&idSite=17&language=de&width=556&height=300&fontSize=18&showMetricTitle=0&aliasedGraph=1

Other metrics look fine. Haven't seen similar issues before.

@julienmoumne
Copy link
Member

The ImageGraph.get API method does not take $idGoal as a parameter : https://github.com/piwik/piwik/blob/master/plugins/ImageGraph/API.php#L95

Processed reports are retrieved without any idGoal : https://github.com/piwik/piwik/blob/master/plugins/ImageGraph/API.php#L256

The data you get is therefore not related to eCommerce. This explains why eCommerce metrics are not recognized.

@mattab
Copy link
Member

mattab commented Jun 1, 2012

(In [6428]) Refs #3132 This doesn't seem to be enough yet

@mattab
Copy link
Member

mattab commented Jun 1, 2012

(In [6432]) Fixes #3132 The last bug was that the graph expects numbers, but we passing strings containing currency symbol, which was casting as 0

@tsteur tsteur added this to the Piwik 1.8 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants