Integration with AppsFlyer
Glossary
Refer to the AppsFlyer documentation for more information about the platform.
Refer to the Android documentation or Apple documentation for more information about the application ID.
webAppId
field in web events.User’s actions in Web Shop are also considered in-app events in the case of S2S integration and sent to AppsFlyer from the Xsolla back end.
Refer to the AppsFlyer documentation for more information about Dev key.
Integration scenarios
AppsFlyer and Xsolla support the following types of integrations:
- Mobile application S2S integration — allows completion of full LTV and ROAS measurement for the purchases within the application and on the Web Shop.
Xsolla sends information about purchases in Web Shop to AppsFlyer as mobile in-app events, which AppsFlyer then attributes to the number of mobile application instalments, user acquisition and re-engagement campaigns.
- Web SDK integration — allows you to measure and evaluate the effectiveness of user acquisition and retargeting campaigns for attracting traffic to the Web Shop.
Web SDK integration allows assessment of how many users came to the site through a retargeting campaign and the conversion of channels leading to the site. Xsolla sends information about purchases in Web Shop to AppsFlyer as web events, which AppsFlyer attributes to the corresponding media source, campaign, advertising set, and advertisement that led the user to the purchase.
You can configure Web SDK integration with AppsFlyer to get advanced event analytics if you:
- use AppsFlyer Measurement Platform and have enabled People-Based Attribution for the account
- use Xsolla Site Builder
The following events are available via the Xsolla and AppsFlyer Web SDK integration:
Event | Description |
---|---|
load | Site visit event, including URL parameters that contain the source information where the user is coming from, and a AppsFlyer web ID, which is stored in a first-party cookie. |
identify | Login event, including the AppsFlyer web ID and CUID. |
event | Item purchase event, including the AppsFlyer web ID and CUID. |
How it works
Below is a scenario of system interaction when implementing a user acquisition and retargeting campaign. The user goes through advertising banners to the Web Shop and makes a purchase. The set of events that are sent to AppsFlyer in this process allows us to see:
- which users, in what quantity and from which banner came over
- how much they paid
- whether the retargeting campaign was effective
- AppsFlyer group of parameters such as
pid
,c
,af_c_id
,af_adset
,af_adset_id
,af_ad
,af_ad_id
, to get ad-level (creative level) reporting in AppsFlyer. - Configure the
pid
parameter according to how you want to display each media source in AppsFlyer. For example, you can usepid=google
orpid=googleadwords_int
, depending on how you want to classify and track different traffic sources.
- The user clicks on the advertisement campaign banner.
- The user is redirected to the Web Shop, and the URL of this transition includes the AppsFlyer group of parameters, specifying from which banner and website the user was directed.
- An event about the visit is sent from the client side of the Web Shop to AppsFlyer.
- The user logs into the Web Shop using CUID.
- The authorization event is sent to AppsFlyer.
- The user makes a purchase in the Web Shop.
- The purchase event is sent to AppsFlyer.
How to set up in AppsFlyer
Before you start, configure the following settings in the AppsFlyer platform:
- Add an application:
- Click
Add app . - In the list, select the
Web (PBA) platform. - As an application URL, specify the domain of your Web Shop, e.g.,
https://www.webshop.example.com/
. - Specify an application name, e.g.,
Xsolla
. - Click
Add my app .
- Click

- Add a bundle:
- Click
Add bundle . - Specify
Xsolla-bundle
as a name. - In the list of web-applications, select
Xsolla that you added before. - Click
Create bundle .
- Click
How to set up in Publisher Account
- Open your project in Publisher Account.
- Go to site builder using one of these methods:
- In the side menu, click Site Builder.
- In the side menu, click Integrations. In the section that opens:
- Click the AppsFlyer pane.
- In the Web SDK (Site Builder) pane, click Configure.
- Select your site and click Configure.
- On the Site settings tab, go to the Apps section.
- In the AppsFlyer pane, click Connect.
- In the AppsFlyer Dev Key field, enter the developer key. You can find this information in your account in AppsFlyer:
- Go to the
My Apps section. - Click
View brand bundles . - In the line of the
Xsolla-bundle brand bundle, click the copy icon in theWeb dev key column.
- Go to the
- Click Connect.

To find information about events in your account in AppsFlyer:
- Go to the
My Apps section. - In the
Available Apps section, choose theXsolla app and clickView in PBA .
You can also see the analytics events in the

Found a typo or other text error? Select the text and press Ctrl+Enter.