我想在matomos报表API中请求给定contentName的核心指标。 ContentName在此示例中是anwalt:4247,我发送此请求:
https://statistics/?method=Contents.getContentNames&segment=contentName==anwalt:4247&label=anwalt:4247&date=2019-01-01,today&period=range&format=JSON&module=API&idSite=1&format=JSON&token_auth=93exx3
给予
[{"label":"anwalt:4247","nb_visits":27,"nb_impressions":37,"nb_interactions":12,"sum_daily_nb_uniq_visitors":27,"interaction_rate":"32,43\u00a0%","segment":"contentName==anwalt%3A4247","idsubdatatable":1}]
或此
https://statistics/?method=Contents.getContentNames&label=anwalt:4247&date=2019-01-01,today&period=range&format=JSON&module=API&idSite=1&format=JSON&token_auth=93exx3
给予
[{"label":"anwalt:4247","nb_visits":21,"nb_impressions":28,"nb_interactions":8,"sum_daily_nb_uniq_visitors":21,"interaction_rate":"28,57\u00a0%","segment":"contentName==anwalt%3A4247","idsubdatatable":282}]
但是两个数字都不正确(在matomo UI中除外)。>>
对这个常见任务没有简单的要求吗?
我想在matomos报表API中请求给定contentName的核心指标。 ContentName在此示例中是anwalt:4247,我发送以下请求:https:// statistics /?method = Contents ....
您尝试使用&date=2019-01-01,today&period=range
的方法应该可以正常工作,输出数据中的问题是什么?