使用 Piwik.js (matomo) 在 trackPageView() 的回调中访问 XHR 对象



我正在使用Matomo来跟踪页面浏览量。我有一个要求,在完成跟踪页面视图的 XHR 请求时,我需要执行一些涉及访问xhr(XmlHttpRequest(对象的操作。我发现通过这里描述trackPageView(),我们可以通过customTitle, customData, callback.我能够将回调函数作为参数传递,但我无法访问回调中的xhr
有什么方法可以在回调函数中访问xhr吗?

提前感谢!

我认为这现在已经解决了,这要归功于最近的拉取请求:

https://github.com/matomo-org/matomo/pull/13665

最新更新