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

MultiSites evolution metrics not shown when parameter period=range or date=(last*/previous*) is used #4068

Open
tsteur opened this issue Aug 5, 2013 · 0 comments
Labels
Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.

Comments

@tsteur
Copy link
Member

tsteur commented Aug 5, 2013

Compare those two API requests:

http://demo.piwik.org/index.php?period=day&date=today&showColumns=nb_visits%2Cvisits_evolution&filter_limit=50&sortOrderColumn=nb_visits&filter_sort_column=nb_visits&module=API&token_auth=anonymous&format=json&method=MultiSites.getAll&language=de&

[{"label":"Piwik Forums","nb_visits":898,"visits_evolution":"153,7%","idsite":7},{"label":"Crowdfunding","nb_visits":53,"visits_evolution":"65,6%","idsite":32},{"label":"virtual-drums.com","nb_visits":28,"visits_evolution":"-22,2%","idsite":3}]

http://demo.piwik.org/index.php?period=range&date=last7&showColumns=nb_visits%2Cvisits_evolution&filter_limit=50&sortOrderColumn=nb_visits&filter_sort_column=nb_visits&module=API&token_auth=anonymous&format=json&method=MultiSites.getAll&language=de&

[{"label":"Piwik Forums","nb_visits":5368,"idsite":7},{"label":"Crowdfunding","nb_visits":395,"idsite":32},{"label":"virtual-drums.com","nb_visits":275,"idsite":3}]

The second call does not contain the evolution metric. The only difference is the date and period parameter.

Background: I'm using this API call in Piwik Mobile 2 to fetch the list of all websites for the All Websites Dashboard. I'm displaying only the number of visits and evolution there. To reduce the amount of transferred data and to improve performance I'm using the showColumns parameter.

@tsteur tsteur added this to the Future releases milestone Jul 8, 2014
@mattab mattab modified the milestones: Long term, Mid term Dec 23, 2015
@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