Error Tracking

  • An ‘error’ is a designed error state in your app, such as a failed login.
  • An ‘exception’ is an error thrown by the app or site.

Additional attributes can be sent with a logError or logException command.

Log Errors

mParticle.logError('Login failed');

Automatic Exception Tracking

It’s possible to intercept calls to the JavaScript error console in some browsers (Chrome and Firefox), and pass information on to mParticle:

(function () {
  var log = console.log;
  console.log = function () {
    var args =;