MyAppAffiliate
Partner attribution for subscription products — mobile apps and web SaaS. Track which creators drive installs, signups, subscriptions, and recurring revenue — then pay them.
The loop
affiliate link / code
→ click / landing (link service or ?via= on your site)
→ install / signup (SDK records attribution on first touch)
→ identify user (SDK binds your user id)
→ subscription (RevenueCat or Stripe webhook → our API)
→ commission (attribution engine, incl. renewals)
→ CSV payout (mature → export → marked paid)
→ dashboard (founder + creator views)SDKs
| Platform | Guide |
|---|---|
| iOS (Swift) | /sdk-ios |
| Android (Kotlin) | /sdk-android |
| React Native | /sdk-react-native |
| Flutter | /sdk-flutter |
| Web (browser) | /sdk-web |
| Node (server) | /sdk-node |
Same five calls everywhere: configure → attribute(url) / applyCode(code) →
identify(userId) → attributedAffiliateId(). See the SDK index.
Quickstart — mobile app (5 minutes)
1. Configure the SDK (iOS shown; Android/RN/Flutter are the same shape):
import MyAppAffiliate
AffiliateSDK.configure(
apiKey: "pk_live_…",
baseURL: URL(string: "https://api.myappaffiliate.com")!
)2. Attribute — a creator's referral code (or an incoming link):
AffiliateSDK.applyCode("LUMI") // or: AffiliateSDK.attribute(url: incomingURL)3. Identify the user (same id you use with RevenueCat):
AffiliateSDK.identify(userId: yourUserId)4. Pass the affiliate into RevenueCat before the purchase — this closes the loop:
if let aff = AffiliateSDK.attributedAffiliateId() {
Purchases.shared.attribution.setAttributes(["affiliate_id": aff])
}5. Point your RevenueCat webhook at
https://api.myappaffiliate.com/webhooks/revenuecat/<appId> with the Authorization
secret from onboarding. Subscriptions now turn into commissions on the dashboard.
Quickstart — web SaaS (5 minutes)
1. Drop the Web SDK on your landing page — it auto-captures ?via=CODE:
<script src="https://cdn.myappaffiliate.com/sdk.js"
data-api-key="pk_live_…" data-base-url="https://api.myappaffiliate.com" async></script>2. Identify at signup, 3. stamp Stripe with metadata.customer_user_id, and
4. add the Stripe webhook — the whole flow, with the event mapping, is in the
Web SaaS guide.
Where next
- SDKs — iOS, Android, React Native, Flutter, Web, Node
- API Reference — REST endpoints
- Webhooks — RevenueCat + Stripe setup & event mapping
- Web SaaS guide — end-to-end for web products
- Dashboard Guide — founder + creator views, CSV payouts
- Go-Live & Deploy — onboard your app and ship it