For the complete documentation index, see llms.txt. This page is also available as Markdown.

Integrate with AppsFlyer for Advocate Programs

Tip: We recommend testing your AppsFlyer integration on a mobile device, not a desktop, to ensure you see the most accurate and updated information.

1

Activate Advocate as an integrated partner

Advocate is an AppsFlyer Integrated Partner (partner id: saasquatch_int). To begin, you must activate the partner integration from your dashboard.

  1. Select Integrated Partners from the left sidebar menu.

  2. Search for the code SaaSquatch.

  3. Select the SaaSquatch partner and enable the Activate Partner toggle.

  4. Select Save Integration.

2

Follow AppsFlyer's documentation to create a:

After creating the OneLink link:

  1. Copy the Long or Short URL.

  2. Replace "CHANGEME" in the link with "saasquatch_int". This is the URL you will add to your Advocate program's integration settings.

For example, if your Long URL is:

https://my-one-link-for-saasquatch.onelink.me/JFlJ?pid=CHANGEME&c=MyCampaign

You will need to use the following URL in your Advocate program:

https://my-one-link-for-saasquatch.onelink.me/JFlJ?pid=saasquatch_int&c=MyCampaign
3

Set up the AppsFlyer integration in impact.com

  1. In your impact.com account, from the top navigation bar, select [User profile]Settings.

  2. Under Advocate Settings, select Integrations.

  3. On the AppsFlyer integration card, select + [Expand].

  4. Select Enable AppsFlyer.

  5. Add your modified Long or Short URL into the AppsFlyer Base Attribution Link field.

  6. Save the integration configuration.

You are now set up to use AppsFlyer with your Advocate program.

4

Update your Mobile App

To access the AppsFlyer deep linking data from within your mobile application, you will need to install the AppsFlyer SDK. The AppsFlyer documentation contains all the steps required to get their SDK setup on your application.

Once set up, you can retrieve the deep link data from AppsFlyer. This data contains information about the referral and can be used to attribute the referral and customize the signup experience for new users.

AppsFlyer may add other parameters depending on how your OneLink is configured. The most important parameter for your referral program is _saasquatch (or the equivalent deep_link_sub1, if you are using Unified Deep Linking). It contains the referral code and share link used for the referral, and is needed for attributing the referral. For more detail on data fields and behavior, refer to the AppsFlyer technical reference.

Here is an example of the referral program data that will be appended to the AppsFlyer OneLink:

{  
  "pid": "saasquatch_int",  
  "c": "saasquatch",  
  "af_web_dp": "http://myReferralLandingPage.com",  
  "deep_link_sub1": "eyJhcHAucmVmZXJyYWxzYWFzcXVhdGNoLmNvbSI6eyJ0ZXN0XzEyMzQ1NjdfQ09ERSI6eyJjb2RlcyI6eyJyZWZlcnJhbCI6IlJFRkVSUkFMQ09ERSJ9LCJjb2Rlc0V4cCI6eyJSRUZFUlJBTENPREUiOjE2Mjk1ODIxOTl9LCJsaW5rcyI6eyJyZWZlcnJhbCI6Imh0dHBzOi8vc3NxdC5jby9temFBMjIifSwibGlua3NFeHAiOnsiaHR0cHM6Ly9zc3F0LmNvL216YUEyMiI6MTYyOTU4MjE5OX19fX0=",  
  "deep_link_sub2": "invite",  
  "deep_link_sub3": "link",  
  "deep_link_sub4": "saasquatch",  
  "deep_link_sub5": "REFERRALCODE",  
  "deep_link_sub6": "UNKNOWN",  
  "deep_link_sub7": "UNKNOWN"  
}

Unified Deep Linking on iOS

Prior to implementing deep linking in your mobile application, be sure to follow the AppsFlyer iOS SDK initial setup documentation to initialize and implement the SDK in your application and read their iOS developer documentation for general information on setting up deep linking within your application.

Once you have followed the steps to set up unified deep linking and configured the AppsFlyer integration in Advocate, referral information will be available in the deep_link_sub1 through deep_link_sub7 params. Below is a modified code example showing how to extract the _saasquatch cookie from the DeepLink data.

Unified Deep Linking on Android

Prior to implementing deep linking in your mobile application, be sure to follow the AppsFlyer Android SDK initial setup documentation to initialize and implement the SDK in your application and read their Android developer documentation for general information on setting up deep linking within your application.

Once you have followed the steps to set up unified deep linking and configured the Appsflyer integration in Advocate, referral information will be available in the deep_link_sub1 through deep_link_sub7 params. Below is a modified code example showing how to extract the _saasquatch cookie from the DeepLink data.

Last updated