RoadwayDocs

Mobile attribution

Roadway doesn't connect to mobile measurement partners (MMPs) directly. Your MMP attributes installs to ad networks and campaigns. You export that user-level data to your warehouse. Roadway reads it and uses it as pre-signup touchpoints for app users.

For this to work, one thing must be true: the user ID you set in the MMP SDK must equal user_id in your Users table. The sections below show how to set it in each MMP.

See Mobile measurement partners for the schema. Talk to Roadway before you set up the export. Roadway confirms the exact tables with you.

How the pieces connect

  1. A person taps an ad, and the MMP records the click and later the install.
  2. The person signs up. Your app calls the MMP SDK to set the user ID to your internal user_id.
  3. The MMP's user-level export now carries that value as custom_user_id on the install and touchpoint rows.
  4. Roadway joins the export's custom_user_id to users.user_id.
  5. Roadway attributes the user to the touchpoint before sign-up, unless the user also has a pre-signup web visit, in which case the web visit wins.

The MMP's device-level IDs aren't used. Installs that happen before you set the user ID are attributed only if your MMP backfills the custom user ID on earlier events. Test this with your vendor.

The identifier by MMP

MMP What the vendor calls it Roadway column
AppsFlyer customer_user_id (CUID) custom_user_id
Adjust Custom user ID, set as a session callback parameter custom_user_id
Branch developer_identity custom_user_id
Singular Custom user ID (custom_user_ids in the export) custom_user_id
Kochava Identity link custom_user_id

Common requirements

  • Set the MMP user ID as soon as the user signs up or logs in, and before the sign-up event is sent.
  • Use the same ID format and casing as users.user_id.
  • Export at user level on a schedule to your warehouse. Aggregated or cohort reports can't be joined to users.
  • Send Roadway the list of partner names and your install and conversion event names.

AppsFlyer

  1. Set the customer user ID after sign-up or login, with your internal user_id. If you can, set it before you start the SDK, so the install event carries it.

    // iOS (Swift)
    AppsFlyerLib.shared().customerUserID = "usr_8421"
    
    // Android (Kotlin)
    AppsFlyerLib.getInstance().setCustomerUserId("usr_8421")
    
  2. Set up a scheduled raw data export of installs and in-app events to your warehouse, through Data Locker or the raw data export.

  3. Map the export columns to Roadway's schema:

    -- Illustrative column names. Check your export.
    SELECT
      customer_user_id AS custom_user_id,
      install_time     AS touchpoint_timestamp,
      platform         AS platform,
      media_source     AS partner,
      campaign         AS campaign_name,
      campaign_id      AS campaign_id,
      af_ad            AS creative_name,
      country_code     AS country
    FROM appsflyer_raw_installs
    WHERE customer_user_id IS NOT NULL;
    

See AppsFlyer's customer user ID documentation and SDK reference.

Adjust

  1. After sign-up or login, add your internal user_id as a session callback parameter, so every later event carries it.

    // iOS (Swift), SDK v4
    Adjust.addSessionCallbackParameter("user_id", value: "usr_8421")
    

    Method names differ between SDK versions, for example addGlobalCallbackParameter on newer SDKs. Check Adjust's session callback parameters for your version.

  2. Export user-level data to your warehouse with that parameter included.

  3. Map the export columns:

    -- Illustrative column names. Check your export.
    SELECT
      user_id_param AS custom_user_id,
      installed_at  AS touchpoint_timestamp,
      os_name       AS platform,
      network_name  AS partner,
      campaign_name AS campaign_name,
      campaign_id   AS campaign_id
    FROM adjust_installs
    WHERE user_id_param IS NOT NULL;
    

Branch

  1. After sign-up or login, set the identity to your internal user_id:

    // iOS (Swift)
    Branch.getInstance().setIdentity("usr_8421")
    
    // Android (Kotlin)
    Branch.getInstance().setIdentity("usr_8421")
    

    See Branch's documentation on setting a user identity.

  2. Export user-level data to your warehouse with Daily Exports or Data Feeds. Events carry user_data_developer_identity.

  3. Map the export columns:

    SELECT
      user_data_developer_identity                 AS custom_user_id,
      timestamp                                    AS touchpoint_timestamp,
      user_data_os                                 AS platform,
      last_attributed_touch_data_tilde_channel     AS partner,
      last_attributed_touch_data_tilde_campaign    AS campaign_name,
      last_attributed_touch_data_tilde_campaign_id AS campaign_id
    FROM branch_install_events
    WHERE user_data_developer_identity IS NOT NULL;
    

Singular

  1. After sign-up or login, set the custom user ID to your internal user_id with the SDK's custom user ID setter. See Singular's SDK repositories.
  2. Export user-level attribution data to your warehouse on a schedule. Each row carries your user ID in custom_user_ids.
  3. Tell Roadway the export's dataset and table.

Kochava

  1. In the Kochava SDK, set an identity link with your internal user_id as the value. See Kochava's support documentation.
  2. Export user-level attribution data to your warehouse on a schedule.
  3. Tell Roadway the export's dataset and table.

How Roadway assigns app touchpoints

  • Channels. Your UTM rules apply first. Then the partner mapping agreed with Roadway assigns a channel. Otherwise the raw partner name is used, or Mobile - Unmapped.
  • Campaigns. Roadway looks campaigns up by campaign_id.
  • App events. An optional App Events table can carry in-app conversions.

Verify

In your warehouse, compare the share of touchpoints with a matching users.user_id to the share of users who signed up in the app. The two should be close.

Troubleshooting

Symptom Likely cause
The user ID is empty on installs The ID is set after the install event. Installs before login join to a user only if the export backfills the ID
IDs don't match users.user_id The app sets a different ID, such as an email or a UUID with different casing