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 Evolutions not returning data for Actions.get[Entry|Exit]PageTitles #3361

Closed
julienmoumne opened this issue Sep 6, 2012 · 5 comments
Closed
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@julienmoumne
Copy link
Member

On Piwik Demo, Actions.getEntryPageTitles returns data for label Piwik Forums:

<row>
  <label> Piwik Forums</label>
  <nb_visits>117</nb_visits>
  [..]

Corresponding row evolution does not return data :

[...]
  <result date="2012-08-20"/>
  <result date="2012-08-21"/>
  <result date="2012-08-22"/>
  <result date="2012-08-23"/>
  <result date="2012-08-24"/>
  <result date="2012-08-25"/>
  <result date="2012-08-26"/>
  <result date="2012-08-27"/>
  <result date="2012-08-28"/>
  <result date="2012-08-29"/>
[...]
@mattab
Copy link
Member

mattab commented Sep 6, 2012

Thanks for the report

@diosmosis
Copy link
Member

In 98658d0: Fixes #3361, make sure row evolution works for get[Entry/Exit]PageTitles by adding correct label variation for those reports.

@diosmosis
Copy link
Member

@matt, there is no bug, the second URL is incorrect:

  • The date should not be 'today' but a date range including 2012-09-01.
  • The label uses a '>'. In order to differentiate it from just a '>' in the label, each individual label needs to be encoded again (so, urlencode(urlencode($toplevel).'>'.urlencode($nextlevel)) ).

Here is a correct URL that shows data:

http://demo.piwik.org/index.php?module=API&method=ImageGraph.get&idSite=7&apiModule=Actions&apiAction=getDownloads&token_auth=anonymous&graphType=evolution&period=month&date=2012-01-01,2012-12-01&width=500&height=250&label=forum.piwik.org%3E%252Ffile.php%253F5%252Cfile%253D276%252Cfilename%253Dpiwik-report-export_1_.pdf

@mattab
Copy link
Member

mattab commented Apr 20, 2013

Awesome, nice find & fix! :)

@julienmoumne julienmoumne added this to the 1.12 - The Great 1.x Backlog 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