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.
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. Set up tags on GTM
• In GTM, go to "Tags" and click "New"
• Choose "Google Analytics: GA4 Event" as the tag type
• Set up two tags: one for "purchase" and one for "booking_confirmation"
For the "purchase" tag:
Enter your GA4 Measurement ID
Set the event name to "purchase"
Add event parameters: transaction_id, value, currency, items
For the "booking_confirmation" tag:
Enter your GA4 Measurement ID
Set the event name to "booking_confirmation"
Add event parameters: reservationId, checkInDate, checkOutDate, nights, roomName, price, currency, occupancy
2. Create Custom Variables
• Go to "Variables" in GTM
• Click "New" under "User-Defined Variables"
• Create variables for each data point in your events
For "purchase" event: transaction_id, value, currency, items (these contain the individual bookings for each reservation)
For "booking_confirmation" event: reservationId, checkInDate, checkOutDate, nights, roomName, price, currency, occupancy
• Use the "Data Layer Variable" type for each and enter the corresponding key from the JSON
3. Set up Triggers
• Go to "Triggers" in GTM and click "New"
• Choose "Custom Event" as the trigger type
• Create two triggers:
For "purchase":
Set the event name to "purchase"
Assign each trigger to its corresponding tag
For "booking_confirmation":
Set the event name to "booking_confirmation"
Assign each trigger to its corresponding tag
Now, let's look at the actual data being sent for each event:
The "Purchase" Event:
The "Booking_confirmation" Event:
Test your setup
• In GTM, click "Preview" in the top right corner
• Enter your website URL and start preview mode
• Make a test booking and check if the events fire correctly
• Verify that all data points are being captured accurately
Publish your GTM container
• Once you're happy with the setup, click "Submit" in GTM
• Review your changes and click "Publish"
• Your new GTM configuration is now live
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!