# Google Tag Manager integration

- **Author**: Kirti Gulati
- **Category**: Other Integrations
- **URL**: https://help.neetocal.com/articles/google-tag-manager-integration

---

Google Tag Manager (GTM) lets you manage several tags, such as Google Analytics, Meta Pixel and Google Ads conversions, from one place without editing code each time. NeetoCal loads your container on your intro pages, scheduling links and packages, and pushes each step of a booking, and each package purchase, to the data layer so you can trigger tags on it.

If you only need basic site analytics, see [<u>Connect Google Analytics</u>](https://neetocalhelp.neetokb.com/p/a-e0102044).

### Finding your Container ID

Your Container ID starts with `GTM-`, for example `GTM-XXXXXXX`. A Google Analytics Measurement ID, which starts with `G-`, will not work here.

1. Go to [<u>tagmanager.google.com</u>](http://tagmanager.google.com) and open the container you want to use.
2. Find the **Container ID** in the top right of the workspace header.
3. Copy the ID.

   [![image](https://assets-cdn.neetokb.com/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6ImYzNzIxOGNkLWY4ZjEtNDMxYi1hZDA5LTljMzhlNTY3ZGE0OCIsInB1ciI6ImJsb2JfaWQifX0=--3d155d2110a74fad0592f3f17ec46cee8a5e2dd6/image.png)](https://assets-cdn.neetokb.com/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6ImYzNzIxOGNkLWY4ZjEtNDMxYi1hZDA5LTljMzhlNTY3ZGE0OCIsInB1ciI6ImJsb2JfaWQifX0=--3d155d2110a74fad0592f3f17ec46cee8a5e2dd6/image.png)

### Connecting GTM to a scheduling link

1. Go to **Scheduling links** from the left sidebar.
2. Open the scheduling link you want to track.
3. In the settings sidebar, open **Integrations**.
4. Click on **Google Tag Manager**.
5. Paste your ID into the **GTM Container ID** field and click **Connect**.

### Connecting GTM to an intro page

1. Go to **Intro pages** from the left sidebar.
2. Open the intro page you want to track.
3. Click on **Google Tag Manager** in the settings sidebar.
4. Paste your ID into the **GTM Container ID** field and click **Connect**.

### Connecting GTM to a package

1. Go to **Packages** from the left sidebar.
2. Click on the package you want to track.
3. Click on the **Settings** tab.
4. Click on **Google Tag Manager**.
5. Click on **Connect Google Tag Manager**.
6. Paste your ID into the **GTM Container ID** field and click **Connect**.

The container loads on the package page, the payment page and the purchase confirmation page.

### Triggering on booking events

NeetoCal pushes each step of a booking to the data layer:

- `neetocal.view_item_list` when your intro page is opened
- `neetocal.view_item` when a scheduling link is opened
- `neetocal.add_to_cart` when a time slot is picked
- `neetocal.begin_checkout` when the booking details form opens
- `neetocal.add_payment_info` when a payment is submitted
- `neetocal.purchase` when the booking is placed, and when a client buys a package

Each one carries the same details as the matching Google Analytics event. All of them except the intro page list name the scheduling link, and a placed booking also carries the amount and currency. A package purchase carries the package name, the amount and the currency. See [<u>Send booking events to Google Analytics</u>](https://neetocalhelp.neetokb.com/p/a-b87c62b3) for what each step means.

Build your triggers on those.

> **Warning:**
> If you build a tag in GTM that reports a booking to the same Google Analytics property NeetoCal already sends to, every booking is counted twice. Send yours to a different property, or leave the reporting to NeetoCal.

### Setting up tags inside GTM

All tag setup happens inside Google Tag Manager itself; [<u>Google's Tag Manager Help Center</u>](https://support.google.com/tagmanager/answer/6102821) walks through every step. At a high level you will:

1. Add the tags you want to fire, for example a GA4 event tag, Meta Pixel, or a Google Ads conversion tag.
2. Set up triggers, either the built-in ones such as Page View, Click and Scroll Depth, or one of the booking events above.
3. Use **Preview** mode to check each tag fires on the NeetoCal page.
4. Click **Submit** to publish the container.

### Note

- NeetoCal does not load your container inside an embedded scheduling link, but the booking events are handed to the page holding the embed, so a container on your own website picks them up under the same `neetocal.` names. Embedded package pages hand over package purchases the same way. Events from an embed are handed over only when Google Analytics is connected in NeetoCal and Send booking events to Google Analytics is turned on. See [<u>Capturing booking events from embedded scheduling links</u>](https://neetocalhelp.neetokb.com/p/a-ed9e6929).