# Integration through GTM Template

## Overview

GTM is suitable way to add your Qube Analytics pixel, it's easy and we have a template so you don't need to do a lot of steps.

### Step 1: Download the GTM Template

{% file src="/files/A0JfJALvwq56jlITSHVW" %}

### Step 2: Go to Google Tag Manager [here](https://tagmanager.google.com/)

Open your container, "container is just reference to your website" something like that

<figure><img src="/files/m5LDHhyvhTEG0tNskXfo" alt=""><figcaption></figcaption></figure>

Now Open the container and Select ***Templates*** from the Sidebar\
From first section ***Tag Templates*** Click on **New button**

Now press on three dots on the right side.\
Click on Import and select our template

<figure><img src="/files/NEzvyoieGn6Ic7V3Onzs" alt=""><figcaption></figcaption></figure>

### Step 3: **Pixel Setup**

<figure><img src="/files/gwOmxA0iHxWQZUOqUwi5" alt=""><figcaption></figcaption></figure>

Now our template loaded successfully but you need to fill the project id and customer id\
project id is the website id.

**See** [**Pixel Setup**](/get-started/pixel-setup.md) **Page for more information**

Save your changes then publish it\
**it takes seconds and you can go to next step to verify your installation.**

### **Step 4: Verify Pixel Installation**

**Save the changes**\
**Go to your website make some page views**\
**Back to Stack Analytix Dashboard and Verify the Installation "**[**how to verify**](/get-started/pixel-setup.md#verify-your-installation)**"**

### **Congratulation**

**Now you can start your journey with Stack Analytix.**


---

# 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.analytics.qubefyn.com/get-started/integrations/integration-through-gtm-template.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.
