Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

New: Automatic Javascript Error Tracking with Piwik! #4977

Open
mattab opened this Issue · 9 comments

3 participants

Matthieu Aubry Thomas Steur hpvd
Matthieu Aubry
Owner

Using the new powerful Event Tracking functionality, we can implement Javascript Errors Tracking within piwik.js.

The goal of this feature is to keep track automatically of any javascript errors or exception that happen during the rendering of the page, or any time after the initial rendering.

There are lots of tools that provide Error tracking and we would like to implement a basic, yet useful, alternative as part of Piwik Data Analytics platform!

Todo

  • FAQ
  • User Guide?
  • JS test
Thomas Steur
Owner

In 588e689: refs #4977 added a new method to the tracker to enableJSErrorTracking. This is beta... feedback is welcome...

Thomas Steur
Owner

In 128d75a: refs #4977 enable JS error tracking in Piwik UI (if tracking in Piwik UI is activated)

Thomas Steur
Owner

In 5ef610b: refs #4977 include piwik tracker as early as possible to make sure we track js errors

Thomas Steur
Owner

In 5d74768: refs #4977 make JSLint happy

hpvd

Replying to Thomas Steur:

include piwik tracker as early as possible to make sure we track js errors

makes sense, but may result in problems if users use tools to protect their privacy (like extension "ghostery" in FF ) which blocks piwik.

If Piwik script is blocked sometimes the complete site is not usable any more because the following js is blocked/broken too..

Thomas Steur
Owner

In 0f43631: refs #4977 make clear that only uncaught errors are tracked

Matthieu Aubry
Owner

Interesting, Google Analytics just released Javascript Exception Tracking as well! https://developers.google.com/analytics/devguides/collection/analyticsjs/exceptions

Matthieu Aubry
Owner

See also #5257 Application Performance Management & Monitoring

Matthieu Aubry mattab added this to the 2.5.0 - Piwik 2.5.0 milestone
Frederic Hemberger fhemberger referenced this issue from a commit
Thomas Steur tsteur refs #4977 added a new method to the tracker to enableJSErrorTracking…
…. This is beta... feedback is welcome...
588e689
Frederic Hemberger fhemberger referenced this issue from a commit
Thomas Steur tsteur refs #4977 make JSLint happy 5d74768
Matthieu Aubry mattab modified the milestone: Mid term, Short term
Matthieu Aubry
Owner

There are now many tools offering useful and usable JavaScript error tracking such as airbrake.io or raygun.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.