updated REST-api call for analytics to new url scheme