Skip to main content

Google Tag Manager Tracking On Inn Style

Setting up Google Tag Manager for Your Inn Style Booking System

Samantha Williams avatar
Written by Samantha Williams
Updated this week

Let's get your Google Tag Manager (GTM) set up with Inn Style. We'll cover the basics, but remember, for in-depth GTM support, you might want to consult a Google professional.

This guide walks you through setting up Google Tag Manager (GTM) to track purchase events from Inn Style booking tool and send the data to Google Analytics 4 (GA4).

1. Create a Google Tag Manager account:

• Go to tagmanager.google.com and sign up

• Choose "Web" as your target platform

2. Add GTM to your Inn Style account:

• Log into your Inn Style admin dashboard

• Navigate to Account > Website Integration

• Find the GTM input field, paste your GTM code and submit

Great! Now GTM is connected to Inn Style. Let's set up GTM:

1. Step 1: Create Data Layer Variables

In GTM, go to **Variables** → **User-Defined Variables** → **New**

Create these 4 variables (all as "Data Layer Variable" type):

Variable 1: Transaction ID

- **Variable Name**: `DL - Transaction ID`

- **Variable Type**: Data Layer Variable

- **Data Layer Variable Name**: `transaction_id`

- **Data Layer Version**: Version 2

Variable 2: Purchase Value

- **Variable Name**: `DL - Purchase Value`

- **Variable Type**: Data Layer Variable

- **Data Layer Variable Name**: `value`

- **Data Layer Version**: Version 2

Variable 3: Currency

- **Variable Name**: `DL - Currency`

- **Variable Type**: Data Layer Variable

- **Data Layer Variable Name**: `currency`

- **Data Layer Version**: Version 2

Variable 4: Items Array

- **Variable Name**: `DL - Items`

- **Variable Type**: Data Layer Variable

- **Data Layer Variable Name**: `items`

- **Data Layer Version**: Version 2

Save each variable before creating the next one.

2. Step 2: Create the Purchase Event Trigger

Go to **Triggers** → **New**

Trigger Configuration:

- **Trigger Type**: Custom Event

- **Event Name**: `purchase`

- **This trigger fires on**: All Custom Events

Optional - Add Condition (Recommended):

- **Some Custom Events**

- **DL - Transaction ID** does not equal **undefined**

**Trigger Name**: `Purchase Event Trigger`

3. Step 3: Create the GA4 Purchase Event Tag

Go to **Tags** → **New**

Tag Configuration:

- **Tag Type**: Google Analytics: GA4 Event

- **Measurement ID**: Enter your GA4 Measurement ID (G-XXXXXXXXXX)

- **Event Name**: `purchase`

Event Parameters:

Click **"Add parameter"** four times and add:

1. **Parameter Name**: `transaction_id` | **Value**: `{{DL - Transaction ID}}`

2. **Parameter Name**: `value` | **Value**: `{{DL - Purchase Value}}`

3. **Parameter Name**: `currency` | **Value**: `{{DL - Currency}}`

4. **Parameter Name**: `items` | **Value**: `{{DL - Items}}`

Ecommerce Settings:

- Expand **"More Settings"** → **"Ecommerce"**

- Check **"Send Ecommerce data"**

- **Data source**: Select **"Data Layer"**

Triggering:

- Remove **"Initialization - All Pages"**

- Add **"Purchase Event Trigger"**

**Tag Name**: `GA4 - Purchase Event`

4. Step 4: Test Your Setup

Preview Mode Testing (Recommended)

1. Click **"Preview"** in GTM

2. Enter your website URL

3. Complete a test booking through Inn Style

4. Check GTM debug panel for:

- Purchase Event Trigger firing

- GA4 Purchase Event tag firing

- All variables populated with booking data

**Note**: Disable ad blockers (like Brave Shields) for accurate testing.

Live Testing Alternative

1. **Submit** and **Publish** your GTM changes

2. Complete a real booking

3. Check GA4 **Realtime** reports for purchase events

5. Step 5: Verify in Google Analytics 4

Immediate Verification (+-5 minutes):

- **GA4 → Reports → Realtime** - Look for "purchase" events

- Click on the purchase event to see transaction parameters

Detailed Ecommerce Reports (+-24 hours):

- **GA4 → Reports → Monetization → Ecommerce purchases**

- **GA4 → Reports → Monetization → Purchase journey**

- **GA4 → Reports → Acquisition → Traffic acquisition** (for conversion attribution)

What Data Gets Tracked?

Inn Style sends the following purchase data to GA4:

- **Transaction ID**: Unique booking reference

- **Purchase Value**: Total booking amount

- **Currency**: Booking currency (GBP, USD, EUR, etc.)

- **Items**: Individual room bookings with details:

- Room ID and name

- Property brand

- Room category

- Price per room

- Number of nights/quantity

Important note: These events fire when a guest completes a booking and lands on the reservation confirmation page. However, if you have a Custom Confirmation Redirect set up, these events will not fire. In such cases, you'll need to implement a different tracking solution.

And there you have it! You're all set to start tracking those bookings. If you run into any issues with the Inn Style side of things, we're here to help. For GTM-specific questions, a Google Tag Manager professional will be your best resource.

Happy tracking, and here's to many successful bookings!

Did this answer your question?