Google Analytics 4
MarketingIT / TechnicalWant to see your booking funnel in Google Analytics? Paste your GA4 Measurement ID into Preb and we load Google's Analytics (gtag.js) on your booking page for you — no Google Tag Manager and no code to install. Analytics then records page views plus each step of the booking funnel.
Connecting GA4
You add GA4 on the Google Analytics page under Integrations. It is its own integration — you do not need a Google Ads account to use it.
Find your Measurement ID
In Google Analytics, go to Admin → Data Streams, open your web stream,
and copy the Measurement ID. It looks like G-XXXXXXX.
Paste it into Preb
Go to Integrations → Google Analytics, put it in the Measurement ID field and Save settings.
Accept cookies on your booking page
Analytics loads only after a visitor accepts marketing cookies, so it won't fire for anyone who declines.
What gets tracked
Once connected, Analytics receives a standard page view plus Preb's funnel step events as GA4 events:
| GA4 event | When it fires |
|---|---|
preb_event_type_viewed | The booking page loads |
preb_form_started | The visitor starts filling in the form |
preb_day_selected | A day is picked on the calendar |
preb_time_selected | A time slot is picked |
preb_booking_completed | The booking is confirmed |
Every event names the event type
All five events carry the same three parameters, so you can break any report down by which offer the visitor was booking:
| Parameter | Example | What it is |
|---|---|---|
event_type_slug | discovery-call | The event type's URL slug — the readable one |
event_name | Discovery Call | The event type's title |
event_type_id | 8f3c… | Preb's internal ID |
preb_booking_completed also carries preb_booking_uid (the booking ID) and
preb_contact_email.
These parameters are also attached to GA4's initial configuration, so even the automatic page view on a booking page carries them.
Register them once in GA4
GA4 only shows custom parameters in reports after you register them. Go to
Admin → Custom definitions → Create custom dimension, scope Event, and
add event_type_slug (do the same for event_name if you want the title). You
can then compare booking rates per offer directly in Analytics.
You can mark any of these as a key event (conversion) in GA4, or build funnel and path explorations from them. To attribute traffic to campaigns, add UTM tags to your booking links — see Attribution & UTM tracking.
Verified in Preb
Once a visitor accepts cookies on your booking page and the GA4 script initialises, the card under Integrations switches from Set up to Verified and shows when it last happened. If it stays on Set up, the id is not loading — check it against the one in your Google account.
Verify your setup
Open a live booking page in a normal browser window, accept marketing
cookies, and click through the calendar. In Google Analytics, open Reports →
Realtime and confirm the preb_* events appear within a minute or two.
(Standard, non-realtime reports can take up to 24 hours to populate.)
Troubleshooting
- No events in Analytics. Confirm the visitor accepted marketing cookies —
GA4 won't load without consent (see Consent & cookie
banner) — and double-check the
Measurement ID starts with
G-, notGT-orAW-. - Events count twice. If you already send GA4 through a Tag Manager container, don't also paste a Measurement ID here, or the same events fire from both. Pick one path. See Google Tag Manager.
- Realtime shows nothing but standard reports do. That's just reporting latency, not a setup problem — give it time.
GA4 is for reporting, not ad bidding
Analytics tells you how people move through your funnel. To have Google Ads bid on your bookings and sales, use the Google Ads integration, which sends conversions server-side. See Google Ads.
Embedded widget on your own site?
Inside an embed, this event is pushed into the widget's own frame — your page's
tag doesn't see it directly. Forward it with window.Preb.on('preb_booking_completed', …);
see Tracking inside embeds.