@diosmosis opened this issue on August 14th 2015

Goals.getGoals selects all goals for multiple sites, but then it will put them in an array associating each goal by its idGoal. Since goal IDs are not unique across different sites, Goals.getGoals will end up overwriting goals of other sites and not returning all goals for all requested sites.

See for example:

http://demo.piwik.org/index.php?module=API&method=Goals.getGoals&format=XML&idSite=7&period=day&date=2015-07-15,2015-08-13&date=2015-07-15%2C2015-08-13&filter_limit=false&format_metrics=1&expanded=1&token_auth=anonymous&filter_limit=30

vs.

http://demo.piwik.org/index.php?module=API&method=Goals.getGoals&format=XML&idSite=all&period=day&date=2015-07-15,2015-08-13&date=2015-07-15%2C2015-08-13&filter_limit=false&format_metrics=1&expanded=1&token_auth=anonymous&filter_limit=30

@tsteur commented on August 14th 2015

See #8533 might be similar issue or maybe even duplicate

@SilverNL commented on April 22nd 2016

Would be great if this could get fixxed? Live view all visites would be awesome..

Powered by GitHub Issue Mirror