[relaybell docs › Install › Google Tag Manager](https://relaybell.com/docs/install-gtm) · [All docs as Markdown](https://relaybell.com/docs.md) · [Index for AI assistants](https://relaybell.com/llms.txt)

# Google Tag Manager

> Installing relaybell with a Google Tag Manager Custom HTML tag.

Add a **Custom HTML** tag in GTM, set to fire on *All Pages*:

```html
<script src="https://relaybell.com/relaybell-sdk.js"></script>
<script>
  window.addEventListener('load', function () {
    RelayBell.init({ projectId: "YOUR_PROJECT_ID", apiBase: "https://relaybell.com" });
  });
</script>
```

To send the events you already track in GTM (your dataLayer events) to relaybell too, see [Auto-capture & Google Tag Manager](https://relaybell.com/docs/events-automation#auto-capture).
