Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

New: Automatic Javascript Error Tracking with Piwik! #4977

Open
mattab opened this Issue · 9 comments

3 participants

@mattab
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
@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
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..

@tsteur
Owner

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

@mattab
Owner

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

@mattab
Owner

See also #5257 Application Performance Management & Monitoring

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

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

@alexanderdean alexanderdean referenced this issue in snowplow/snowplow-javascript-tracker
Open

Add automatic & manual tracking of JS errors to JavaScript tracker #16

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.