Error listener in Js tracking client


#1

Hi all,

I was working for mobile analytics for a hybrid app using js tracking client, Where I am facing a challenge to add a error listener call back on trackpageview or track event. For example I call _paq.push([“trackPageView”]) it will do a http call to piwik server to load analytic data. If there is an error I need a notification callback method to execute.

I checked in docs no api found to add an error listener do anybody have some idea?


(Matthieu Aubry) #2

Hi Arul,

If there is an error I need a notification callback method to execute.

Interestingly, a Piwik community member just contributed this feature to us, but we haven’t reviewed or tested it yet. Could you test it and give feedback in this pull request? [Piwik.js] - Create a callback for error or success by dhoko · Pull Request #8782 · matomo-org/piwik · GitHub


#3

Hi,

Sure just now i got your reply. Will do it and reply back soon.

thanks
Arul