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

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

Examples

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

Related methods