Skip to main content
Bokun → BigQueryIntegration guide

Connecting Bokun to BigQuery

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. BigQuery has no attribution model, no deduplication rules and no opinion about your data — which makes it the only destination on this site where every number is exactly as good as the query that produced it. The join between them succeeds or fails on one thing: whether whatever join key you decide on reaches the Bokun booking before the conversion happens, because BigQuery can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Loading Bokun bookings into BigQuery with channel, net and departure

Load every Bokun booking, direct and reseller, into BigQuery keyed on the booking reference, with sales channel, traveler price, commission, net, booking date and departure date. Store click identifiers and consent from your landing page in your own table on the same reference. Merge on updated timestamps because bookings change, and filter on channel before any attribution query.

BigQuery is the one destination where Bokun's reseller bookings belong next to direct ones, because the warehouse is where you answer what distribution is worth. Load each booking with its booking reference as the key, the sales channel (your website, Viator, GetYourGuide, a named agent), traveler price, commission and net, and two dates: when it was booked and when the tour departs. Most operator reporting collapses those two dates, and the result is a revenue curve that looks seasonal for the wrong reasons.

For attribution, the warehouse knows only what you stored. Direct website bookings need the click identifiers captured on your landing page (gclid, fbclid, ttclid, rdt_cid) and the consent state, written to your own table keyed to the same booking reference. Whether you can carry those values into the Bokun booking itself depends on what the widget lets you pass; check that before designing around it, and fall back to joining on the booking reference returned to your confirmation page or on the booker's email.

Two things break this pair. Bokun bookings change after creation: participant counts get amended, dates move, bookings cancel. An insert-only load drifts from the source, so merge on booking reference with an updated timestamp or load daily snapshots. And reseller bookings joined to a website session by email will occasionally look ad-attributed; filter on channel before any attribution query, not after.

Bokun → BigQuery · what breaks

Why this join usually fails — Bokun → BigQuery

  1. 01

    Whatever join key you decide on never reaches Bokun

    Reseller bookings originate on Viator, GetYourGuide or an agent's system. There is no session of yours anywhere in that chain.

  2. 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.

  3. 03

    The warehouse quietly disagreeing with every platform

    This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.

  4. 04

    Nothing reconciles afterwards

    BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.

Bokun → BigQuery · the fix

What working looks like — Bokun → BigQuery

  • Whatever join key you decide on on every booking

  • Conversions arriving in BigQuery

    The row lands in a table you own, joinable to every other table you own, with no window and no expiry.

  • Reconciled against the source

Bokun → BigQuery · architecture

How Bokun and BigQuery actually connect

  1. 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. 2

    BigQuery needs a click to match

    BigQuery needs a schema and consistent types. The failure mode is not rejection, it is silent divergence: a column that arrives as a string in one load and an integer in the next, or a timestamp in the wrong zone, which produces answers that look plausible and are not.

  3. 3

    The identifier is the bridge

    Whatever join key you decide on, captured at the visit and carried into the Bokun booking.

  4. 4

    The event source decides reliability

    Send direct bookings at net value. Never send reseller bookings as conversions.

  5. 5

    Deduplication at the destination

    Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.

Bokun → BigQuery · normal or broken

Working vs. broken, side by side — Bokun → BigQuery

Normal, not a fault

  • Whatever join key you decide on present on the booking

  • Sent from the Bokun booking record

  • Deduplicated correctly

    Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.

  • Reconciles with the source

Actually broken

  • Whatever join key you decide on 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

    This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.

  • Nobody has reconciled it

Bokun → BigQuery · diagnose

Diagnostic order — Bokun → BigQuery

  1. 01

    Count bookings carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 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.

  4. 04

    Reconcile warehouse order counts against each platform for one closed window

    The gaps localize the problem: a gap against all platforms is a collection issue, a gap against one is that platform's window or matching.

  5. 05

    Read the match rate, not the success message

    BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.

Bokun → BigQuery · prove

How it gets proven — Bokun → BigQuery

Source of truth

Bokun bookings by departure, split into your own website and reseller channels, valued at your net rate.

  • Whatever join key you decide on confirmed present on a live booking.
  • Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
  • Direct bookings reconciled at net value against imported conversions.

Bokun → BigQuery · free audit

What we check in the free audit

  • Count bookings carrying whatever join key you decide on
  • Follow one real conversion end to end
  • Split by channel and check whether values are gross or net
  • Reconcile warehouse order counts against each platform for one closed window
  • 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.

Get my free conversion tracking audit

Free30 minutesNo obligation

Bokun → BigQuery · when not to buy

When you don't need this — Bokun → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred bookings and count how many carry whatever join key you decide on.
  • An operator selling mainly through Viator has a distribution question, not a tracking question.
  • If you have one store and one ad platform, a warehouse is infrastructure you will maintain for a reconciliation you could do in a spreadsheet.

Bokun → BigQuery · what we deliver

What gets built — Bokun → BigQuery

  • 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 BigQuery

    Streaming inserts or scheduled batch loads from your order system, with the raw event retained alongside whatever you derive from it.

  • 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.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Bokun → BigQuery questions, answered

Pull them from Bokun's API or scheduled exports into a staging table, then merge on the booking reference so amendments and cancellations update the row. Confirm what your Bokun account exposes before choosing a load schedule.

Free · 30 min

Get Bokun and BigQuery joined properly

Free30 minutesNo obligation