# Add a New Alarm (Tag Anomaly Detection Alarm)

## Introduction

You can create a new Tag Anomaly Detection Alarm to monitor unusual tag activity.

## Procedure

To add a new Tag Anomaly Detection Alarm, perform the following steps:

**Step 1:** Select **Alarms** from the left navigation panel.

<figure><img src="/files/CwC55SXrLm8MdvguE4dj" alt=""><figcaption></figcaption></figure>

**Step 2:** Click **Add Alarm** on the top-right corner of the screen.

<figure><img src="/files/ohpgncJRo09xhQSUu2Qs" alt=""><figcaption></figcaption></figure>

**Step 3:** Select the **Tag Anomaly Detection Alarm**.

<figure><img src="/files/ZZYBhaoBBnJKufTVT1Mq" alt=""><figcaption></figcaption></figure>

**Step 4:** In the **Name** field, enter the alarm name, and in the **Description** field, enter a brief description of the alarm.

<figure><img src="/files/jKeIcOvHJjgH7zo3Nh7F" alt=""><figcaption></figcaption></figure>

**Step 5:** Under **Environment**, click the **Select Environment** dropdown. Two options are available — **Production** and **Staging**. Click the appropriate option.

<figure><img src="/files/NzQkjsleyJctZHtPZOJO" alt=""><figcaption></figcaption></figure>

**Step 6:** Enter the details mentioned in the **Settings** section.

![](https://ingest-lab.netlify.app/images/alarmsimages/alarmsettings.png)

**Threshold Sensitivity:**

* **High** sensitivity: The anomaly detection trigger will fire and send alert if it detects an anomaly at least ONCE in the previous hour.
* **Medium** sensitivity: The anomaly detection trigger will fire and send alert if it detects an anomaly once in the past 2 consecutive hours.
* **Low** sensitivity: The anomaly detection trigger will fire and send alert if it detects an anomaly once in the past 3 consecutive hours.

The Tag behavior is determined using the Bollinger Band.

![](https://ingest-lab.netlify.app/images/alarmsimages/bollingerband.png)

**Preferred Timings:**

Select the exact tag monitoring period from the **Preferred Timings** drop-down. This is an optional setting. For example, If there is a sudden spike in traffic in the evenings, you could set the preferred timing from 5 p.m. to 10 p.m. The tag firing activities will be monitored every evening between 5 p.m. to 10 p.m.

**Note:** The tags are monitored continuously with a set preferred timing.

**Step 6:** Enter the details in the **Filter Conditions** section.

You can make the alarm more specific by creating monitors on specific tags, providers, or other attributes. To filter the alarms, perform the following steps:

* On the alarm page, click **Add Filter**.

| Field Name  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Tag         | Specifies the tag to be monitored for anomaly detection.                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Page Name   | <p>Specifies the Page Name to be monitored for anomaly detection.<br>Select either contains or is from the Operator drop-down menu.</p>                                                                                                                                                                                                                                                                                                                                               |
| Provider    | Specifies the Provider that needs to be monitored for anomaly detection.                                                                                                                                                                                                                                                                                                                                                                                                              |
| Device Type | Select this option to display devices such as **Desktop**, **Web**, **Mobile Web**, **Tablet**, and **Other**.                                                                                                                                                                                                                                                                                                                                                                        |
| OS          | Select this option to display information regarding the OS such as **iOS** and **Android**.                                                                                                                                                                                                                                                                                                                                                                                           |
| Language    | Select this option to set the preferred language.                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Domain      | Select the appropriate domain name. Select either **contains** or **is** from the **Operator** drop-down menu.                                                                                                                                                                                                                                                                                                                                                                        |
| Status      | <p>Select this option to set to one of the Tag trigger Statuses.<br>• Success (200)<br>• Success (202)<br>• Provider Side Failure (400)<br>• Provider Side Failure (404)<br>• Provider Side Failure (500)<br>• Tag Validation Failure (900)<br>• Tag Validation Failure (1000)<br>• Error (1001)<br>• Privacy Blocked (1002)<br>• Skipped (1003)<br>• Success with Warnings (1004)<br>• Scheduled for retry (1005)<br>• Maximum retry attempts reached (1006)<br>• Delayed (1007)</p> |

* Select the Operator options and select any operator to populate the list of available fields.

![addfilter](https://ingest-lab.netlify.app/images/alarmsimages/addfilter.png)

**Step 7:** Select **Destinations** section.

* **Select Notification Group**: The tag anomaly alert will be sent to the contacts configured in the selected notification group. In this step, you can select the check boxes or search for a particular group.
* **Provide Email ID**: Enter the email IDs of the users to send the notification for tag anomaly. You can add users using the **Add Users** tab.

Note: You can select **Notification Groups**, **Email IDs**, or **both**, based on where you want to send the alerts.

![](https://ingest-lab.netlify.app/images/alarmsimages/notificationgroup.png)

**Step 8:** A message appears at the top saying **Alarm added successfully.**

<figure><img src="/files/VFVIOGRIY32e5c7s4rnd" alt=""><figcaption></figcaption></figure>

**Step 9:** Click **Save** to save the settings.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ingestlabs.com/tag-manager/alarms/add-a-new-alarm-tag-anomaly-detection-alarm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
