# Install with Google Tag Manager

> Load Reveata and send goals with the Reveata tag template.

The **Reveata Analytics** tag template loads the script and can send goals and identify calls from any trigger.

## Add the template

1. Download the template: [reveata-gtm-template.tpl](https://reveata.com/downloads/reveata-gtm-template.tpl) (it already points at `https://reveata.com`). In Tag Manager open your web container, go to **Templates → Tag Templates → New**, open the **⋮** menu, choose **Import**, pick the file and **Save**. Reveata Analytics is not in the Community Template Gallery yet; once it is, you can add it from **Search Gallery** instead.
2. Go to **Tags → New**, choose **Reveata Analytics**, keep **Load the Reveata script**, and enter your website’s tracking id (`ws_…`).
3. Set the trigger to **All Pages** (or **Initialization – All Pages**), save, and **Publish** the container.

Tag Manager can’t add `data-*` attributes to scripts it injects, so the template passes the settings in the script address (`/js/script.js?website-id=ws_…`). The script reads them from there.

## With the managed proxy

If your website uses a [managed proxy](https://reveata.com/docs/managed-proxy) (for example `stats.example.com`), download the template from the link in **Settings → General → Managed proxy** instead. Its **Injects scripts** permission also allows `https://*.example.com/js/*`, your own first-party host. Set the tag's **Reveata address** to `https://stats.example.com`. For a template you imported earlier, add that pattern under **Templates → Reveata Analytics → Permissions → Injects scripts**.

## Goals

Create another Reveata Analytics tag, choose **Track a goal**, enter the goal name (for example `signup`) and optional properties, and attach it to the trigger that should count (form submission, click, custom event).

## Identify

Choose **Identify the visitor** and fill the user id (and optionally email and name) from your data layer variables.

## Custom HTML instead

If you prefer a Custom HTML tag, use the script address with the settings in it:

```html
<script defer src="https://reveata.com/js/script.js?website-id=ws_your_tracking_id"></script>
```

Check the result with [Verify your installation](https://reveata.com/docs/verify-your-installation).
