# Analytics events

<figure><img src="/files/fdtAD8a3ziV29jTJeS6m" alt=""><figcaption><p>Enabled events in a Google Tag Manager integration</p></figcaption></figure>

You may choose to receive any or all of the following events:

| Event name         | Triggered when...                                                                                                                                                                                                                                                                                                                                                          |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **FlowLoaded**     | The flow is initially loaded.                                                                                                                                                                                                                                                                                                                                              |
| **FlowClosed**     | The exit button in the flow has been clicked.                                                                                                                                                                                                                                                                                                                              |
| **FlowFinalized**  | The flow has been completed because the user completed all steps or reached a finalizing or redirecting step.                                                                                                                                                                                                                                                              |
| **StepLoaded**     | A step is loaded, even if for a second time, such as with backward navigation.                                                                                                                                                                                                                                                                                             |
| **StepCompleted**  | A step is completed (all the required answers were provided and the user clicked next).                                                                                                                                                                                                                                                                                    |
| **UrlOpened**      | The responder is redirected to a URL outside of your flow.                                                                                                                                                                                                                                                                                                                 |
| **EmailCollected** | <p>The email identifying the user has been collected.<br></p><p>For this to be triggered, the <a href="/pages/-MJQ3IgKUnkEZjuUWLJx">email question</a> collecting the answer must have a <a href="/pages/-MJTvAURjfJDNWu3hwUb#semantic-meaning">data classification</a> of <code>responder\_email</code>, since a single flow might collect multiple email addresses. </p> |
| **PhoneCollected** | <p>The phone number identifying the user has been collected</p><p>For this to work, the <a href="/pages/-MJQ3ywK4cLK-jDmke3D">phone question</a> collecting the answer must have a <a href="/pages/-MJTvAURjfJDNWu3hwUb#semantic-meaning">data classification</a> of <code>responder\_phone</code>, since a single flow might collect multiple email addresses.</p>        |

{% hint style="info" %}
The above-listed events will be included in your answers payload, but library variables can also be added. [Library variables](/response-data-collection-and-management/variable-schema/system-library-answers.md) collect data based on the built-in attributes of a responder's environment (i.e. is\_mobile?) and context (i.e. StepID).
{% endhint %}


---

# 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.formsort.com/integrations/getting-data-out/analytics.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.
