Skip to main content
CJ → MatomoIntegration guide

Connecting CJ Affiliate to Matomo

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. Matomo can be self-hosted with no third party in the chain, which makes it the one analytics destination where the data genuinely never leaves infrastructure you control. The join between them succeeds or fails on one thing: whether the first-party visitor ID reaches the CJ transaction before the conversion happens, because Matomo can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Making CJ Affiliate traffic visible in Matomo

Matomo doesn't recognize cjevent, so read it from the landing URL in your tracking code or server-side and set the visit's campaign name to your affiliate channel, with the publisher ID in a campaign keyword or custom dimension. Record ecommerce orders with the same order ID you send CJ Affiliate, then use raw visit logs to settle disputes.

Matomo recognises its own campaign parameters and common UTM tags, but not cjevent. A visit that arrives through a CJ publisher link therefore shows up as a referral from the publisher's site, or as direct when the browser strips the referrer, and your affiliate channel never appears as a channel at all. On a self-hosted Matomo this is the first thing to fix, because nobody else will.

Read cjevent from the landing URL in your Matomo tracking code, or server-side, and set the visit's campaign name to your affiliate channel name and a campaign keyword or custom dimension to the publisher ID. Check whether your CJ programme's link settings can append the publisher ID to the landing URL; if not, the publisher has to be looked up from CJ's reporting later. Then record ecommerce orders with the same order ID you send CJ, so Matomo's own order deduplication matches CJ's.

The advantage on this pair is that Matomo keeps raw visit logs, which CJ does not give you. When a publisher disputes a missing commission, you can look up the exact visit with the cjevent and the order that followed, and see whether the checkout path lost the identifier: an express checkout button, a payment redirect or a subdomain your CJ tag does not cover. That is the CJ checkout-path problem, answered from your own database.

CJ → Matomo · what breaks

Why this join usually fails — CJ → Matomo

  1. 01

    The first-party visitor ID 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

    Owning the pipeline means owning the outage

    The advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.

  4. 04

    Nothing reconciles afterwards

    Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.

CJ → Matomo · the fix

What working looks like — CJ → Matomo

  • The first-party visitor ID on every conversion

  • Conversions arriving in Matomo

    The event lands in your own database and is queryable directly, including the raw log, which most analytics products do not expose.

  • Reconciled against the source

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

CJ → Matomo · architecture

How CJ and Matomo 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

    Matomo needs a click to match

    The site ID, the visitor identifier and the event or ecommerce order. Self-hosted instances additionally need the tracker endpoint reachable and the database keeping up, which hosted tools do not fail at.

  3. 3

    The identifier is the bridge

    The first-party visitor ID, 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

    Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.

CJ → Matomo · normal or broken

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

Normal, not a fault

  • The first-party visitor ID 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

    Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.

  • Reconciles with the source

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

Actually broken

  • The first-party visitor ID 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 advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.

  • Nobody has reconciled it

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

CJ → Matomo · diagnose

Diagnostic order — CJ → Matomo

  1. 01

    Count conversions carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

    From the ad click through CJ and into Matomo.

  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

    Check tracker reachability and database lag before debugging any tag

    On self-hosted analytics the answer is infrastructure more often than instrumentation.

  5. 05

    Read the match rate, not the success message

    Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.

CJ → Matomo · prove

How it gets proven — CJ → Matomo

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.

  • The first-party visitor ID confirmed present on a live conversion.
  • A real conversion followed from click through CJ to Matomo.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • Transactions reconciled per order with commissioning inputs verified against your own customer data.

CJ → Matomo · free audit

What we check in the free audit

  • Count conversions carrying the first-party visitor ID
  • Follow one real conversion end to end
  • Verify that new-versus-returning status reaches CJ correctly
  • Check tracker reachability and database lag before debugging any tag
  • 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 → Matomo · when not to buy

When you don't need this — CJ → Matomo

  • If Matomo 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 the first-party visitor ID.
  • Simple flat-rate programmes have no commissioning inputs to get wrong.
  • If you have no privacy or ownership requirement and no team to run it, a hosted product removes the only real cost of this one.

CJ → Matomo · what we deliver

What gets built — CJ → Matomo

  • 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 Matomo

    The Matomo HTTP Tracking API, posted server-side from your order system.

  • 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 → Matomo questions, answered

Matomo does not recognise the cjevent parameter as a campaign, so the visit is classified by referrer. Map cjevent to a campaign name in your tracker.

Free · 30 min

Get CJ and Matomo joined properly

Free30 minutesNo obligation