Skip to main content
LiveChat → BigQueryIntegration guide

Connecting LiveChat to BigQuery

LiveChat is agent-operated chat for mid-market companies, and its built-in goal tracking makes it unusually easy to create a conversion action that measures agent activity instead of revenue. 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 LiveChat goal 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

LiveChat in BigQuery: the goal-versus-revenue reconciliation

Load LiveChat archived chats and agent-marked goals into BigQuery beside your order or CRM table, joined on lowercased pre-chat email and a time window, to compare goals against settled revenue. Key rows on chat ID, store pushed session variables like click identifiers as columns, deduplicate on chat ID, and keep the marking agent as a column.

BigQuery is where the diagnostic for this source gets settled with data. Load LiveChat's archived chats and agent-marked goals alongside your order or CRM table, join them on customer email and a time window, and compare goals marked against revenue that actually settled. The gap is usually wide enough to end the argument about which one becomes the ad conversion.

The join key is the customer, not the chat. A single LiveChat conversation can span several sessions and devices while the ticket stays open, so key rows on chat ID but resolve to a customer key built from the pre-chat email, normalized to lowercase. Store the session variables you pushed into the widget, especially any click identifiers, as their own columns rather than burying them in a JSON blob that nobody will query.

Pull from LiveChat's API or webhooks (check which your plan supports) on a schedule, and deduplicate on chat ID before reporting, because transcripts are updated after the fact as agents tag and rate them. Keep the agent who marked each goal as a column; goal rates per agent next to settled revenue per agent shows quickly whether goals track sales or compensation.

LiveChat → BigQuery · what breaks

Why this join usually fails — LiveChat → BigQuery

  1. 01

    Whatever join key you decide on never reaches LiveChat

    The chat window is a third-party frame, and chats frequently continue across sessions and devices while the ticket stays open.

  2. 02

    Agent-reported sales as a bidding signal

    Agents mark goals inconsistently, under time pressure, and sometimes according to how they are compensated. That is a reasonable management metric and a terrible thing to hand an automated bidding algorithm.

  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.

LiveChat → BigQuery · the fix

What working looks like — LiveChat → BigQuery

  • Whatever join key you decide on on every goal

  • 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

LiveChat → BigQuery · architecture

How LiveChat and BigQuery actually connect

  1. 1

    LiveChat holds the truth

    LiveChat's own goal and sales-tracking features are agent-reported. They are useful for coaching and unsuitable as an advertising conversion source, because a human decides whether they fire.

  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 LiveChat goal.

  4. 4

    The event source decides reliability

    Send the settled commercial outcome, not the agent-marked goal.

  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.

LiveChat → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the goal

  • Sent from your order or CRM 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 chat window is a third-party frame, and chats frequently continue across sessions and devices while the ticket stays open.

  • Sent from the browser

    Agents mark goals inconsistently, under time pressure, and sometimes according to how they are compensated. That is a reasonable management metric and a terrible thing to hand an automated bidding algorithm.

  • 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

LiveChat → BigQuery · diagnose

Diagnostic order — LiveChat → BigQuery

  1. 01

    Count goals carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare agent-marked goals against settled revenue

    The gap is usually wide enough to settle the argument about which one should be the conversion.

  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.

LiveChat → BigQuery · prove

How it gets proven — LiveChat → BigQuery

Source of truth

Your order or CRM system, joined to the chat session by the agent-recorded identifier or the customer's email.

  • Whatever join key you decide on confirmed present on a live goal.
  • Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
  • Settled orders reconciled against imported conversions; agent-marked goals excluded.

LiveChat → BigQuery · free audit

What we check in the free audit

  • Count goals carrying whatever join key you decide on
  • Follow one real conversion end to end
  • Compare agent-marked goals against settled revenue
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

Your order or CRM system, joined to the chat session by the agent-recorded identifier or the customer's email.

Get my free conversion tracking audit

Free30 minutesNo obligation

LiveChat → BigQuery · when not to buy

When you don't need this — LiveChat → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred goals and count how many carry whatever join key you decide on.
  • If LiveChat is purely a support channel, no integration is warranted.
  • 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.

LiveChat → BigQuery · what we deliver

What gets built — LiveChat → BigQuery

  • Identifier capture into LiveChat

    Push the identifier in as a custom variable at load. Expect multi-session conversations, and persist against the customer rather than the session.

  • Event source: your order or CRM record

    Send the settled commercial outcome, not the agent-marked goal.

  • 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 and cancelled deals reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your order or CRM system, joined to the chat session by the agent-recorded identifier or the customer's email.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

LiveChat → BigQuery questions, answered

Load chats and goals into BigQuery, join them to orders or CRM deals on customer email within a time window, and compare goals against settled revenue.

Free · 30 min

Get LiveChat and BigQuery joined properly

Free30 minutesNo obligation