Skip to main content
Magento → PartnerStackIntegration guide

Connecting Magento to PartnerStack

Magento is self-hosted and endlessly customisable, which means every installation is different and full-page caching is always in the way. PartnerStack commissions partners on recurring subscription revenue rather than on a single order, which makes it the one destination here where a conversion you send creates a payment obligation that repeats every month. The join between them succeeds or fails on one thing: whether the PartnerStack referral key reaches the Magento order before the conversion happens, because PartnerStack can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

PartnerStack for a Magento store is usually the wrong partner tool

PartnerStack suits subscription commissions, and Magento Open Source has no native subscriptions, so one-off stores fit an affiliate network better. For extension-based plans, store the referral key on the customer record so renewals inherit it, use customer_id as the identifier, which rules out guest checkout, flag renewal orders, and report invoiced renewals and credit memos.

PartnerStack is built for SaaS partner programs that pay recurring commission on subscriptions, and Magento Open Source has no native subscriptions. Renewals created by a subscription extension show up as separate new orders, each with its own increment_id and no built-in link back to a subscription PartnerStack can follow. If you sell one-off products, an affiliate network that commissions per order fits Magento far better.

Where it does fit, such as a store selling a replenishment plan through an extension, store the PartnerStack referral key on the Magento customer record, not only on the first order, because every renewal order has to inherit it. Use the Magento customer_id as the customer identifier PartnerStack dedupes on. That rules out guest checkout for referred buyers: a guest has no stable ID, and a second guest order from the same person becomes a second commissionable customer.

Report each renewal order as recurring revenue against the same customer when it is invoiced, and report credit memos so commission adjusts. Check how your subscription extension marks renewal orders, whether by a custom attribute or a parent order reference, because the observer needs that flag to tell a renewal from a new purchase. Without it you cannot separate the first payment from recurring revenue, and partners will be paid on the wrong base.

Magento → PartnerStack · what breaks

Why this join usually fails — Magento → PartnerStack

  1. 01

    The PartnerStack referral key never reaches Magento

    Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one.

  2. 02

    Full-page cache between the visitor and your code

    The page the customer saw is not the page your code assumed. This is the defining Magento tracking failure and it produces intermittent, hard-to-reproduce loss.

  3. 03

    A commission that recurs on revenue that stopped

    The mirror of the usual problem. If cancellations are not reported back, partners keep earning on subscriptions that churned months ago. Every conversion pipeline needs reversals; this one needs them because real money leaves the building otherwise.

  4. 04

    Nothing reconciles afterwards

    PartnerStack shows attributed customers and accruing commission per partner. Reconcile the commissionable revenue against your billing system's active subscriptions, not against its historical sales.

Magento → PartnerStack · the fix

What working looks like — Magento → PartnerStack

  • The PartnerStack referral key on every order

  • Conversions arriving in PartnerStack

    The customer is attributed to a partner, and commission accrues against the recognized revenue on the schedule you configured.

  • Reconciled against the source

Magento → PartnerStack · architecture

How Magento and PartnerStack actually connect

  1. 1

    Magento holds the truth

    You own the database, so the truth is as good as the query. Pin down which order statuses count as revenue — processing, complete, or both — because that choice moves the number substantially.

  2. 2

    PartnerStack needs a click to match

    PartnerStack needs the referral key, the customer identifier and the subscription value. Recurring commission also needs the ongoing revenue reported, not just the first payment.

  3. 3

    The identifier is the bridge

    The PartnerStack referral key, captured at the visit and carried into the Magento order.

  4. 4

    The event source decides reliability

    Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.

  5. 5

    Deduplication at the destination

    Deduplication is on your customer identifier. Reporting the same subscription twice creates two commissionable relationships against one paying customer, and the error compounds monthly rather than once.

Magento → PartnerStack · normal or broken

Working vs. broken, side by side — Magento → PartnerStack

Normal, not a fault

  • The PartnerStack referral key present on the order

  • Sent from the Magento order placement observer

  • Deduplicated correctly

    Deduplication is on your customer identifier. Reporting the same subscription twice creates two commissionable relationships against one paying customer, and the error compounds monthly rather than once.

  • Reconciles with the source

Actually broken

  • The PartnerStack referral key missing on most records

    Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one.

  • Sent from the browser

    The page the customer saw is not the page your code assumed. This is the defining Magento tracking failure and it produces intermittent, hard-to-reproduce loss.

  • Counted twice, or not at all

    The mirror of the usual problem. If cancellations are not reported back, partners keep earning on subscriptions that churned months ago. Every conversion pipeline needs reversals; this one needs them because real money leaves the building otherwise.

  • Nobody has reconciled it

Magento → PartnerStack · diagnose

Diagnostic order — Magento → PartnerStack

  1. 01

    Count orders carrying the PartnerStack referral key

  2. 02

    Follow one real conversion end to end

  3. 03

    Place a test order as an anonymous visitor through cache

    Not as an admin, which bypasses it. If the order data is missing on the cached path, caching is your cause.

  4. 04

    Check whether churn events reach PartnerStack at all

    In most implementations the new-subscription path was built and the cancellation path was not, because only one of them is exciting.

  5. 05

    Read the match rate, not the success message

    PartnerStack shows attributed customers and accruing commission per partner. Reconcile the commissionable revenue against your billing system's active subscriptions, not against its historical sales.

Magento → PartnerStack · prove

How it gets proven — Magento → PartnerStack

Source of truth

Magento's sales order records in your own database, for the same window and order status set.

  • The PartnerStack referral key confirmed present on a live order.
  • Commissionable recurring revenue reconciled against active subscriptions in billing, with cancellations proven to reverse.
  • Order data confirmed populated on an order placed through a fully warmed cache.

Magento → PartnerStack · free audit

What we check in the free audit

  • Count orders carrying the PartnerStack referral key
  • Follow one real conversion end to end
  • Place a test order as an anonymous visitor through cache
  • Check whether churn events reach PartnerStack at all
  • Read the match rate, not the success message

Checked against

Magento's sales order records in your own database, for the same window and order status set.

Get my free conversion tracking audit

Free30 minutesNo obligation

Magento → PartnerStack · when not to buy

When you don't need this — Magento → PartnerStack

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the PartnerStack referral key.
  • If your Magento build has heavy customisation by another team, scope their availability first — the build is usually blocked there.
  • If you run no partner or affiliate programme, there is nothing to send here. If you run one on one-off sales rather than subscriptions, the recurring-commission complexity does not apply to you.

Magento → PartnerStack · what we deliver

What gets built — Magento → PartnerStack

  • Identifier capture into Magento

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

  • Event source: the Magento order placement observer

    Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.

  • Dispatch to PartnerStack

    Server-side reporting from your billing system, with the referral key, customer identifier and the recurring revenue as it is recognized.

  • Reversals where they exist

    Credit memos are recorded against the original order and should reduce the reported figure.

Written guarantee

95%+ tracking accuracy

Measured against Magento's sales order records in your own database, for the same window and order status set.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Magento → PartnerStack questions, answered

We are not aware of a native integration, so check PartnerStack's integration list. The workable route is server-side reporting from a Magento observer with the referral key stored on the customer.

Free · 30 min

Get Magento and PartnerStack joined properly

Free30 minutesNo obligation