在piwik的api中都会有这么一个参数:&expanded=1
如果不加这个参数就会丢失数据,曾经就遇到订单数据,api无法抓取过来的情况,费劲了很大的周折才找到原因,
关于参数解释:
http://developer.piwik.org/api-reference/reporting-api
-
expanded; some API functions have a parameter 'expanded'. If 'expanded' is set to 1, the returned data will contain the first level results, as well as all sub-tables. See, for example, thereturned dataset for the Actions.getDownloads API function.