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

Support for date=previousX for csv/tsv format in Analytics API #3412

Open
anonymous-matomo-user opened this issue Oct 1, 2012 · 1 comment
Labels
Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.

Comments

@anonymous-matomo-user
Copy link

For e.g. method=Referers.getRefererType it is no problem to get the statistics for
&date=previous1&period=month&format=xml (i.e. in xml format)

Same holds true for format=json.

However, this is not possible for tsv format with &date=previous1&period=month&format=tsv (same for format=csv). This gives the following error:

Error: Date format must be: YYYY-MM-DD, or 'today' or 'yesterday' or any keyword supported by the strtotime function (see http://php.net/strtotime for more information)

The API should be consistent and allow also csv/tsv format for this. Possibly, there are also other methods than Referers.getRefererType that have this behaviour.

Background: I would like to grab the previous month's statistics but not in xml but csv/tsv format. This feature request results from the discussion at http://forum.piwik.org/read.php?2,94478,94480

@mattab
Copy link
Member

mattab commented Oct 19, 2012

Thanks for the report. If you'd like to have the bug fixed quickly please consider sponsoring the fix.

@anonymous-matomo-user anonymous-matomo-user added this to the 2.x - The Great Piwik 2.x Backlog milestone Jul 8, 2014
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Projects
None yet
Development

No branches or pull requests

2 participants