Skip to main content
All CollectionsIntegrationsGoogle Analytics
Integrating Google Analytics 4 (GA4)
Integrating Google Analytics 4 (GA4)
Sean Rolsen avatar
Written by Sean Rolsen
Updated over 4 months ago

ThinkReservations supports Google Analytics 4, also known as GA4, directly with your online booking engine.

Setup in Google Analytics

Set up in ThinkReservations

The code to support GA4 is already added to the booking engine - it simply needs to be enabled in ThinkReservations with your unique ID from Google. Follow these steps to start using your GA4 account with your ThinkReservations booking engine:

  1. Locate your Measurement ID, also known as your "G-ID", in your Google Analytics account for step 3 below.

  2. Log in to ThinkReservations and navigate to Settings > Business Settings

  3. Paste your ID into the Measurement ID field and click Save.
    ➡️ This typically starts with "G-" followed by 10 letters and numbers.

  4. Click Save.

Once you complete the above steps, data from the Booking Engine will be shared with Google for tracking. Initially, it may take up to 24 hours to see data in your Google Analytics account.


Technical Notes:

ThinkReservations sends a "purchase" event via code in the online booking engine.

gtag('event', 'purchase', {
currency: 'USD',
transaction_id: reservation.confirmationId,
value: reservation.subTotal,
tax: reservation.taxes,
items,
});

The purchase event includes the following information:

  • Confirmation ID

  • Subtotal

  • Total taxes

  • Room/Items

Did this answer your question?