Skip to main content
Drupal Commerce → ImpactIntegration guide

Connecting Drupal Commerce to Impact.com

Drupal Commerce is self-hosted commerce inside a CMS built for complex content, which means the store is one part of a much larger site you fully control. Impact is the first destination on this site that pays somebody for the conversion you send it, which changes the stakes completely: an event that is wrong here does not distort a report, it produces a payment. The join between them succeeds or fails on one thing: whether the Impact click identifier, irclickid reaches the Drupal Commerce order before the conversion happens, because Impact can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Drupal Commerce to Impact: irclickid and coupon codes on the order

Post Impact conversions from the transition into your agreed paid state, with the irclickid stored on the order, the order number as order ID and item subtotal as amount. Send applied Drupal Commerce coupon codes if your program attributes on promo codes, reverse cancellations before locking, and resend retries with the same order number.

Impact pays a partner for every conversion you post, so the Drupal Commerce question is which order states count. Drupal lets each site define its own workflow, and a draft, validation or fulfillment state is not a sale. Post from the transition into whatever state your team agreed means paid, with the irclickid stored on the order, the order number as the order ID and the item subtotal as the amount, leaving shipping and tax adjustments out unless your contracts say otherwise.

Coupons are the second attribution path. Drupal Commerce promotions record the coupon codes applied to each order, and influencer or creator partners are often given codes rather than links. Check whether your Impact program attributes on promo code; if it does, send the applied code with the conversion, so a partner whose audience typed the code on another device still gets paid and does not file a dispute.

Refunds are where money leaks. When an order moves to canceled, or a payment is refunded in Drupal, reverse or adjust the action in Impact before its locking date so the partner is not paid for a sale that came back. A retried hook must resend the same order number, never a new one, or Impact will commission the order twice.

Drupal Commerce → Impact · what breaks

Why this join usually fails — Drupal Commerce → Impact

  1. 01

    The Impact click identifier, irclickid never reaches Drupal Commerce

    Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run.

  2. 02

    Configurable workflow states nobody agreed on

    Drupal Commerce lets each install define its own order states. Two people reporting on the same store routinely count different states and never reconcile.

  3. 03

    A second party claiming a conversion your ads already paid for

    This is the structural problem with every affiliate and partnership platform. A customer clicks a paid ad, browses, later clicks a partner link for a discount code, and buys. Google reports a conversion, Impact commissions a partner, and you paid twice for one order. Neither system is wrong on its own terms — but nothing reconciles them unless you do.

  4. 04

    Nothing reconciles afterwards

    Impact shows the conversion in its reporting with the attributed partner and the commission. Check that the order ID matches your own record and that the value is net of what you actually keep, not the gross basket.

Drupal Commerce → Impact · the fix

What working looks like — Drupal Commerce → Impact

  • The Impact click identifier, irclickid on every order

  • Conversions arriving in Impact

    The conversion is attributed to a partner, held for your review or approval period, and then commissioned.

  • Reconciled against the source

Drupal Commerce → Impact · architecture

How Drupal Commerce and Impact actually connect

  1. 1

    Drupal Commerce holds the truth

    You own the database, so the truth is exactly as good as the query. Pin down which order states count as revenue before comparing anything — Drupal's workflow states are configurable per install, so no two sites agree by default.

  2. 2

    Impact.com needs a click to match

    Impact needs the click identifier, an order identifier and the order value to attribute and commission the conversion. Without the click identifier it cannot tell which partner to pay.

  3. 3

    The identifier is the bridge

    The Impact click identifier, irclickid, captured at the visit and carried into the Drupal Commerce order.

  4. 4

    The event source decides reliability

    Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.

  5. 5

    Deduplication at the destination

    Impact deduplicates on your order identifier, so the same order sent twice will not commission twice — provided you send a stable order ID. Send a new ID for a retry and you have paid a partner twice for one sale.

