Connecting Craft CMS to PartnerStack
Craft is a developer-oriented CMS, usually built bespoke by an agency, which means the implementation is whatever that agency decided and nothing is standard. 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 Craft Commerce 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
Craft CMS to PartnerStack: usually Stripe's job, not Craft's
Usually Craft only captures the PartnerStack referral key in JavaScript and passes it into signup, while billing reports revenue. If Craft Commerce sells subscriptions through its Stripe gateway, report new subscriptions, renewal payments and cancellations from Commerce subscription events, keyed on the Craft user UID, and make sure cancellations are wired.
PartnerStack pays partners on recurring subscription revenue, and most software companies with a Craft marketing site bill through Stripe or a similar system, not through Craft. In that common setup Craft's only job is capturing the PartnerStack referral key on the landing page and passing it into signup; commissionable revenue should be reported from the billing system, where renewals and cancellations actually happen.
Craft Commerce does support subscriptions through its Stripe gateway, so a build that genuinely sells subscriptions in Craft can report from Commerce's subscription events instead: the new subscription with the referral key stored on the user, each successful renewal payment, and the cancellation. Confirm the exact event names in your Commerce version before building. Key the customer on the Craft user UID so a subscriber who changes email is not counted as a new customer.
Static caching affects the referral key like any other URL parameter: server-side capture code on a cached landing page will not run. Capture it in JavaScript, then carry it as a hidden field into the signup form or app. The common failure is the cancellation path never being wired, so partners keep earning on Craft subscriptions that lapsed months ago.
Craft → PartnerStack · what breaks
Why this join usually fails — Craft → PartnerStack
- 01
The PartnerStack referral key never reaches Craft
Craft's template caching and static caching plugins both serve stored output, and because every build is custom, where the capture code lives differs per site. There is no standard place to look.
- 02
Every install is bespoke
There is no standard Craft setup, so an approach that worked on another Craft site may have nothing to attach to on this one. Read the build before quoting.
- 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.
- 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.
Craft → PartnerStack · the fix
What working looks like — Craft → 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
Craft CMS's own records are the reference, not either dashboard.
Craft → PartnerStack · architecture
How Craft and PartnerStack actually connect
- 1
Craft CMS holds the truth
Craft installs are bespoke by nature. Establish how this particular build models a completed order before assuming anything transfers from another Craft site.
- 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
The identifier is the bridge
The PartnerStack referral key, captured at the visit and carried into the Craft Commerce order.
- 4
The event source decides reliability
Fire from the event listener in PHP rather than a Twig template, which may be cached.
- 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.
Craft → PartnerStack · normal or broken
Working vs. broken, side by side — Craft → PartnerStack
Normal, not a fault
The PartnerStack referral key present on the order
Visible on the record itself in Craft CMS, not merely captured somewhere on the site.
Sent from the Craft Commerce order-complete event
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
PartnerStack's count and Craft CMS's records agree within a few percent over a closed window.
Actually broken
The PartnerStack referral key missing on most records
Craft's template caching and static caching plugins both serve stored output, and because every build is custom, where the capture code lives differs per site. There is no standard place to look.
Sent from the browser
There is no standard Craft setup, so an approach that worked on another Craft site may have nothing to attach to on this one. Read the build before quoting.
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
The dashboard shows a number and no one has compared it to Craft CMS.
Craft → PartnerStack · diagnose
Diagnostic order — Craft → PartnerStack
- 01
Count orders carrying the PartnerStack referral key
- 02
Follow one real conversion end to end
- 03
Read how this specific build handles order completion
Assumptions carried from another Craft project are the main source of wasted time here.
- 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.
- 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.
Craft → PartnerStack · prove
How it gets proven — Craft → PartnerStack
Against Craft CMS's own records, not against either platform's dashboard.
Source of truth
Craft Commerce's order records in your own database, filtered to completed.
- 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 custom field confirmed populated on an order placed as an anonymous visitor through cache.
Craft → PartnerStack · free audit
What we check in the free audit
- Count orders carrying the PartnerStack referral key
- Follow one real conversion end to end
- Read how this specific build handles order completion
- Check whether churn events reach PartnerStack at all
- Read the match rate, not the success message
Checked against
Craft Commerce's order records in your own database, filtered to completed.
Free30 minutesNo obligation
Craft → PartnerStack · when not to buy
When you don't need this — Craft → PartnerStack
- If PartnerStack already reports conversions that reconcile against Craft CMS'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 orders and count how many carry the PartnerStack referral key.
- If the original agency is still engaged, the fastest path is usually specifying the field and having them add the hook.
- 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.
Craft → PartnerStack · what we deliver
What gets built — Craft → PartnerStack
Identifier capture into Craft
Capture the identifier and store it as a custom field on the order through a Craft event listener, server-side.
Event source: the Craft Commerce order-complete event
Fire from the event listener in PHP rather than a Twig template, which may be cached.
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
Refunds and cancelled orders are recorded against the order.
Written guarantee
95%+ tracking accuracy
Measured against Craft Commerce's order records in your own database, filtered to completed.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Craft → PartnerStack questions, answered
Capture the referral key on your Craft pages with JavaScript and pass it into signup; report revenue from wherever you bill. Report from Craft only if Craft Commerce itself runs the subscriptions.
They can, from Commerce subscription and payment events posted server-side with the referral key; confirm the event names for your version. Wire cancellations at the same time.
Almost always because the PartnerStack referral key never reached the Craft Commerce order. Craft's template caching and static caching plugins both serve stored output, and because every build is custom, where the capture code lives differs per site. There is no standard place to look. Measure coverage before debugging the dispatch.
PartnerStack attributes through a referral key carried on the link and stored against the customer. Because commissions are frequently paid on recurring revenue for the life of the subscription, losing the key does not cost a partner one commission — it costs them the whole relationship's worth, and produces a dispute you cannot resolve after the fact.
The Craft Commerce order-complete event. Fire from the event listener in PHP rather than a Twig template, which may be cached.
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.
More on Craft → PartnerStack
- Craft → Google AdsConnecting Craft CMS to Google Ads
- Craft → MetaConnecting Craft CMS to Meta Conversions API
- Craft → GA4Connecting Craft CMS to GA4
RELATED GUIDES
Where Craft → PartnerStack fits in the rest of your tracking
- Sitecore → PartnerStackConnecting Sitecore to PartnerStack
- Umbraco → PartnerStackConnecting Umbraco to PartnerStack
- Concrete CMS → PartnerStackConnecting Concrete CMS to PartnerStack
- Craft → AwinConnecting Craft CMS to Awin
- Craft → ImpactConnecting Craft CMS to Impact.com
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- AEM → PartnerStackConnecting Adobe Experience Manager to PartnerStack
- Duda → PartnerStackConnecting Duda to PartnerStack
Free · 30 min
Get Craft and PartnerStack joined properly
Free30 minutesNo obligation
