Skip to main content
CJ → SnowflakeIntegration guide

Connecting CJ Affiliate to Snowflake

CJ operates at enterprise scale with sophisticated commissioning rules, which means the same publisher can be paid differently by product, by customer status or by placement — and getting those inputs wrong pays real money incorrectly. Snowflake's distinguishing feature is that two organisations can join data without either copying it to the other, which turns measurement between partners from a legal negotiation into a query. The join between them succeeds or fails on one thing: whether whatever join key both parties agree on, usually a hashed identifier reaches the CJ transaction before the conversion happens, because Snowflake can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Auditing CJ Affiliate commissions in Snowflake

Load CJ Affiliate commission detail from CJ's reporting API into Snowflake next to your orders, joined on the order ID you sent CJ. Audit customer status against first-order dates, commissioned amounts against net order value, and refunds missing corrections. Load again after the locking period and deduplicate on CJ's commission identifier.

Snowflake is the natural home for this pair, because the question that costs money is an audit and CJ's own interface is not built for it. Load CJ's commission detail into a table, using CJ's reporting API (check the current name and fields in CJ's developer portal), next to your own orders, and join them on the order ID you sent CJ. Every commissioned transaction can then be checked against what actually happened.

Three queries pay for the work. First, customer status: compare the status CJ recorded on each commissioned order against your own first-order date for that customer, matched on normalised email, and sum the commission difference on mismatches. Second, value: CJ should have commissioned the order net of discounts and excluding whatever your terms exclude, so compare the sale amount CJ holds with your order's net value. Third, reversals: find refunded or cancelled orders that still show as commissioned because no correction was sent.

Load CJ data as it arrives, then again after its locking period, because amounts change as corrections land, and keep both snapshots so you can see what changed. Loads are at-least-once, so deduplicate on CJ's commission identifier before summing anything, or the overpayment figure you take to your account manager will itself be wrong.

CJ → Snowflake · what breaks

Why this join usually fails — CJ → Snowflake

  1. 01

    Whatever join key both parties agree on, usually a hashed identifier never reaches CJ

    The publisher click identifier must survive to checkout, and enterprise stores frequently have several checkout paths.

  2. 02

    Commissioning rules fed the wrong inputs

    A new-customer rate applied to returning customers because the status flag was never wired is a direct overpayment on every affected order, compounding quietly until somebody audits the programme.

  3. 03

    A clean room that answers a question nobody agreed on

    The technology makes the join possible; it does not make the definitions match. Two organisations measuring the same campaign will disagree about what a conversion is, which window applies and whose attribution model governs — and the query will return a confident number for whichever set of assumptions got written into the SQL.

  4. 04

    Nothing reconciles afterwards

    Snowflake will not tell you anything is wrong. Verify by querying against each party's own totals and checking for duplicate rows on the join key before trusting any aggregate.

CJ → Snowflake · the fix

What working looks like — CJ → Snowflake

  • Whatever join key both parties agree on, usually a hashed identifier on every conversion

  • Conversions arriving in Snowflake

    The row lands in a table you own, joinable to your own data and — through a share or clean room — to a partner's, without either party moving raw records.

  • Reconciled against the source

    CJ Affiliate's own records are the reference, not either dashboard.

CJ → Snowflake · architecture

How CJ and Snowflake actually connect

  1. 1

    CJ Affiliate holds the truth

    Rules commonly commission new customers differently from returning ones. If your order does not carry customer status correctly, publishers are paid the wrong rate systematically and neither side notices for months.

  2. 2

    Snowflake needs a click to match

    A schema both sides agree on, consistent types, and identifiers normalised identically before hashing. The failure mode is not rejection but silent divergence — a timestamp in the wrong zone or a trimmed-versus-untrimmed email produces answers that look plausible.

  3. 3

    The identifier is the bridge

    Whatever join key both parties agree on, usually a hashed identifier, captured at the visit and carried into the CJ transaction.

  4. 4

    The event source decides reliability

    Send orders net of commission, carrying the fields the commissioning rules depend on.

  5. 5

    Deduplication at the destination

    Nothing deduplicates for you. Loads are at-least-once, so a retried pipeline creates duplicate rows and the only protection is a deduplication step you write and actually schedule.

CJ → Snowflake · normal or broken

Working vs. broken, side by side — CJ → Snowflake

