Skip to main content
Freshsales → BigQueryIntegration guide

Connecting Freshsales to BigQuery

Freshsales is Freshworks' CRM, usually bought alongside their support and marketing products, which means contact records arrive from several directions. 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 Freshsales deal 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

Freshsales to BigQuery: Deal Stage History for Real Attribution

Load Freshsales into BigQuery as history, not snapshots: every stage change with timestamp, value, owner and the contact's stored click IDs, joined deal to contact to the gclid or fbclid field. Keep the contact's creation source to separate marketing from support-originated deals, store value at won and current value, merge on deal ID, and dedupe history.

BigQuery is where Freshsales data becomes reconcilable against ad spend across the whole sales cycle, which no ad platform window covers. The useful load is not a snapshot of open deals but the history: every stage change with its timestamp, the deal value at that moment, the owner, and the contact's original click identifiers. A daily snapshot loses the deal that went from proposal to won to lost between two loads.

The join chain is deal ID to contact ID to the custom field holding gclid, fbclid or other click IDs captured at the web form. Load contacts and deals as separate tables and keep the contact's creation source (web form, Freshdesk, Freshmarketer, manual entry), because in a Freshworks stack that source is what separates marketing-originated deals from support-originated ones. Without it, warehouse ROAS includes renewal and upsell deals your ads never touched.

Pull through the Freshsales API on a schedule, or append each workflow webhook on stage change; check the API rate limits for your plan before backfilling years of deals. Deal values get edited after creation, so keep both the value at won and the current value. Merge on deal ID for a current-state table, keep history append-only, and dedupe it on deal ID plus stage plus timestamp.

Freshsales → BigQuery · what breaks

Why this join usually fails — Freshsales → BigQuery

  1. 01

    Whatever join key you decide on never reaches Freshsales

    Contacts can originate in Freshdesk, in Freshmarketer, or in Freshsales itself, and a custom field populated on one path is empty on the others. Support-originated contacts in particular carry no marketing context at all.

  2. 02

    Contacts arriving from the support product

    In a Freshworks stack, existing customers raising tickets create contacts that look identical to new leads. Counting them credits acquisition for your own support volume.

  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.

Freshsales → BigQuery · the fix

What working looks like — Freshsales → BigQuery

  • Whatever join key you decide on on every deal

  • 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

Freshsales → BigQuery · architecture

How Freshsales and BigQuery actually connect

  1. 1

    Freshsales holds the truth

    Freshsales runs its own lead scoring and contact lifecycle stages, which are useful internally and are not conversion events. Only the deal is money.

  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 Freshsales deal.

  4. 4

    The event source decides reliability

    Fire on the transition to won, carrying the deal value. Not on lead score thresholds, which are an internal signal.

  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.

Freshsales → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the deal

  • Sent from a Freshsales workflow webhook on deal stage change

  • 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

    Contacts can originate in Freshdesk, in Freshmarketer, or in Freshsales itself, and a custom field populated on one path is empty on the others. Support-originated contacts in particular carry no marketing context at all.

  • Sent from the browser

    In a Freshworks stack, existing customers raising tickets create contacts that look identical to new leads. Counting them credits acquisition for your own support volume.

  • 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

Freshsales → BigQuery · diagnose

Diagnostic order — Freshsales → BigQuery

  1. 01

    Count deals carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Check what share of deals originated from support rather than marketing

    Only marketing-originated deals should reach an ad platform.

  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.

Freshsales → BigQuery · prove

How it gets proven — Freshsales → BigQuery

Source of truth

Freshsales deals marked won by close date, at their deal values.

  • Whatever join key you decide on confirmed present on a live deal.
  • Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
  • A deal confirmed to carry the identifier from the original web enquiry rather than from a support ticket.

Freshsales → BigQuery · free audit

What we check in the free audit

  • Count deals carrying whatever join key you decide on
  • Follow one real conversion end to end
  • Check what share of deals originated from support rather than marketing
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

Freshsales deals marked won by close date, at their deal values.

Get my free conversion tracking audit

Free30 minutesNo obligation

Freshsales → BigQuery · when not to buy

When you don't need this — Freshsales → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred deals and count how many carry whatever join key you decide on.
  • If most of your deals come from existing customers via support, paid attribution has very little to reach.
  • 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.

Freshsales → BigQuery · what we deliver

What gets built — Freshsales → BigQuery

  • Identifier capture into Freshsales

    Create the custom field on both contact and deal, populate it at contact creation from the web form, and copy it onto the deal via workflow.

  • Event source: a Freshsales workflow webhook on deal stage change

    Fire on the transition to won, carrying the deal value. Not on lead score thresholds, which are an internal signal.

  • 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

    Deals reopened and later lost should not leave a conversion standing.

Written guarantee

95%+ tracking accuracy

Measured against Freshsales deals marked won by close date, at their deal values.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Freshsales → BigQuery questions, answered

The click identifier stored in a Freshsales contact custom field, carried to the deal by ID. If that field was not populated at form submit, there is nothing to join on.

Free · 30 min

Get Freshsales and BigQuery joined properly

Free30 minutesNo obligation