Setting up Adapty

To get started, create an Adapty account.

After creating an account, follow the Adapty setup guide, which can be found here.

If you encounter any problems whilst setting up your Adapty account, check out the Adapty Support section for assistance.

Webhook Configuration

To connect Adapty with Insert Affiliate:

  1. In your Insert Affiliate dashboard:

    • Set In-App Purchase Verification to Adapty
    • Copy the Adapty Webhook URL (you'll use this for both production and sandbox)
    • Copy the Adapty Webhook Authorization Header value
  2. In the Adapty Dashboard:

    • Navigate to IntegrationsWebhooks
    • Set Production URL to the webhook URL copied from Insert Affiliate
    • Set Sandbox URL to the same webhook URL
    • Paste the authorization header value into Authorization header value
    • Enable these options:
      • Exclude historical events
      • Send attribution
      • Send trial price
      • Send user attributes
    • Save the configuration

IOS Setup

1. Install Required Packages and Complete Setup

To install the Insert Affiliate Swift SDK, follow the instructions on our GitHub repository.

All code changes required to be made are described in detail with examples within the Github Repository.

Specific changes required by Insert Affiliate for the Adapty setup can be found here.

Android Setup

1. Install Required Packages and Complete Setup

To install the Insert Affiliate Android SDK, follow the instructions on our GitHub repository.

All code changes required to be made are described in detail with examples within the Github Repository.

Specific changes required by Insert Affiliate for the Adapty setup can be found here.

React Native Setup

1. Install Required Packages and Complete Setup

To install the Insert Affiliate React Native SDK, follow the instructions on our GitHub repository.

All code changes required to be made are described in detail with examples within the Github Repository.

Specific changes required by Insert Affiliate for the Adapty setup can be found here.

Flutter Setup

1. Install Required Packages and Complete Setup

To install the Insert Affiliate Flutter SDK, follow the instructions on our GitHub repository.

All code changes required to be made are described in detail with examples within the Github Repository.

Specific changes required by Insert Affiliate for the Adapty setup can be found here.

Verifying Your Integration

To confirm the affiliate identifier is being set correctly in Adapty:

  1. Go to app.adapty.io/profiles/users
  2. Find and select the user who made a test purchase
  3. Look for the Custom attributes section
  4. Verify the insert_affiliate attribute exists with the format: {SHORT_CODE}-{UUID}
    • Example: SAVE20-a1b2c3d4-e5f6-7890-abcd-ef1234567890

If the attribute is missing, ensure you're calling Adapty.updateProfile with the affiliate identifier after it's set by the Insert Affiliate SDK.