# Listen to Datalayer Events

With the generic DataLayer (`window.dataLayer`) that is used on many sites there is an easy connection to JENTIS. Within this guide, we will look into how to create that link.

We must create a JENTIS state to get the JENTIS DCP to receive events from your website's DataLayer. Based on events pushed to the DataLayer, we will also create Google Analytics events.

The steps are:

* Connect JTM to the website's DataLayer
* Create variables that are connected to the DataLayer
* Create tags and triggers based on previous steps


---

# 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.jentis.com/use-cases-and-tutorials/events-and-custom-states/listen-to-datalayer-events.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.
