Dashboard
Errors report in Loogika
The Errors report lists the JavaScript errors that happen in your visitors' browsers. Loogika groups them by message and shows how often each one occurs and how many sessions it affects. Open an error to see every occurrence with its page, browser and stack trace.
Last updated .
How do you turn on error tracking?
Error tracking is off for a new site. Open the Errors report and click Enable in the notice at the top. You can also open Site Settings, go to the Tracking tab and turn on Error Tracking in the Auto Capture section.
The change takes effect the next time a page loads. Each recorded error is an event, so error tracking adds to the events in your plan. The site settings guide lists the other switches in the same tab.
Which errors does Loogika record?
Loogika records two kinds of error from your own domain. One is a JavaScript error that no code catches, and the other is a promise rejection that no code handles. Errors from third-party scripts are filtered out. The same error is sent at most once every 60 seconds, so one broken loop cannot flood the report.
An error your code catches never reaches the browser's error handler. Report it yourself with window.loogika.error():
try {
submitOrder();
} catch (err) {
window.loogika.error(err, { step: "checkout" });
}
The autocapture guide lists what Loogika stores for each error. Server errors are outside the report, because the tracking script runs in the browser.
What does each row in the Errors report show?
Each row is one error message. The report shows 10 errors on each page and follows the date range and filters in the header.
| Part of the row | What it tells you |
|---|---|
| Error type | The name of the error, such as TypeError or ReferenceError |
| Message | The text of the error. Long messages are shortened |
| Trend line | Occurrences across the selected period |
| occurrences | How many times the error was recorded |
| sessions | How many different sessions the error appeared in |
Errors with the same message share one row, also when their types differ. The row then shows one of the types.
How do you inspect one occurrence?
Click a row to expand it. Loogika lists the single occurrences of that error and loads more when you click Load More.
Each occurrence shows when it happened and on which page. Icons give the country, browser, operating system and device type. Hover over the browser or operating system icon to see the version. The avatar links to the profile of the visitor who met the error.
Below that you find the message. The stack trace follows if the browser captured one. The file name, line and column point to the place in your code. Loogika stores up to 500 characters of a message and 2,000 of a stack trace.
Which error should you fix first?
Compare the two counters. An error with many occurrences in few sessions repeats for a handful of visitors. An error with many sessions reaches a large part of your audience, and it usually deserves the first fix.
Check the trend line after each release. A line that starts on the day you deployed points to the change that caused it. Add a filter on Browser or Device Type to see whether an error is limited to one of them.
The user profile behind an occurrence shows that visitor's sessions. Open the session to read which pages and events came before the error.