How to Track SpotHopper App Form Submissions with Google Tag Manager

6 May, 2026

If you’re using SpotHopper (SpotApps) for restaurant reservations and want to track form submissions in Google Analytics, Facebook Ads, or other marketing platforms, here’s how to set it up with Google Tag Manager.

What This Does

This event listener catches when someone successfully submits a reservation through your SpotHopper form and pushes that data to GTM’s dataLayer so you can track it as a conversion.

The SpotApps Event Listener Code

javascript

<script>
window.addEventListener('message', function(e) {
  if (e.origin !== 'https://tmt.spotapps.co') return;
if (!e.data) return;
if (e.data.submitStatus === true) {
window.dataLayer = window.dataLayer || [];
    window.dataLayer.push({
      event: 'reservations_submit_openserver',
      reservation_status: 'submitted'
    });
}
});
</script>
JavaScript

This tracks the reservations_submit_openserver event when a reservation is successfully submitted.

How to Set It Up

Step 1: Create a Custom HTML Tag in GTM

  1. Log into Google Tag Manager
  2. Go to Tags → Click New
  3. Click Tag Configuration
  4. Select Custom HTML
  5. Paste the code above
  6. Name it “SpotApps – Reservation Listener”

Step 2: Set Trigger to All Pages

  1. Click on Triggering
  2. Select All Pages (or create a trigger for pages where SpotHopper forms appear)
  3. Click Save

Step 3: Create a Custom Event Trigger

  1. Go to Triggers → Click New
  2. Choose Custom Event as trigger type
  3. Enter reservations_submit_openserver as the event name
  4. Name it “SpotApps – Reservation Submit”
  5. Save the trigger

Step 4: Fire Your Conversion Tags

Now use this trigger on your marketing tags:

  • Google Analytics 4: Create a GA4 Event tag with event name “reservation_submit” and use the trigger
  • Facebook Pixel: Add the trigger to your Lead event tag
  • Google Ads: Add the trigger to your conversion tracking tag

Testing Your Setup

  1. Enable GTM Preview Mode
  2. Submit a test reservation on your website
  3. Check that the reservations_submit_openserver event appears in the dataLayer
  4. Verify your conversion tags fire correctly
  5. Publish your GTM container once confirmed

Related Posts

How to Track WPForms Submissions with Google Tag Manager

How to Track WPForms Submissions with Google Tag Manager

If you're using WPForms on your WordPress site and want to track form submissions as conversions, here's an event listener that handles both Ajax and non-Ajax forms. What This Does WPForms can submit forms in two ways — with Ajax (no page reload) and without. Most...

read more
How to Track OnceHub Bookings with Google Tag Manager

How to Track OnceHub Bookings with Google Tag Manager

If you're using OnceHub (formerly ScheduleOnce) for appointment scheduling and want to track completed bookings as conversions in Google Analytics, Facebook Ads, or other platforms, here's a simple event listener to set it up. The OnceHub Event Listener Code...

read more

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Shibbir Ahmed

Hi, I’m here to help you learn Google Tag Manager and Google Analytics. Join thousands of other digital marketers and digital analysts in this exciting journey.
Book Meeting

Search Tags

Claim FREE Audit