# GTM statistics

## Introduction

Google Tag Manager functionality is available for:

* components,
* session variables.

Every supported component available in Eximee Designer can be configured to use Google Tag Manager functionality. The functionality should first be enabled on the application, and then on individual components according to the sections below.

## GTM configuration for a component

GTM tag configuration consists of selecting the **Enable GTM** in the section **Other** property of the given component (by default, the property is unchecked). It is also possible to change the default tag name to a custom name in the GTM Tag field. When the GTM Tag field is empty, the tag name is the same as in the mid field. The configuration for all components is identical.

## GTM configuration for session variables

GTM configuration for session variables consists of setting the session variable as **Exposed** and enabling the **Gtm** option (enabled by clicking **Exposed**). It is possible to change the tag name in the GTM Tag field. The default tag name is the session variable's mid.

## Components supporting Google Tag Manager

* Trigger (Button)
* Checkbox
* Checkbox section (CheckboxSection)
* Dropdown list field (Combobox)
* Date (DatePicker)
* ExternalSection
* Plus minus
* Radio group (RadioGroup)
* Statements in overlay (StatementPopup)
* Step slider
* Text area (TextArea)
* Text field (TextField)
* Slider

## GTM integration information

Changes on the application are sent to Google Tag Manager, and there, using the GTM data layer (webformsDataLayer), they can be used to create rules and tags, which can then be used to track user behavior on the application (for example, using platforms such as GA4).

As a result of changing the value of a component that has been allowed to send a tag to Google Tag Manager, two entries appear in the GTM data layer (webformsDataLayer):

* **event** - whose value corresponds to the gtmTagName field of the application component. If the value of this field is empty and the pushTagsToGtm property is checked, then event takes the value of the component's mid field,
* **eventValue** - whose value corresponds to the new value of the component.

As a result of entering the application, the following entries appear in the GTM data layer (webformsDataLayer):

* **formName** - the name of the application.


---

# 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.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/tworzenie-formularza/statystyki-gtm.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.
