trackError

The trackError() method records a JavaScript error.

This method needs to be preceded with enableJSErrorTracking().

Syntax

trackError(error)
Not available
Not available
Not available
Not available
Not available
Not available

Parameters

error (error, required)

An error object. Example: An error caught by the the try...catch statement.

Examples

try {  
  throw new Error("Uncaught SyntaxError");  
} catch(error) {  
  \_paq.push(["trackError", errornew Error("Uncaught SyntaxError")]);  
}
Not available
Not available
Not available
Not available
Not available
Not available

Related methods