> For the complete documentation index, see [llms.txt](https://docs.growsurf.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.growsurf.com/getting-started/google-tag-manager.md).

# Google Tag Manager

Install GrowSurf with Google Tag Manager, step by step.

{% hint style="danger" %}
**Important Note:**

Many ad blockers stop Google Tag Manager from loading. If it is blocked, referrals will not work.
{% endhint %}

**Step 1:** In your Tag Manager console, click 'Add a new tag' (located in the *New Tag* card).

![Add new tag](https://2794996218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LeklWo0yn03AhWro2Ux%2F-LojPC6LXpVTs-agB6CX%2F-LojPTSf-1sRd-BmPWUF%2FScreen%20Shot%202019-09-14%20at%205.57.33%20PM.png?alt=media\&token=26f24bdd-390e-4ae6-b215-b3292ee0058d)

**Step 2:** In the top input field, rename the tag to 'GrowSurf Universal Code'

![Rename the tag to 'GrowSurf Universal Code'](https://2794996218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LeklWo0yn03AhWro2Ux%2F-LojPVN8ZxuwJmzhuJ4o%2F-LojPZnOvlk4SnpZ8UQk%2FScreen%20Shot%202019-09-14%20at%205.59.46%20PM.png?alt=media\&token=187a0177-d2ea-4555-9fba-cd38db4a99a8)

**Step 3:** Click the *Tag Configuration* card and a 'Choose tag type' options menu will slide in from the right side. Scroll down and select 'Custom HTML'

![Choose 'Custom HTML' as the tag type](https://2794996218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LeklWo0yn03AhWro2Ux%2F-LojPVN8ZxuwJmzhuJ4o%2F-LojPdsH3fE2IcWg6k7_%2FScreen%20Shot%202019-09-14%20at%206.00.16%20PM.png?alt=media\&token=5d2c3e57-1627-44b0-93d7-18ae06edc77c)

**Step 4:** In the *HTML* section, paste your program-specific [GrowSurf Universal Code](https://docs.growsurf.com/getting-started#get-the-growsurf-universal-code)

![Add your program-specific GrowSurf Universal Code](https://2794996218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LeklWo0yn03AhWro2Ux%2F-LojPVN8ZxuwJmzhuJ4o%2F-LojPlAfaHbnuA2w-Cqc%2FScreen%20Shot%202019-09-14%20at%206.03.56%20PM.png?alt=media\&token=f5f7be95-eca8-419e-9bd5-45fc3d40441c)

**Step 5:** Click the *Triggering* card and then click on 'All Pages' in the *Choose a trigger* menu that slides in from the right (this will load the GrowSurf Universal Code on all pages of your site, which we recommend)

![Select 'All Pages' as the trigger](https://2794996218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LeklWo0yn03AhWro2Ux%2F-LojPVN8ZxuwJmzhuJ4o%2F-LojPstxUtvJsuQdPdcv%2FScreen%20Shot%202019-09-14%20at%206.04.54%20PM.png?alt=media\&token=9e35d218-2c0c-4012-a1ca-2283cf165810)

**Step 6:** Click the top-right blue 'Save' button to save the tag

![Click the top-right blue 'Save' button](https://2794996218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LeklWo0yn03AhWro2Ux%2F-LojPVN8ZxuwJmzhuJ4o%2F-LojPy3P8ioct4bmXd8j%2FScreen%20Shot%202019-09-14%20at%206.05.03%20PM.png?alt=media\&token=e882d36f-7cee-47ea-8e66-a856243645dc)

**Step 7:** Click the top-right blue 'Submit' button to save your workspace

![Click the top-right blue 'Submit' button](https://2794996218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LeklWo0yn03AhWro2Ux%2F-LojPVN8ZxuwJmzhuJ4o%2F-LojQ1_4-o5JUtYrlWqN%2FScreen%20Shot%202019-09-14%20at%206.06.46%20PM.png?alt=media\&token=7aed0338-e252-4913-91bd-f944c822376e)

## Need help?

* [Google Tag Manager Help](https://support.google.com/tagmanager/?hl=en#topic=3441530)
* [GrowSurf Docs - JavaScript SDK](https://docs.growsurf.com/developer-tools/javascript-sdk)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.growsurf.com/getting-started/google-tag-manager.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
