Google Analytics 4 and Google Tag Manager
Connect GA4 to your booking page, what GA4 receives (ecommerce purchase, key events, new-client data), how to use the events in Google Tag Manager, and how to get booking conversions into Google Ads.
4 min read · Updated November 22, 2026
On this page
Add your GA4 Measurement ID and the booking page sends page views, every booking step and an ecommerce purchase with revenue to your GA4 property. On your own website, the same events also reach Google Tag Manager through the dataLayer.
Connect GA4#
- 1In GA4, open Admin → Data streams → your web stream and copy the Measurement ID. It starts with G- (for example G-AB12CD34EF).
- 2In iBooker, open Admin → Analytics → Tracking pixels and paste it into Google Analytics 4. The whole Google tag snippet works too: the ID is taken out of it.
- 3Click Save changes. The field shows Added.
The field flags the usual mix-ups before saving: a UA- (old Universal Analytics), GTM- (Tag Manager container) or AW- (Google Ads) ID, or only digits (a property or stream number).
What GA4 receives#
page_view on load, then every booking event with the parameters in Events reference. Events are addressed to your Measurement ID, so other Google tags on the page don't receive them.
Ecommerce
purchase is a GA4 ecommerce purchase with transaction_id, value, currency, coupon and items (see Events reference). begin_checkout and select_availability carry the same items, so GA4's checkout funnel and monetization reports fill in.
Key events
Mark purchase as a key event in GA4 Admin. Don't also mark booking_confirmed, or every booking counts twice.
A key event for new clients only
- 1In GA4 Admin → Events, create an event based on purchase with the condition customer_type equals new, named for example purchase_new_client.
- 2Mark it as a key event, and optionally import it into Google Ads (see below).
Custom dimensions
To report on location, specialist, service, client type or campaign, register event-scoped custom dimensions in GA4 Admin → Custom definitions. Useful ones: location_name, staff_name, service_name, customer_type, utm_source, utm_medium, utm_campaign, ad_click_type.
Embedded on your website#
- The embed script configures your Measurement ID on your own page, alongside any GA4 your site runs, so booking events use your domain's cookies and the visitor's session.
- If it installed the only Google tag on the page, it also sends the page_view; otherwise your setup keeps control of page views.
- See How conversion tracking works for details and data-analytics=“off”.
Testing with Tag Assistant and DebugView#
When Tag Assistant adds gtm_debug= to the URL, GA4 events are sent with debug_mode on and show in DebugView. Embedded, the embed script passes the flag into the widget and remembers it for the browser tab, because Tag Assistant only marks the first page.
Google Tag Manager#
There's no GTM field, and the standalone booking page doesn't load your container. On your website, the embed script pushes every booking event into your dataLayer, even with data-analytics=“off”.
- Trigger: a Custom Event trigger with the event name, for example purchase.
- Variables: Data Layer Variables named exactly like the parameters (value, currency, transaction_id, items and so on). They are top-level keys, not nested under “ecommerce”.
- If GTM fires your own Meta pixel tags from these events, map their Event ID to {{event_id}} so Meta can deduplicate them against iBooker's Conversions API events.
Google Ads#
There's no field for a Google Ads tag (AW-). Use one of two routes:
Option 1: import from GA4
- 1Link your GA4 property to Google Ads.
- 2Make sure purchase (and purchase_new_client, if created) is a key event.
- 3In Google Ads, import the key event as a conversion action; for new-client goals, make the new-client event primary.
Option 2: a Google Ads tag in GTM on your website
- Trigger the Google Ads Conversion Tracking tag on the purchase event only, with value {{value}}, currency {{currency}} and transaction ID {{transaction_id}}.
- For new-customer goals, use the new_customer variable (true or false).
Embedded, events fire on your page, where the gclid is stored first-party. When an ad links to the standalone booking page, the gclid is sent with every event as ad_click_id.
Something unclear or missing? Ask support — we keep these pages up to date.