# 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="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2FKus9hSRTtsWcpOvmyCWf%2FGTM.png?alt=media&#x26;token=ba7c4254-d1e3-41f3-8f51-838c26ccea2a" 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="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2F6fIUPPMR8RCBPMKCajIy%2FtagTemplate2_2.png?alt=media&#x26;token=13d83a1c-be61-4bcd-9279-0c45dd9be5f8" 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="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2Fyi9VTe8LV9BPEef8x7rN%2FGTM_3.png?alt=media&#x26;token=3f13c94c-ede8-4198-a5f2-031cd8916e3e" 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="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2Faxn3Ui8ry2Aipp2XZS4l%2FSystemSetup.png?alt=media&#x26;token=44af739e-48d8-4235-900e-0fba92ef70e1" 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="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2F41V9LvF2G5qWLsdX4PTW%2FSystemSetup_APIkeys.png?alt=media&#x26;token=86f1b6f9-b71f-4a9e-9c46-c33cbd5045ed" alt=""><figcaption></figcaption></figure>
