Add 'Goals' data to API requests


#1

For some API requests, Piwik return Goals data.

For example
UserCountry.getCountry
http://demo.piwik.org/?module=API&method=UserCountry.getCountry&idSite=7&period=day&date=today&format=JSON&token_auth=anonymous

But for most of the requests, no Goal data is returned, for example
DevicesDetection.getBrowsers
http://demo.piwik.org/?module=API&method=DevicesDetection.getBrowsers&idSite=7&period=day&date=today&format=JSON&token_auth=anonymous]DevicesDetection.getBrowsers

or UserLanguage.getLanguage
http://demo.piwik.org/?module=API&method=UserLanguage.getLanguage&idSite=7&period=day&date=today&format=JSON&token_auth=anonymous

Is there an easy way to add Goal data to these requests?


(Matthieu Aubry) #2

Hi Jeffrey,

by default we selected the most interesting dimensions to process Goal metrics for. It would make sense to want more dimensions Goal data… please feel free to create an issue in our tracker: Issues · matomo-org/piwik · GitHub