Drupal Commerce → Impact · normal or broken

Working vs. broken, side by side — Drupal Commerce → Impact

Normal, not a fault

  • The Impact click identifier, irclickid present on the order

  • Sent from the Drupal Commerce order placement hook

  • Deduplicated correctly

    Impact deduplicates on your order identifier, so the same order sent twice will not commission twice — provided you send a stable order ID. Send a new ID for a retry and you have paid a partner twice for one sale.

  • Reconciles with the source

Actually broken

  • The Impact click identifier, irclickid missing on most records

    Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run.

  • Sent from the browser

    Drupal Commerce lets each install define its own order states. Two people reporting on the same store routinely count different states and never reconcile.

  • Counted twice, or not at all

    This is the structural problem with every affiliate and partnership platform. A customer clicks a paid ad, browses, later clicks a partner link for a discount code, and buys. Google reports a conversion, Impact commissions a partner, and you paid twice for one order. Neither system is wrong on its own terms — but nothing reconciles them unless you do.

  • Nobody has reconciled it

Drupal Commerce → Impact · diagnose

Diagnostic order — Drupal Commerce → Impact

  1. 01

    Count orders carrying the Impact click identifier, irclickid

  2. 02

    Follow one real conversion end to end

  3. 03

    List the order states in use and agree which count as revenue

    Do this before any technical work — it resolves more Drupal Commerce disputes than any code change.

  4. 04

    Count orders that appear in both your ad platforms and Impact

    The overlap is what you are paying for twice. It is a single query against order IDs and it is almost never run.

  5. 05

    Read the match rate, not the success message

    Impact shows the conversion in its reporting with the attributed partner and the commission. Check that the order ID matches your own record and that the value is net of what you actually keep, not the gross basket.

Drupal Commerce → Impact · prove

How it gets proven — Drupal Commerce → Impact

Source of truth

Drupal's commerce_order records in your own database, filtered to completed states.

  • The Impact click identifier, irclickid confirmed present on a live order.
  • Conversions in Impact reconciled per order ID against your own order records, with the ad-platform overlap measured and stated.
  • Order field data confirmed populated on an order placed through a fully warmed cache as an anonymous visitor.

Drupal Commerce → Impact · free audit

What we check in the free audit

  • Count orders carrying the Impact click identifier, irclickid
  • Follow one real conversion end to end
  • List the order states in use and agree which count as revenue
  • Count orders that appear in both your ad platforms and Impact
  • Read the match rate, not the success message

Checked against

Drupal's commerce_order records in your own database, filtered to completed states.

Get my free conversion tracking audit

Free30 minutesNo obligation

Drupal Commerce → Impact · when not to buy

When you don't need this — Drupal Commerce → Impact

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Impact click identifier, irclickid.
  • If your Drupal site is content-only with commerce elsewhere, work at the commerce system instead — this is the wrong layer.
  • If you have no partner programme, there is nothing to send here. If you have one and are not reconciling the overlap with paid media, that reconciliation is worth more than any tracking build.

Drupal Commerce → Impact · what we deliver

What gets built — Drupal Commerce → Impact

  • Identifier capture into Drupal Commerce

    Capture the identifier and persist it as order field data through a hook on order placement, server-side, so it never depends on what the cache served.

  • Event source: the Drupal Commerce order placement hook

    Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.

  • Dispatch to Impact

    The Impact Conversions API, posted server-side from your order system with the click identifier, order ID and value.

  • Reversals where they exist

    Order state transitions to refunded or cancelled are recorded and can drive reversals.

Written guarantee

95%+ tracking accuracy

Measured against Drupal's commerce_order records in your own database, filtered to completed states.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Drupal Commerce → Impact questions, answered

Post them server-side from the order state transition your team counts as paid, with the stored irclickid, the order number and the commissionable amount.

Free · 30 min

Get Drupal Commerce and Impact joined properly

Free30 minutesNo obligation