JavaScript error tracking for your website

Loogika records the JavaScript errors that occur on your site, with the page and browser each one happened in.

What is JavaScript error tracking?

A JavaScript error stops a script before it finishes. The visitor may meet a button that does nothing or a form that never submits.

You cannot count on visitors to report such errors. Error tracking collects them automatically.

What does Loogika record for each error?

Loogika groups errors by name and message. For each error you see how often it occurs and which pages it affects most.

On plans with session replay you can open the visit where an error happened and watch what the visitor did before it.

Why keep errors in the same tool as your analytics?

An error list tells you what broke. Your analytics tell you what it cost.

In Loogika you can check whether conversions on a page fell on the day an error appeared. That helps you decide which error to fix first.

How do you set up error tracking in Loogika?

Error tracking is off for a new site. Open Site Settings, find the Auto Capture section and turn on the Error Tracking switch, and the change takes effect the next time a page loads. Loogika then records uncaught JavaScript errors and unhandled promise rejections from your own domain. The autocapture guide describes each switch.

For each error, Loogika stores the message, the stack trace, the file name, the line and the column. A message can hold up to 500 characters and a stack trace up to 2,000. Loogika sends the same error at most once every 60 seconds and filters out errors from third-party scripts.

To report an error your code has caught, call window.loogika.error() with the error object. You can also read errors from your own tools through the errors endpoints in the API. One call groups errors by message, one lists single occurrences with up to 1,000 rows per page, and one returns counts per hour by default.

Questions about error tracking

Does Loogika track server errors?

No. Loogika tracks JavaScript errors in the visitor's browser.

Related features

Try Loogika on your own site

The free trial lasts 7 days. You add one script tag to get started.

Start your free trial