Skip to main content
Smile.io → BigQueryIntegration guide

Connecting Smile.io to BigQuery

Smile.io issues points that customers redeem later, which means every point awarded is a liability and every redemption is a discount against a future order. 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 Smile.io points redemption 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

Smile.io in BigQuery: the points liability next to ad revenue

Load Smile.io points transactions with customer, points, reason and date into BigQuery and join them to orders on order ID and customer. Value points from a dated config table to compute outstanding liability, report ad revenue net of discounts redeemed, and keep expected points cost in its own column. MERGE on Smile's activity ID so replays don't double points.

The cost of a loyalty program is a number nobody reports, because it lives in two systems: order revenue in the store, points issued and redeemed in Smile.io. BigQuery is where they can sit in one table. Load Smile.io points transactions with customer, points, reason and date, and join them to orders on order ID and customer.

Then value the points. Keep your redemption rate, the dollars of discount per point at the rewards you offer, in a dated config table, because programs change, and compute outstanding liability per customer. Ad-attributed revenue can then be reported net: order value, minus the discount actually redeemed on it, minus the expected cost of the points it awarded. That last term is an estimate, so keep it in its own column rather than baking it into revenue.

The attribution join is the store's: click IDs captured at first visit and stored against the customer or first order. Flag first orders, plain repeats and redemption orders in a view so campaign reports can exclude reward-driven repeats from acquisition. Pull Smile.io data through its API or webhooks if your plan includes them, and MERGE on Smile's activity or transaction ID so replays do not double points.

Smile.io → BigQuery · what breaks

Why this join usually fails — Smile.io → BigQuery

  1. 01

    Whatever join key you decide on never reaches Smile.io

    The rewards widget renders in a Smile-served frame that does not share your page's storage.

  2. 02

    Points liability invisible in the conversion value

    An order that awards points is worth its value minus the eventual redemption. Reporting the gross figure on every order overstates margin by the whole cost of the loyalty programme.

  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.

Smile.io → BigQuery · the fix

What working looks like — Smile.io → BigQuery

  • Whatever join key you decide on on every redemption

  • 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

Smile.io → BigQuery · architecture

How Smile.io and BigQuery actually connect

  1. 1

    Smile.io holds the truth

    A redeemed order is retention revenue at a reduced margin. Crediting it to the paid click that acquired the customer originally counts one acquisition twice and at the wrong value.

  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 Smile.io points redemption.

  4. 4

    The event source decides reliability

    Send orders net of the discount points redeemed, with first orders and reward-driven repeats marked.

  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.

Smile.io → BigQuery · normal or broken

Working vs. broken, side by side — Smile.io → BigQuery

Normal, not a fault

  • Whatever join key you decide on present on the redemption

  • Sent from your order feed with Smile attributes attached

  • 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 rewards widget renders in a Smile-served frame that does not share your page's storage.

  • Sent from the browser

    An order that awards points is worth its value minus the eventual redemption. Reporting the gross figure on every order overstates margin by the whole cost of the loyalty programme.

  • 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

Smile.io → BigQuery · diagnose

Diagnostic order — Smile.io → BigQuery

  1. 01

    Count redemptions carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare gross order value against value net of points issued and redeemed

    The gap is the programme's real cost, and it is rarely in any marketing report.

  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.

Smile.io → BigQuery · prove

How it gets proven — Smile.io → BigQuery

Source of truth

Store orders flagged by whether points were earned or redeemed on them.

  • Whatever join key you decide on confirmed present on a live redemption.
  • Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
  • First orders reconciled against imported conversions, with redemption-driven orders reported separately.

Smile.io → BigQuery · free audit

What we check in the free audit

  • Count redemptions carrying whatever join key you decide on
  • Follow one real conversion end to end
  • Compare gross order value against value net of points issued and redeemed
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

Store orders flagged by whether points were earned or redeemed on them.

Get my free conversion tracking audit

Free30 minutesNo obligation

Smile.io → BigQuery · when not to buy

When you don't need this — Smile.io → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred redemptions and count how many carry whatever join key you decide on.
  • If you run no loyalty programme, this reduces to an ordinary store 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.

Smile.io → BigQuery · what we deliver

What gets built — Smile.io → BigQuery

  • Identifier capture into Smile.io

    Capture on your own domain before the widget loads and record points activity on the order so acquisition and retention stay separable.

  • Event source: your order feed with Smile attributes attached

    Send orders net of the discount points redeemed, with first orders and reward-driven repeats marked.

  • 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

    Refunds reverse and should claw back awarded points.

Written guarantee

95%+ tracking accuracy

Measured against Store orders flagged by whether points were earned or redeemed on them.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Smile.io → BigQuery questions, answered

Check whether your Smile.io plan includes API or webhook access; if so, load points transactions and MERGE on their IDs. Otherwise scheduled exports are the fallback.

Free · 30 min

Get Smile.io and BigQuery joined properly

Free30 minutesNo obligation