# Google Tag Manager

# Installing via Google Tag Manager

Google Tag Manager (GTM) allows you to deploy Intempt tracking on your website **without modifying your codebase directly**. GTM is recommended when you want a flexible, centralized way to manage tracking scripts across your site.

Using GTM, you can install the Intempt JavaScript SDK and begin collecting event data through autocapture and custom triggers.

---

## When to Use GTM

Use Google Tag Manager if:

- You want to install Intempt without touching your site’s code  
- You manage tracking through GTM containers  
- You need to deploy or update Intempt scripts quickly across multiple pages  
- You prefer to centralize event tracking logic inside GTM instead of your application

GTM installs the same JavaScript SDK that is normally added via script tags, but gives you more control over deployment.

---

## How It Works

Intempt’s **JavaScript SDK** can be deployed as a GTM tag. Once installed, it will:

- Track page views  
- Capture clicks, inputs, form submissions, and UI interactions  
- Allow you to configure additional tracking via GTM triggers  
- Send all captured events to Intempt as part of the selected Web Source

This method is ideal for marketers, analysts, growth teams, and developers using GTM as their central tracking system.

---

## Deploying Intempt via GTM

1. Create a **Web Source** inside Intempt (Integrations → Sources)  
2. Copy the JavaScript snippet provided under the source’s **Installation** tab  
3. In Google Tag Manager:
   - Create a new **Custom HTML Tag**
   - Paste the Intempt snippet into the HTML field
4. Set the trigger:
   - **Page View → All pages** is recommended  
5. Publish the GTM container

Once published, Intempt will begin tracking events across your site.

---

## Supported Use Cases Through GTM

Using GTM as the install method still allows you to:

- Ingest event data from your website  
- Track behavior using the JavaScript SDK  
- Extend tracking using:
  - Click triggers
  - Form submission triggers
  - Custom HTML events
  - Data layer pushes  
- Combine GTM triggers with Intempt’s custom event API for advanced analytics

---

## Summary

Installing Intempt via Google Tag Manager enables:

- Faster deployment  
- No-code installation  
- Centralized tag and tracking management  
- Flexible control over when and where the Intempt SDK loads  

This method is ideal for websites where GTM is already part of the analytics stack.


