# Setup using Google Tag Manager

Navigate your tag manager to the **workspace** overview.

Choose the **Templates** section in the menu on the left. In the **Tag Templates** section you can now choose **Search Gallery** to import our tag template.

<figure><img src="/files/8KUhuvYsVREIbCYHEd5k" alt=""><figcaption></figcaption></figure>

Searching for **CrossEngage Tracking SDK Snippet** will lead you to our tag template which is always kept up to date.

You can then add this Snippet to your workspace by clicking on **Add to workspace.**

<figure><img src="/files/1C0oW0gDApWFqSeNUPCx" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
**Please note that you have to allow the injection of scripts as well as the access of global variables in order to use the tag template.**&#x20;
{% endhint %}

Once you have added the SDK template in your GTM workspace, you can easily set up a **tag** that makes use of the SDK template, enabling the CrossEngage tracking functionality.

To set up the tracking, go to **`Tags > New > Tag Configuration`** and choose the **CrossEngage Tracking SDK Snippet** in the Custom section.

You can now enter your respective CrossEngage web tracking API key that can be retrieved from your CrossEngage admin section.

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

To retrieve your CrossEngage web tracking API key, log into your CrossEngage account and navigate to **`Settings > System Setup > API keys`.up**

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

In this section you can find the correct web tracking API key and simply **copy paste it into your tag.**

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


---

# 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://documentation.crossengage.io/data-and-engagement-platform/web-tracking/web-tracking-v2/setup-using-google-tag-manager.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.
