> 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

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

A very common issue with using Google Tag Manager is that common adblockers will prevent it from loading in the browser. Please be aware that referrals will not work properly if Google Tag Manager is blocked.
{% endhint %}

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

![Add new tag](/files/-LojPTSf-1sRd-BmPWUF)

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

![Rename the tag to 'GrowSurf Universal Code'](/files/-LojPZnOvlk4SnpZ8UQk)

**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](/files/-LojPdsH3fE2IcWg6k7_)

**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](/files/-LojPlAfaHbnuA2w-Cqc)

**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](/files/-LojPstxUtvJsuQdPdcv)

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

![Click the top-right blue 'Save' button](/files/-LojPy3P8ioct4bmXd8j)

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

![Click the top-right blue 'Submit' button](/files/-LojQ1_4-o5JUtYrlWqN)

## Need help?

Here are some helpful resources:

* [Google Tag Manager Help](https://support.google.com/tagmanager/?hl=en#topic=3441530)
* [GrowSurf Docs - JavaScript Web API](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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
