> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/attract/landing-page/landing-page-google-tag-manager/landing-page-how-to-add-the-tracking-script-to-the-google-tag-manager-container.md).

# Landing Page - How to Add the Tracking Script to the Google Tag Manager Container

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FP9oM3P8czAjwqkPxPqwR%2Fundraw_Container_ship_re_alm4.png?alt=media&amp;token=647a84c0-a315-489d-983c-6be168504705" alt=""><figcaption></figcaption></figure>

Integrating tracking scripts into a landing page is crucial for monitoring visitor behavior and optimizing marketing strategies. Below is a step-by-step guide to adding a specific tracking script to the Google Tag Manager (GTM) container.

{% hint style="info" %}
This article applies to any external website.
{% endhint %}

**1. Access Google Tag Manager**

* First, log in to your Google Tag Manager account and select the container where you want to add the script.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FZAyyHNuGv4e2J3lXSkrY%2Fimage.png?alt=media&amp;token=9ea0881f-2be6-4df0-88c8-8e88d8163071" alt=""><figcaption></figcaption></figure>

**2. Create a New Tag**

* In the GTM dashboard, go to the section **"Tags"** in the left menu and click the button **"New"** to create a new tag.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2Fj40ciWwcE9XIztSQeKS5%2Fimage.png?alt=media&amp;token=0c66e1bd-9104-4b9f-a0e5-d7ab253ce957" alt=""><figcaption></figcaption></figure>

**3. Tag Configuration**

A new window will open with the options for **"Tag Configuration"** and **"Triggering"**.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FkxdIYzMXfPLg1qp0vyz1%2Fimage.png?alt=media&amp;token=91127b5c-a397-4bc7-9001-580ae649270c" alt=""><figcaption></figcaption></figure>

Click on **"Tag Configuration"** and select the option **"Custom HTML Tag"**.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FT7s3niNLzOV4acbNekDd%2Fimage.png?alt=media&amp;token=0f61cd28-c297-48e8-b527-c022d7bb2d4f" alt=""><figcaption></figcaption></figure>

A trigger is also required to activate the container script; the correct trigger is **"All Pages"**

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FJx7mNWwyYU72pwfDIvNg%2Fimage.png?alt=media&amp;token=31886a8b-53a3-4f6b-9a7e-ae949c799158" alt=""><figcaption></figcaption></figure>

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FmhuBtZ6Lxhyw1IbDlJtL%2Fimage.png?alt=media&amp;token=3d05e8f0-4ad6-42af-81b4-318f58d28a1a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FzBECMmUDif3WYB9WP6Jr%2Fimage.png?alt=media&amp;token=f6091c3d-6783-4a3f-8686-a4f29c13c996" alt=""><figcaption></figcaption></figure>

After completing this process, just install Tag Manager on your external landing page, which will add tracking to leads who access the site.
