Overview
With a cross-platform landing page running the AppsFlyer Smart Script, you can perform web-to-app attribution. This means you can attribute installs on any platform to ads displayed on web.
The Smart Script in a cross-platform landing page uses the incoming link (the link on the web ad) to do 2 things that ensure the original media source and web ad are attributed with the install:
- Create a cross-platform OneLink link that sends an impression to AppsFlyer.
- Create direct attribution links for each app/platform.
Setup
SCOPE OF WORK
|
Who's involved
|
|
Prerequisites
|
Create cross-platform impression link
To create a cross-platform OneLink link that sends an impression to AppsFlyer:
-
Map incoming link parameters to the parameters that the impression link should contain (for media source, campaign, ad name, etc.).
- Learn more about arguments in the script that process the incoming URL.
- The value of the OneLinkURL argument is the domain+ID of the OneLink template with cross-platform attribution enabled.
- Tell your developer to initialize the Smart Script arguments and call the Smart Script method
generateOneLinkURL. See developer demo and instructions.
Note: Theaf_xplatform=trueparameter is mandatory to enable cross-platform attribution.
Create direct attribution links
- Map incoming link parameters to the parameters that the outgoing direct attribution links should contain (media source, campaign, ad name, etc.). Learn more about arguments in the script that process the incoming URL.
-
Tell your developer to initialize the Smart Script arguments,and run the Smart Script method
generateDirectClickURLto create a link for each platform/app. See developer demo and instructions.
Note: The developer should add the following parameters:
Parameter/Argument Remarks Record your responses (for you or your developer to use) platform A string describes the platform and must be from this list: - smartcast
- tizen
- roku
- webos
- vidaa
- playstation
- android
- ios
- steam
- quest
- battlenet
- nativepc
app_id - App ID
- Example: 123456
redirectURL - The URL to which the platform/app user should be redirected.
- Example:
https://store.steampowered.com/app/123456/Team_Fortress_2/