refs #5964 make sure to pass segment to the API although it should already work and it worked for me as there is this hack: https://github.com/piwik/piwik/blob/master/core/API/Proxy.php#L386