Welcome to the documentation page for Affise Attribution Library. This library is designed to help developers integrate Affise attribution system into their applications.


To add Affise Attribution Library to your project, follow these steps:

  1. Install the library via your preferred package manager (CocoaPods, Carthage, or Swift Package Manager).
  2. Import the library into your project.
  3. Initialize the library with your API key and other required parameters.
  4. Perform attribution actions within your application.


Once you have installed and imported the library into your project, you can start using the Affise Attribution functionality. Below are some common use cases:

1. Track Conversions

To track conversions using the Affise Attribution Library, follow these steps:

  1. Create an instance of the Conversion class.
  2. Set the necessary parameters for the conversion (such as affiliate ID, offer ID, and conversion amount).
  3. Call the trackConversion() method of the Conversion instance.

2. Retrieve Attribution Data

If you need to retrieve attribution data for a specific conversion, you can follow these steps:

  1. Create an instance of the Attribution class.
  2. Set the conversion ID or any other relevant parameters.
  3. Call the getAttributionData() method of the Attribution instance.
  4. Process and display the attribution data as per your application’s requirements.

Custom Events

The Affise Attribution Library also allows you to track custom events. These events can be used to capture various user interactions within your application. Here’s how you can track custom events:

  1. Create an instance of the CustomEvent class.
  2. Set the event name and any other relevant parameters.
  3. Call the trackEvent() method of the CustomEvent instance.

Additional Features

The Affise Attribution Library provides other useful features such as deeplink handling, event deduplication, and callback handling. Refer to the library’s official documentation for more details on implementing these features.


By following the steps and guidelines presented in this documentation, you should be able to integrate the Affise Attribution Library into your application successfully. If you encounter any issues or have further questions, please refer to the library’s official documentation or reach out to our support team for assistance.