Integrating with Google Analytics GA4
Support Team avatar
Written by Support Team
Updated over a week ago

Verify your Google product and version

For effective tracking, the Google product version you configure in Starboard Suite must match the Google product version you use on your main website.

Before proceeding, please verify that your website is using GA4.

Check the GA4 configuration on your website

If you're already using GA4, the tracking code below should already be on your website.

Google's "linker" feature will allow traffic to your Starboard account subdomain to be counted as traffic to your primary website domain, so you may want to configure your include code to match the example below.

Be sure to:

  1. Change the UA ID in the example (G-123456789) to your real GA4 ID
    โ€‹Please note that the GA4 ID is referenced twice in the example.

  2. Change YOUR_DOMAIN.com to your actual website domain

  3. Change YOUR_ACCOUNT_SUBDOMAIN.starboardsuite.com to your actual account subdomain

<script async src="https://www.googletagmanager.com/gtag/js?id=G-123456789"></script>

<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}

gtag('js', new Date());

gtag('config', 'G-123456789', {
'linker': {
'domains': [
'YOUR_DOMAIN.com', 'YOUR_ACCOUNT_SUBDOMAIN.starboardsuite.com'
]
}
});
</script>

Include the Booking Lightbox code on your website

If your website uses the Booking Lightbox or Live Calendar iFrame integration, verify that booking-lightbox.js is included on your website (see Booking Lightbox or Live Calendar for more information).

If it's already included, you can skip to the next step.

Enable Google Analytics GA4 in Starboard Suite

  1. In your Control Panel, go to Admin->App Store

  2. Activate the Google Analytics GA4 app

  3. Enter the GA4 ID that Google provided (e.g., G-123456789)

Conversion Events

When creating conversion events to track completed bookings:

  1. Set "Match Type" to "Regular Expression"

  2. Set URL to: /boarding-pass/

Did this answer your question?