# GTM Installations

Crunch works well if you use Google Tag Manager for your project. Follow the below steps to quickly get started with Crunch using GTM.

### Step 1:

Create a new tag in your GTM console and paste this HTML in the tag. Make sure your tag triggers on `“DOM Content Loaded”`

###

### Step 2:

**Get the `App_ID` for your project to install Crunch scripts in your project.**

> You can find your Crunch's project ID as follows —
>
> 1. During the new project creation in the script installation setup.
> 2. In the project level settings within Crunch App.
> 3. Reach out to your Crunch account manager to provide you with an ID

###

### Step 3:

Add the following script to your code —

{% code overflow="wrap" lineNumbers="true" %}

```markup
<script 
    src="https://storage.googleapis.com/crunch_tracking_script/crunchit.min.js"
    onload="init()"
    async
>
</script>
<script>
    function init() {
    try {
        window.letscrunch("YOUR_UNIQUE_APP_ID");
    } catch (error) {
        console.error("Failed to load Crunch", error);}}
</script>
```

{% endcode %}


---

# 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://crunch.gitbook.io/developer-docs/getting-started/gtm-installations.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.
