Powerful Ignore Rules for Noisy JavaScript Errors
Tags: javascript, errors, webdev
Published: 2019-12-02 15:21:57

---
title: Powerful Ignore Rules for Noisy JavaScript Errors
published: true
date: 2019-12-02 00:00:00 UTC
tags: javascript, error-handling, webdev
canonical_url: https://trackjs.com/blog/ignore-rules/
cover_image: https://trackjs.com/assets/images/blog/2019-12-ignore-rules/title.png
---

Ignoring noisy and external errors is important to understanding the health of your client-side applications. Third-party scripts, user extensions, content crawlers, and non-impactful errors create lots of noise in web operations. With TrackJS Ignore Rules, you can filter out this noise and and have a clear view of your web application quality.

<!--more-->

![Silence Unimportant Errors](https://trackjs.com/assets/images/blog/2019-12-ignore-rules/DA83EF95-9FE2-40C7-B853-736BCD5668B6.png)

You can create **unlimited Ignore Rules** with all TrackJS accounts. We won’t limit your ability to filter out noise, and get better information. Ignore rules are powerful and give you options to see the information that’s most relevant to you.

Ignore Rules are applied to incoming errors by our system **before** your account’s limits are applied. Creating Ignore Rules helps you capture more data that’s relevant to your team.

## Multiple Rule Conditions

The first thing you’ll notice when adding a new Ignore Rule is that it looks a lot like the TrackJS global filter. You can use the controls to add multiple _conditions_ to your Ignore rule across 9 different fields relevant to your errors.

Multiple conditions are logically “OR” within a field, and logically “AND” between fields. For example, you can ignore the error message “console is not defined” on browsers “IE 8” or “IE 9”.

![Ignore Rule for Unsupported Browsers](https://trackjs.com/assets/images/blog/2019-12-ignore-rules/039EA325-93DD-46F0-B4A3-5603287EC7C8.png)

You can also create Ignore Rules using custom Metadata conditions, which are treated a bit differently. Metadata conditions are logically “OR” within a Metadata key and logically “AND” if you specify different keys. For example, you can ignore errors that come from “version 1” or “version 2” as well as originated from “server x”.

![Ignore Rule by Metadata](https://trackjs.com/assets/images/blog/2019-12-ignore-rules/536EEED1-247B-4C2D-8AB1-1D73A344B630.png)

You can also create Ignore Rules by the error Stack Trace. This allows you to drill into third-party errors that inject into the page, such as the Facebook widget. The Stack Trace condition allows you to ignore errors that reference “connect.facebook.net/sdk.js“.

## Ignore Rule Preview

After adding conditions to your Ignore Rule, we’ll calculate how many errors will be affected below the form. When you save an Ignore Rule, existing errors in your account will be deleted, and future errors will be discarded. You can click “Show Details” to see a breakout of how many errors will be deleted

## Discoverable Rules

TrackJS helps you discover the Ignore Rules you need to tune your account with Suggested Rules and Conditions. When you open Suggested Rules, we’ll look for common noisy errors like “Script Error” and Googlebot browser. If we find these patterns, you can quickly filter out these noisy problems.

We’ll also look at the most frequently occurring errors in each of your Applications, and give you suggestions to ignore them if they are non-impactful errors.

![Ignore Rule Suggestions](https://trackjs.com/assets/images/blog/2019-12-ignore-rules/3E729BBA-21E2-49E9-B850-067A56A0E68C.png)

Additionally, whenever you are creating an Ignore Rule, we’ll suggest conditions for each field based on what the most frequently occurring values are.

![Ignore Condition Suggestions](https://trackjs.com/assets/images/blog/2019-12-ignore-rules/AF084C24-FC50-4122-A6A6-D1DAE55975F6.png)

## Create Ignore Rules from Reports

You can create Ignore Rules from anywhere you see noise in your TrackJS account, including the aggregated reports, rollup reports, and error details.

From any aggregated report, select the items you want to ignore and click the Ignore button. We’ll pre-build the conditions to Ignore and remove those errors from your account.

![Ignore from Aggregated Report](https://trackjs.com/assets/images/blog/2019-12-ignore-rules/2AE17A70-BDFF-4C4D-8E31-A8DA27F42A7A.png)

You can also Ignore from the rollup report or error details report by hitting the “Ignore” button in the toolbar.

![Ignore from Rollup and Details Report](https://trackjs.com/assets/images/blog/2019-12-ignore-rules/5FC095A3-E2D2-4963-8483-12FE44881788.png)

## Monitor Your Running Ignore Rules

Once you have some Ignore Rules running, you can see how they are being applied. Each rule is shown in a table with the name, applications, conditions applied, and the status. The status includes a count of how many errors have been ignored by this rule in the last 24 hours.

![Ignore Rule Status](https://trackjs.com/assets/images/blog/2019-12-ignore-rules/43A6B156-BDB1-49AE-A65E-6349513FE926.png)

* * *

If you have any questions or concerns with how to use TrackJS Ignore Rules, please [let us know](mailto:hello@trackjs.com)! Our engineering team directly supports the product, and we pride ourselves in providing the best service to our customers.