> For the complete documentation index, see [llms.txt](https://docs.does.qa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.does.qa/test-steps/check/check-gtm-event.md).

# Check GTM Event

Check a specific event or property triggered a GTM event.

Check GTM Event inspects the Google Tag Manager `dataLayer` for an event or property you expect. Use it to prove analytics fired after a user action.

![Check attribute Test Step](https://static.does.qa/assets/nodes/check_gtm_event.png)

## When to use it

* Confirm a purchase or signup event reached the data layer.
* Assert a property on an event when `Event Property` mode is selected.
* Run after the user action that should trigger the tag, with a short wait if the push is async.

## Configure

### Basics

| Field               | What to set                                                                                                      |
| ------------------- | ---------------------------------------------------------------------------------------------------------------- |
| **Event Name**      | GTM event name to look for                                                                                       |
| **Type**            | `Event Exists` (default) or `Event Property`                                                                     |
| **Property / Path** | Property name or path when Type is `Event Property`                                                              |
| **Comparison Type** | [Comparison Type](https://docs.does.qa/test-step-options/comparison-type.md) when checking a property value      |
| **Property Value**  | Expected value as text and/or [Values](https://docs.does.qa/values/value-store.md) when the comparison needs one |

### Advanced

| Field                                 | What to set                                                                              |
| ------------------------------------- | ---------------------------------------------------------------------------------------- |
| **Status on fail**                    | [Failed Status](https://docs.does.qa/test-step-options/failed-status.md)                 |
| **When should screenshots be taken?** | `Always` or `On Failures` (default)                                                      |
| **Value Standardization**             | [Value Standardization](https://docs.does.qa/test-step-options/value-standardization.md) |

## Related

* [Check Value Store](https://docs.does.qa/test-steps/check/check-value-store.md)
* [Check](https://docs.does.qa/test-steps/check.md)

**Tags:** `check`, `gtm`, `event`, `test`, `expect`, `assert`, `google`, `tag`, `manager`
