Cross-platform landing pages with Smart Script

At a glance: Use a cross-platform landing page running the AppsFlyer Smart Script to perform web-to-app attribution. Meaning, convert users who see a web ad from any media source into app users on CTV, PC, console, or mobile platforms.

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

  • Advertiser:
    • Decides what the outgoing cross-platform impression and direct attribution links should contain based on the arguments in the Smart Script. This determines the attribution data that gets appended to the outgoing URL, either by manipulating the incoming URL or by forcing certain values.

    • Makes sure all campaigns leading to the website have incoming URLs with parameters that the script can process.
    • Tests the Smart Script
  • Web developer:
    • Adds the arguments to the script and implements the Smart Script on the landing page.
    • Tests the Smart Script.

Prerequisites

  • An AppsFlyer account with at least one app.
  • For the impression URL: A OneLink template with cross-platform attribution enabled.

Create cross-platform impression link

To create a cross-platform OneLink link that sends an impression to AppsFlyer:

  1. 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 parameter is the domain+ID of the OneLink template with cross-platform attribution enabled.
  2. Tell your developer to initialize the Smart Script arguments and call the Smart Script method generateOneLinkURL. See developer demo and instructions.
    Note: The af_xplatform=true parameter is mandatory to enable cross-platform attribution.

Create direct attribution links

  1. 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.
  2. Tell your developer to initialize the Smart Script arguments,and run the Smart Script methodgenerateDirectClickURL to 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/