Introduction
Welcome to the documentation page for Affise Attribution Library. This library is designed to help developers integrate Affise attribution system into their applications.
Installation
To add Affise Attribution Library to your project, follow these steps:
- Install the library via your preferred package manager (CocoaPods, Carthage, or Swift Package Manager).
- Import the library into your project.
- Initialize the library with your API key and other required parameters.
- Perform attribution actions within your application.
Usage
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:
- Create an instance of the
Conversion
class. - Set the necessary parameters for the conversion (such as affiliate ID, offer ID, and conversion amount).
- Call the
trackConversion()
method of theConversion
instance.
2. Retrieve Attribution Data
If you need to retrieve attribution data for a specific conversion, you can follow these steps:
- Create an instance of the
Attribution
class. - Set the conversion ID or any other relevant parameters.
- Call the
getAttributionData()
method of theAttribution
instance. - 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:
- Create an instance of the
CustomEvent
class. - Set the event name and any other relevant parameters.
- Call the
trackEvent()
method of theCustomEvent
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.
Conclusion
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.