Connecting Bokun to GA4
Bokun is owned by Tripadvisor and connects operators to Viator, so it is a distribution network with a booking engine attached rather than the other way round. GA4 is where the business goes to understand what happened, which makes an unattributed conversion there expensive in decisions rather than in ad spend. The join between them succeeds or fails on one thing: whether the GA4 client_id reaches the Bokun booking before the conversion happens, because GA4 can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Bokun to GA4: direct tour bookings on the session that earned them
Bokun's widget checkout runs in a frame GA4's tag rarely sees, so read client_id and session_id from your page's _ga cookies, pass them into the booking, and send a Measurement Protocol purchase when the direct booking is created, at net rate with currency. Never send reseller bookings, send at booking time, and refund cancellations with the booking reference.
The Bokun booking widget runs its checkout in a frame or overlay served by Bokun, so the GA4 tag on your tour page does not see the payment step unless the widget's own analytics option is set up. Check what your widget version exposes before relying on it. The dependable route is server-side: read client_id and session_id from the _ga cookies on your page, pass them into the booking (check which custom fields or notes your Bokun setup lets you write and read back through the API), and send a Measurement Protocol purchase when the direct booking is created.
Reseller bookings from Viator, GetYourGuide or an agent arrive in the same Bokun account and must never reach Measurement Protocol. Without a client_id each one becomes a new user under (direct)/(none), and your website suddenly appears to convert far better than it does. Report reseller volume from Bokun by channel instead.
Send at booking time, not departure. Measurement Protocol only accepts a timestamp_micros a short way back (72 hours at last check), so an event sent on the tour date lands weeks after the session that drove it. Value is your net rate with currency set; GA4 converts to the property currency at that day's rate. A cancellation goes out as a refund event with the same transaction_id, using the Bokun booking reference.
Bokun → GA4 · what breaks
Why this join usually fails — Bokun → GA4
- 01
The GA4 client_id never reaches Bokun
Reseller bookings originate on Viator, GetYourGuide or an agent's system. There is no session of yours anywhere in that chain.
- 02
Distribution revenue attributed to advertising
Bokun's purpose is to put your product in front of travellers on other people's platforms. That works, and none of it is something your search campaign caused.
- 03
Everything lands under (direct)/(none)
The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.
- 04
Nothing reconciles afterwards
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
Bokun → GA4 · the fix
What working looks like — Bokun → GA4
The GA4 client_id on every booking
Conversions arriving in GA4
Conversions appear in GA4 attributed to the original session's source and medium, so acquisition reporting reflects what actually drove revenue.
Reconciled against the source
Bokun → GA4 · architecture
How Bokun and GA4 actually connect
- 1
Bokun holds the truth
Reseller bookings carry an OTA commission that can reach a quarter of the ticket price. Your net rate and the traveller's price are different numbers and only one of them is yours.
- 2
GA4 needs a click to match
GA4 needs the client_id to attach a server event to the user and session that produced the click. Without it there is no attribution to inherit and the event is orphaned.
- 3
The identifier is the bridge
The GA4 client_id, captured at the visit and carried into the Bokun booking.
- 4
The event source decides reliability
Send direct bookings at net value. Never send reseller bookings as conversions.
- 5
Deduplication at the destination
GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.
Bokun → GA4 · normal or broken
Working vs. broken, side by side — Bokun → GA4
Normal, not a fault
The GA4 client_id present on the booking
Sent from the Bokun booking record
Deduplicated correctly
GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.
Reconciles with the source
Actually broken
The GA4 client_id missing on most records
Reseller bookings originate on Viator, GetYourGuide or an agent's system. There is no session of yours anywhere in that chain.
Sent from the browser
Bokun's purpose is to put your product in front of travellers on other people's platforms. That works, and none of it is something your search campaign caused.
Counted twice, or not at all
The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.
Nobody has reconciled it
Bokun → GA4 · diagnose
Diagnostic order — Bokun → GA4
- 01
Count bookings carrying the GA4 client_id
- 02
Follow one real conversion end to end
- 03
Split by channel and check whether values are gross or net
Two questions, both usually answered wrongly, and together they can overstate return by a factor of two.
- 04
Check whether server events carry a session and a source
In GA4 Realtime or DebugView, find the event and look at its session and traffic source. A brand-new user with no source on every server event is the missing-client_id signature.
- 05
Read the match rate, not the success message
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
Bokun → GA4 · prove
How it gets proven — Bokun → GA4
Source of truth
Bokun bookings by departure, split into your own website and reseller channels, valued at your net rate.
- The GA4 client_id confirmed present on a live booking.
- Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
- Direct bookings reconciled at net value against imported conversions.
Bokun → GA4 · free audit
What we check in the free audit
- Count bookings carrying the GA4 client_id
- Follow one real conversion end to end
- Split by channel and check whether values are gross or net
- Check whether server events carry a session and a source
- Read the match rate, not the success message
Checked against
Bokun bookings by departure, split into your own website and reseller channels, valued at your net rate.
Free30 minutesNo obligation
Bokun → GA4 · when not to buy
When you don't need this — Bokun → GA4
- Measure identifier coverage yourself first — pull your last hundred bookings and count how many carry the GA4 client_id.
- An operator selling mainly through Viator has a distribution question, not a tracking question.
- GA4 is reporting, not bidding. If your problem is ad platform optimization, fix the ad platform destination first — GA4 will not change what any campaign does.
Bokun → GA4 · what we deliver
What gets built — Bokun → GA4
Identifier capture into Bokun
Attribute direct-website bookings only, and report reseller volume as a separate channel at net rate.
Event source: the Bokun booking record
Send direct bookings at net value. Never send reseller bookings as conversions.
Dispatch to GA4
Measurement Protocol events with the client_id, session_id and the correct measurement ID and API secret, sent server-side.
Reversals where they exist
Cancellations reverse.
Written guarantee
95%+ tracking accuracy
Measured against Bokun bookings by departure, split into your own website and reseller channels, valued at your net rate.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Bokun → GA4 questions, answered
Usually because the booking completes inside Bokun's widget where your GA4 tag is not running, or a server event was sent without the visitor's original client_id. Store the client_id on the booking and send the purchase server-side with it.
Not as website conversions. They never had a session on your site; report them as a separate channel from Bokun at net rate.
Almost always because the GA4 client_id never reached the Bokun booking. Reseller bookings originate on Viator, GetYourGuide or an agent's system. There is no session of yours anywhere in that chain. Measure coverage before debugging the dispatch.
The client_id, from the _ga cookie. Measurement Protocol events without it are rejected or create a brand-new user with no session and no source, which is how server events end up filed under (direct)/(none) and make paid channels look worse than they are. Send session_id alongside it so the event joins the existing session, and include engagement_time_msec or the event may not appear as expected in reports.
The Bokun booking record. Send direct bookings at net value. Never send reseller bookings as conversions.
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
More on Bokun → GA4
- Stripe → GA4Connecting Stripe to GA4
- PayPal → GA4Connecting PayPal to GA4
- HubSpot → GA4Connecting HubSpot to GA4
Using Bokun for bookings? How Bokun bookings get tracked end to end
RELATED GUIDES
Where Bokun → GA4 fits in the rest of your tracking
- TourCMS → GA4Connecting TourCMS to GA4
- Checkfront → GA4Connecting Checkfront to GA4
- Xola → GA4Connecting Xola to GA4
- Bokun → MatomoConnecting Bokun to Matomo
- Bokun → AmplitudeConnecting Bokun to Amplitude
- Ticketing and eventsConversion tracking for ticketing, measured in tickets sold
- Ventrata → GA4Connecting Ventrata to GA4
- Resova → GA4Connecting Resova to GA4
Free · 30 min
Get Bokun and GA4 joined properly
Free30 minutesNo obligation
