First of all, Kudos to Matomo community for such awesome analytics tools.
I am using Matomo for tracking page view. I have a requirement where on completion of XHR request of track page view I need to perform some operation which involves accessing
XmlHttpRequest ) object. Basically, I need some of the data extracted by Piwik to be sent to another server too. I figured out that with
trackPageView() we can pass
customTitle, customData, callback . I was able to pass a callback function as a parameter but I am not able to access
xhr in the callback.
Is there some way I can access
xhr in the callback function or extract data using some other method?
Thanks in advance!