> For the complete documentation index, see [llms.txt](https://documentation.crossengage.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.crossengage.io/data-and-engagement-platform/web-tracking/web-tracking-v2/setup-using-google-tag-manager.md).

# 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>
