# Google Tag Manager

![](https://downloads.intercomcdn.com/i/o/110283541/a91ec3a58a4f49e8ade87246/googetagmanager.png)

Don't worry if you're not technical! We'll walk you through the set up process step by step :)

**Step 1:** Log in to your Harness Admin Dashboard

**Step 2:** In your "Settings" - click on the "Website Code" tab (or [Click Here](https://admin.harnessapp.com/settings/website-code))

**Step 3:** Copy the "Harness your Website" Code

**Step 4:** Log in to your Google Tag Manager Account

**Step 5:** Click on "Add a new tag" in your account

**Step 6:** Click on tag configuration and select custom HTML as the tag type

**Step 7:** Paste the code you previously copied and activate "Support document.write"

**Step 8:** Scroll down and click on "Triggering"

**Step 9:** Click on "All Pages"

**Step 10:** Click on "Save" and name your new tag

**Step 11:** In your GTM Dashboard click on "Publish" (top-right corner)

**Step 12:** Copy the "Harness your Website" Code


---

# Agent Instructions: 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:

```
GET https://harness.gitbook.io/harness/admin/adding-the-button-to-site/untitled-4.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
