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

# Google Tag Manager

Load Humblytics through Google Tag Manager when you can't edit your site's code directly.

{% hint style="info" %}
**You need:** a GTM container that's already installed on your site, and permission to publish it.
{% endhint %}

{% hint style="warning" %}
**Running A/B tests?** Paste the script directly into your site's `<head>` if you can. GTM loads it later, so visitors may briefly see the original page before a variant appears.
{% endhint %}

## Option A: Humblytics tag template (recommended)

1. In Humblytics, open **Site settings → Install → Google Tag Manager** and click **Copy ID** to copy your **Property ID**.
2. In GTM, go to **Tags → New → Tag Configuration → Discover more tag types in the Community Template Gallery**.
3. Search for **Humblytics** and add the template.
4. Paste your **Property ID** into the tag.
5. Under **Triggering**, choose **Initialization - All Pages**.
6. Click **Save**.

<mark style="background-color:pink;">ADD GIF HERE</mark>

## Option B: Custom HTML tag

1. In Humblytics, open **Site settings → Install** and click **Copy tracking code**.
2. In GTM, go to **Tags → New → Tag Configuration → Custom HTML**.
3. Paste the whole snippet and name the tag `Humblytics`.
4. Under **Triggering**, choose **Initialization - All Pages**.
5. Click **Save**.

## Publish and verify

1. Optional: click **Preview**, open your site, and check that the Humblytics tag shows under **Tags Fired**.
2. Click **Submit → Publish**. Nothing goes live until you publish the container.
3. Back in Humblytics, click **Verify install**. It can take a few minutes after publishing.
4. Open your live site in a private window and click around. Your visit appears in **Observe → Analytics → Overview** under **Live Activity** within about a minute.

**Not verifying?**

* The container is **published**, not just saved.
* The GTM container snippet itself is installed on the site you're testing.
* The tag uses the **Initialization - All Pages** trigger (or **All Pages**).

Still stuck? See [Verify & Troubleshoot Tracking](/how-to-get-started/verify-and-troubleshoot-tracking.md).