Normal, not a fault

  • Whatever join key both parties agree on, usually a hashed identifier present on the conversion

    Visible on the record itself in CJ Affiliate, not merely captured somewhere on the site.

  • Sent from your order record with CJ attribution

  • Deduplicated correctly

    Nothing deduplicates for you. Loads are at-least-once, so a retried pipeline creates duplicate rows and the only protection is a deduplication step you write and actually schedule.

  • Reconciles with the source

    Snowflake's count and CJ Affiliate's records agree within a few percent over a closed window.

Actually broken

  • Whatever join key both parties agree on, usually a hashed identifier missing on most records

    The publisher click identifier must survive to checkout, and enterprise stores frequently have several checkout paths.

  • Sent from the browser

    A new-customer rate applied to returning customers because the status flag was never wired is a direct overpayment on every affected order, compounding quietly until somebody audits the programme.

  • Counted twice, or not at all

    The technology makes the join possible; it does not make the definitions match. Two organisations measuring the same campaign will disagree about what a conversion is, which window applies and whose attribution model governs — and the query will return a confident number for whichever set of assumptions got written into the SQL.

  • Nobody has reconciled it

    The dashboard shows a number and no one has compared it to CJ Affiliate.

CJ → Snowflake · diagnose

Diagnostic order — CJ → Snowflake

  1. 01

    Count conversions carrying whatever join key both parties agree on, usually a hashed identifier

  2. 02

    Follow one real conversion end to end

    From the ad click through CJ and into Snowflake.

  3. 03

    Verify that new-versus-returning status reaches CJ correctly

    Sample recent transactions and compare against your own customer records. Mismatches are money.

  4. 04

    Write down both parties' conversion definitions before writing any query

    Definition mismatch, not technology, is what makes most partner measurement projects produce numbers neither side trusts.

  5. 05

    Read the match rate, not the success message

    Snowflake will not tell you anything is wrong. Verify by querying against each party's own totals and checking for duplicate rows on the join key before trusting any aggregate.

CJ → Snowflake · prove

How it gets proven — CJ → Snowflake

Against CJ Affiliate's own records, not against either platform's dashboard.

Source of truth

Orders flagged by publisher, with the commissioning inputs recorded on the order.

  • Whatever join key both parties agree on, usually a hashed identifier confirmed present on a live conversion.
  • A real conversion followed from click through CJ to Snowflake.
  • Row counts and revenue reconciled against each source system for a closed window, with duplicates checked on the join key and both definitions documented.
  • Transactions reconciled per order with commissioning inputs verified against your own customer data.

CJ → Snowflake · free audit

What we check in the free audit

  • Count conversions carrying whatever join key both parties agree on, usually a hashed identifier
  • Follow one real conversion end to end
  • Verify that new-versus-returning status reaches CJ correctly
  • Write down both parties' conversion definitions before writing any query
  • Read the match rate, not the success message

Checked against

Orders flagged by publisher, with the commissioning inputs recorded on the order.

Get my free conversion tracking audit

Free30 minutesNo obligation

CJ → Snowflake · when not to buy

When you don't need this — CJ → Snowflake

  • If Snowflake already reports conversions that reconcile against CJ Affiliate's records within a few percent, this join is working and there is nothing to buy.
  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry whatever join key both parties agree on, usually a hashed identifier.
  • Simple flat-rate programmes have no commissioning inputs to get wrong.
  • If you have no partner to share data with and one cloud, a warehouse you already run does the same job. The sharing capability is what justifies this one.

CJ → Snowflake · what we deliver

What gets built — CJ → Snowflake

  • Identifier capture into CJ

    Capture the identifier and the customer status on the order, and verify both across every checkout path you operate.

  • Event source: your order record with CJ attribution

    Send orders net of commission, carrying the fields the commissioning rules depend on.

  • Dispatch to Snowflake

    Batch or streaming loads from your order system, with the raw event retained alongside anything you derive from it.

  • Reversals where they exist

    Refunds reverse and reverse the commission.

Written guarantee

95%+ tracking accuracy

Measured against Orders flagged by publisher, with the commissioning inputs recorded on the order.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

CJ → Snowflake questions, answered

Load CJ's commission detail next to your orders, join on order ID, and compare the customer status, sale amount and refund state CJ commissioned against your own records.

Free · 30 min

Get CJ and Snowflake joined properly

Free30 minutesNo obligation