All articles

App Store attribution

RevenueCat affiliate attribution for iOS subscriptions

Credit affiliates for RevenueCat-powered subscriptions by carrying the referral as a RevenueCat customer attribute, while RevenueCat stays the source of truth for entitlements.

Published · Last reviewed

Written by Attribloom Engineering · Reviewed by Attribloom Product · Last reviewed

Two jobs, cleanly separated

RevenueCat answers one question well: is this customer entitled right now? It manages subscription state, receipts, and the entitlement your paywall checks. Affiliate attribution answers a different question: which partner drove this subscription, and what commission is owed after refunds. Those are separate concerns, and keeping them separate is what lets each stay simple.

Attribloom does not replace RevenueCat. It connects to RevenueCat's webhooks: RevenueCat keeps granting entitlements, and Attribloom credits the affiliate from the purchase, renewal and refund events RevenueCat already sends.

Why the appAccountToken alone does not work with RevenueCat

Without RevenueCat, the attribution key is the StoreKit 2 appAccountToken: your app sets an Attribloom-issued token on the purchase and Apple echoes it back in every signed notification. RevenueCat's SDK sets the appAccountToken for you from its own App User ID when that ID is a UUID. A token your app mints for attribution therefore does not reliably reach Apple on a RevenueCat purchase, and notifications arrive carrying RevenueCat's identifier instead.

The fix is to carry the referral next to the purchase rather than inside it. RevenueCat customer attributes are set from the SDK and delivered with every webhook event, so the attribution survives anonymous IDs, aliases and transfers.

The pattern

Connecting a RevenueCat app takes four steps. Once live, purchases and renewals are credited on developer proceeds after the store commission and tax RevenueCat reports, and refunds claw the commission back.

  • Resolve the Attribloom token at first launch, from the affiliate's link or referral code.
  • Before the first purchase, set token.uuidString as the attribloom_ref customer attribute with Purchases.shared.attribution.setAttributes.
  • In Attribloom, connect RevenueCat under Integrations with the webhook signing secret and your RevenueCat app ID, then paste the webhook URL into RevenueCat.
  • Make a sandbox purchase through an affiliate link. The RevenueCat page shows whether it would have credited the affiliate, and sandbox events never create commission.

When to use Apple notifications instead

If your app calls StoreKit 2 directly for purchases, set the Attribloom token as the appAccountToken and forward App Store Server Notifications v2 to Attribloom. Attribloom verifies Apple's signature chain independently. RevenueCat can still receive its own copy of the notifications, and the two consumers do not conflict.

Sources and verification

Primary documentation last checked on 2026-09-23. Each source below links the exact page and its own last-checked date.

Next steps

Frequently asked

Does Attribloom have a native RevenueCat integration?

Yes. Connect RevenueCat under Integrations with the webhook signing secret and your RevenueCat app ID. Attribloom credits purchases and renewals from RevenueCat's events and claws back refunds, and RevenueCat stays the entitlement source of truth.

Why not set the Attribloom token as the appAccountToken?

RevenueCat's SDK sets the appAccountToken from its own App User ID when that ID is a UUID, so the token your app sets may never reach Apple. A customer attribute travels with every RevenueCat event instead.

Where does the token come from?

From Attribloom's bind endpoint, which mints it against a specific affiliate from their link or referral code. Your app must not invent its own UUID, because a self-generated token attributes to no affiliate. The attribute can also carry the affiliate's referral code directly.

In the glossary

Continue reading

App Store attribution

How to attribute App Store subscriptions to an affiliate

App Store attribution

Why iOS affiliate installs are invisible to web attribution tools

Shopify attribution

How to attribute Shopify sales to affiliates without third-party cookies

Pricing models

Commission-only vs revenue-share affiliate programs

App Store attribution

How to validate App Store attribution before release

Payouts

How commission holds and clawbacks protect an affiliate program

iOS program launch

How to start an affiliate program for an iOS app

Shopify program launch

How to launch a Shopify affiliate program

Program economics

Affiliate commission rates: 2026 benchmarks by industry and how to set yours

Program policy

Affiliate program agreement template (2026): full contract and clause guide

Creator strategy

AI UGC vs human creators for affiliate marketing

Custom attribution

How signed conversion postbacks and refunds work

App Store attribution

How to attribute App Store subscription renewals to an affiliate

App Store attribution

Affiliate-aware paywalls on iOS: pass referral context without fingerprinting

App Store attribution

iOS affiliate tracking without an SDK: StoreKit 2, appAccountToken, and server notifications

App Store attribution

SKAdNetwork vs affiliate attribution for iOS subscriptions

Shopify attribution

How to run a Shopify affiliate program without editing your theme

Shopify attribution

Shopify affiliate link tracking with cart attributes: a theme.liquid recipe

Compliance

FTC affiliate disclosure: the complete 2026 guide (rules, examples, placement)

Attribution concepts

What is deferred deep linking? A plain-English guide for attribution
Get startedSee pricingMore articles