我是新来的Matomo,我会用它来生成报告的具体网址在我的网站。对于每一页,我需要所有的geoip图,直线图,表格等。
我观看了演示和API,但没有找到使用API或面板演示的方法(对于单个页面,我只能看到演示中的行图)。
有办法吗?
发布于 2018-03-29 20:49:51
您可以使用分段特征通过查询过滤所有内容。
如果您想要一个URL,那么您应该为Action URL is https://example.com/添加一个段

这些分段(也可以预处理)也可以通过SegmentEditor API:https://developer.matomo.org/api-reference/reporting-api#SegmentEditor创建。
此外,还可以通过添加&segment=参数:https://developer.matomo.org/api-reference/reporting-api-segmentation来动态地对每个API查询进行分段。
发布于 2020-01-13 10:54:09
不幸的是,被接受的答案不再起作用了。
从Matomo3.12.0开始,段的行为更改为显示以定义的URL开始的访问,以及访问者随后访问的所有页面。
Matomo的创始人建议使用目标作为替代,您可以在用户访问某个页面URL或页面URL部分时创建一个要触发的目标。
https://matomo.org/docs/tracking-goals-web-analytics/#create-a-goal
我无法在API中找到一种方法,在没有转换的情况下获得目标访问,但我可能错了。下面是对Goals.get的响应
{
"nb_conversions": 337,
"nb_visits_converted": 327,
"revenue": 14262.4,
"conversion_rate": "8.09%",
"nb_conversions_new_visit": 0,
"nb_visits_converted_new_visit": 0,
"revenue_new_visit": 0,
"conversion_rate_new_visit": "0%",
"nb_conversions_returning_visit": 337,
"nb_visits_converted_returning_visit": 327,
"revenue_returning_visit": 14262.4,
"conversion_rate_returning_visit": "8.09%"
}相关资源:https://forum.matomo.org/t/filter-page-urls-by-segments/34859 https://github.com/matomo-org/matomo/issues/8450
https://stackoverflow.com/questions/49564254
复制相似问题