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
- A person taps an ad, and the MMP records the click and later the install.
- The person signs up. Your app calls the MMP SDK to set the user ID to your internal
user_id. - The MMP's user-level export now carries that value as
custom_user_idon the install and touchpoint rows. - Roadway joins the export's
custom_user_idtousers.user_id. - 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
-
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") -
Set up a scheduled raw data export of installs and in-app events to your warehouse, through Data Locker or the raw data export.
-
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
-
After sign-up or login, add your internal
user_idas 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
addGlobalCallbackParameteron newer SDKs. Check Adjust's session callback parameters for your version. -
Export user-level data to your warehouse with that parameter included.
-
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
-
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.
-
Export user-level data to your warehouse with Daily Exports or Data Feeds. Events carry
user_data_developer_identity. -
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
- After sign-up or login, set the custom user ID to your internal
user_idwith the SDK's custom user ID setter. See Singular's SDK repositories. - Export user-level attribution data to your warehouse on a schedule. Each row carries your user ID in
custom_user_ids. - Tell Roadway the export's dataset and table.
Kochava
- In the Kochava SDK, set an identity link with your internal
user_idas the value. See Kochava's support documentation. - Export user-level attribution data to your warehouse on a schedule.
- 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 |