Skip to main content
Treatwell → BigQueryIntegration guide

Connecting Treatwell to BigQuery

Treatwell is a beauty marketplace with a salon booking system attached, so most of the bookings flowing through it were generated by Treatwell rather than by you. 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 Treatwell 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

Treatwell to BigQuery: reconcile bookings against the payout file

In BigQuery, load Treatwell bookings and payout lines separately and join them on the Treatwell booking reference to get each appointment's net value after commission and discount. Store channel, service, prices, currency and status, keeping pounds and euros apart. Keep site click IDs and UTMs in a separate table matched by client email and booking time.

The useful job for BigQuery with Treatwell is joining bookings to payouts, because the payout statement is the only place where new-client commission and promotional discount have both been applied. Load bookings and payout lines separately, keyed on the Treatwell booking reference, and the net value of every appointment falls out of the join.

Check what Treatwell gives you: report and statement exports are the realistic source for most salons, and whether any API access exists depends on your account and market, so confirm it. Store booking date, service date, service, staff member, channel (your own widget versus the marketplace), headline price, discount, commission, net value, currency and status. Treatwell operates in pounds and euros, so keep currency as a column and never sum across it. Store the click IDs and UTMs from your site's session in a separate table, joined to widget bookings by whatever you can match, usually client email and booking time.

Then the two questions that matter become queries: net value of widget bookings by campaign, and marketplace volume with its total commission cost, reported separately. Treat cancellations and no-shows as their own statuses rather than deleting rows. For one salon with one ad account, the payout report and a spreadsheet will do the same job.

Treatwell → BigQuery · what breaks

Why this join usually fails — Treatwell → BigQuery

  1. 01

    Whatever join key you decide on never reaches Treatwell

    The widget is Treatwell-served, and marketplace bookings originate entirely inside Treatwell.

  2. 02

    Commission and discount both omitted from the value

    A marketplace booking at a promotional rate, minus new-client commission, can be worth half its headline price. Import the headline and the channel looks twice as good as it is.

  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.

Treatwell → BigQuery · the fix

What working looks like — Treatwell → 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

Treatwell → BigQuery · architecture

How Treatwell and BigQuery actually connect

  1. 1

    Treatwell holds the truth

    Marketplace bookings carry a commission on new clients and often a promotional discount as well. Two deductions, both invisible if you import the headline price.

  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 Treatwell booking.

  4. 4

    The event source decides reliability

    Send completed appointments net of commission and discount.

  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.

Treatwell → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the booking

  • Sent from the Treatwell 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

    The widget is Treatwell-served, and marketplace bookings originate entirely inside Treatwell.

  • Sent from the browser

    A marketplace booking at a promotional rate, minus new-client commission, can be worth half its headline price. Import the headline and the channel looks twice as good as it is.

  • 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

Treatwell → BigQuery · diagnose

Diagnostic order — Treatwell → BigQuery

  1. 01

    Count bookings carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Reconcile against the payout, not the booking

    The payout report is the only place where both deductions have already been applied.

  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.

Treatwell → BigQuery · prove

How it gets proven — Treatwell → BigQuery

Source of truth

Treatwell bookings by service date, split between your own booking widget and the Treatwell marketplace.

  • 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.
  • Own-widget bookings reconciled net against imported conversions, with marketplace volume reported separately.

Treatwell → 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
  • Reconcile against the payout, not the booking
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

Treatwell bookings by service date, split between your own booking widget and the Treatwell marketplace.

Get my free conversion tracking audit

Free30 minutesNo obligation

Treatwell → BigQuery · when not to buy

When you don't need this — Treatwell → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred bookings and count how many carry whatever join key you decide on.
  • If Treatwell is purely a client-acquisition marketplace for you, evaluate it on commission economics rather than building a tracking integration.
  • 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.

Treatwell → BigQuery · what we deliver

What gets built — Treatwell → BigQuery

  • Identifier capture into Treatwell

    Attribute widget bookings placed from your own site; report marketplace volume separately with its commission stated.

  • Event source: the Treatwell booking record

    Send completed appointments net of commission and discount.

  • 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 and no-shows reverse.

Written guarantee

95%+ tracking accuracy

Measured against Treatwell bookings by service date, split between your own booking widget and the Treatwell marketplace.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Treatwell → BigQuery questions, answered

Load Treatwell's booking and payout exports, keyed on the booking reference. Confirm with Treatwell whether your account has any API access or only report downloads.

Free · 30 min

Get Treatwell and BigQuery joined properly

Free30 minutesNo obligation