Row Evolutions not returning data for Actions.get[Entry|Exit]PageTitles #3361

Closed
julienmoumne opened this Issue Sep 6, 2012 · 5 comments

3 participants

@julienmoumne
Piwik Open Source Analytics 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
Piwik Open Source Analytics member

Thanks for the report

@diosmosis
Piwik Open Source Analytics member

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

@diosmosis
Piwik Open Source Analytics 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
Piwik Open Source Analytics member

Awesome, nice find & fix! :)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment