Install SDK
The Airbridge Unity SDK can be installed using the method below. After installation, you can confirm whether the SDK has been properly installed through the Unity SDK Test. Depending on policies and environments, restrictions on collecting device IDs like GAID and IDFA may be required. When installing the Restricted SDK version, the device IDs are not collected.- Unity Package Manager
- Manual installation
- In Unity, click Window > Package Manager from the top menu.
- Click the + button in the upper-left corner of the Package Manager window.
- Add package from git URL…
- Enter the following URL and click Install.
Initialize SDK
Enter the correct App Name and App Token values in the SDK Settings window. The App Name and App Token can be found on the [Settings]>[Tokens] page in the Airbridge dashboard.Configure SDK settings
Select [Airbridge]>[Airbridge Settings] from the top menu bar in Unity to open the SDK settings window. You may fill in the fields or click on the checkboxes that are necessary for your service.AB180 > Airbridge Settings from the top menu bar in Unity.Configuring SDK settings per build setting
Configuring SDK settings per build setting
References for configuring the SDK settings
References for configuring the SDK settings
Configure ATT prompt
- Prepare the text you will use in the ATT prompt.
- Provide the ATT prompt following this guide provided by Apple.
- If the install event is not collected, the Airbridge React Native SDK delays collecting install events for 30 seconds until the user allows tracking each time the app is launched. If the user exits the app before deciding whether to allow tracking, the SDK will not collect the install event and will try again at the next app launch.
iOS Tracking Authorize Timeout Seconds to set a sufficient delay time for collecting install events. The default value is 30 seconds, and it can be set to up to 3600 seconds (1 hour).
Opt-in setup
Auto Start Tracking Enabled in the SDK settings to false, call the StartTracking function at the point of time when you can collect events. The SDK will start collecting events when the startTracking function is called.
Opt-out setup
Auto Start Tracking Enabled in the SDK settings to true, call the StopTracking function at the point of time when you can no longer collect events. The SDK will stop collecting events when the stopTracking function is called.
SDK Signature
sdkSignatureSecret.
Deep Linking
Deep linking allows you to redirect users from ads to specific locations within your app. The data collected from the tracking link enables you to monitor the performance of the deep link in Airbridge.How Airbridge Deep Links work
When a user clicks on the Airbridge tracking link, the scheme deep link embedded in the tracking link is converted into an Airbridge Deep Link, which can be either an HTTP deep link or a scheme deep link. This Airbridge Deep Link redirects the user to the desired app location. Then, the Airbridge SDK converts the Airbridge Deep Link back to the original scheme deep link embedded in the tracking link and passes it to the app.- Example scheme deep link embedded in the tracking link: YOUR_SCHEME://product/12345
- Examples of Airbridge Deep Links
- HTTP deep link format 1:
https://YOUR_APP_NAME.airbridge.io/~~~ - HTTP deep link format 2:
https://YOUR_APP_NAME.abr.ge/~~~ - Scheme deep link format: YOUR_SCHEME://product/12345?airbridge_referrer=~~~
- HTTP deep link format 1:
Set up deep linking
For the deep linking setup, the following information is required.- Deep link information submitted in the Airbridge dashboard
- In-app location address for user redirection
How to enter the deep link information into Airbridge dashboard
How to enter the deep link information into Airbridge dashboard
iOS
- iOS URI scheme: The Airbridge Deep Link is converted to a scheme deep link using the iOS URI scheme.
- iOS App ID: The universal link domain of the Airbridge Deep Link is set using the iOS App ID.
Android
- Android URI scheme: The Airbridge deep link is converted to a scheme deep link using the Android URI scheme. This information is necessary for the App Link and URI scheme.
- Package name: This is the Android app identifier necessary for the App Link and URI scheme.
- Android sha256_cert_fingerprints: This is used for setting the App Link domain. This information is necessary for the App Link.
iOS
- Navigate to [Tracking Link]>[Deep Links] in the Airbridge dashboard.
- Enter the iOS URI scheme in the iOS URI Scheme field. Include
://. For example, if the iOS URI scheme isdemo, enterdemo://. - In the Apple Developer Dashboard, navigate to [Identifier] of the app you want to set up the deep link. Find the App ID Prefix and Bundle ID.
- The iOS App ID is in the format of
App ID Prefix+ . + Bundle ID. Enter the iOS App ID into the iOS App ID field. For example, if the App ID Prefix isprefixand the Bundle ID isexample, the iOS App ID isprefix.example.
Android
For apps that use Google Play’s Play App Signing, Google’s servers re-sign the APK after the developer uploads it. This changes the Android sha256_cert_fingerprints, so you must register the final signing value from the Google Play Console—not from your local keystore—for App Links to work correctly. Register the Android URI scheme, package name, and Android sha256_cert_fingerprints in Airbridge according to your signing method.- Play App signing
- using original key
- Naviagate to [Tracking Link]>[Deep Links] in the Airbridge dashboard.
- Enter the Android URI scheme into the Android URI Scheme field. Include
://. For example, if the URI scheme isdemo, you must enterdemo://. - Enter the package name in the Package name field.
- Go to the Google Play Console and select your app.
- Navigate to [App integrity].
- Copy the SHA-256 certificate fingerprint from the App signing key certificate section.
- App signing key certificate ← Use this value
- Upload key certificate ← Do NOT use this value
- Enter the SHA256 value into the sha256_cert_fingerprints field.
- App launch with Airbridge Deep Links
- Airbridge Deep Link event collection
- User redirection with Airbridge Deep Links
Enable app launch with Airbridge Deep Links
Enable app launch with Airbridge Deep Links
iOS
In the SDK settings, enter the iOS URI scheme that you entered on the [Tracking Link]>[Deep Links] page in the Airbridge dashboard into theiOS URI Scheme field. The Universal Link domain will be automatically set up using the App Name value in the SDK settings.Android
In the SDK settings, enter the Android URI scheme that you entered on the [Tracking Link]>[Deep Links] page in the Airbridge dashboard into theAndroid URI Scheme field. The App Name value will be used to set up the App Links automatically.Enable Airbridge Deep Link event collection
Enable Airbridge Deep Link event collection
iOS
In Unity Engine 2022.3.72 and later, SceneDelegate events are collected automatically. In Unity Engine versions earlier than 2022.3.72, deep links are collected through the AppController AppDelegate (Assets/Plugins/Airbridge/iOS/Delegate/AUAppController.mm). If you use a custom AppDelegate, add the following code to your custom AppDelegate.Android
The Airbridge Unity SDK uses Android Activity (Assets/Plugins/Airbridge/Android/java/co/ab180/airbridge/unity/AirbridgeActivity.java). If you are using a custom Activity, add the following code.Redirect the user through the collected Airbridge Deep Link
Redirect the user through the collected Airbridge Deep Link
- When the Airbridge Deep Link is executed, it is converted into a scheme deep link and passed to the
onDeeplinkReceivedcallback. And if a deep link that is not an Airbridge Deep Link is executed, it is passed to the callback without being converted. - Use the received deep link to redirect the user to the intended destination.
Set up deferred deep linking
When a user clicks on a tracking link with deferred deep linking capabilities and the app is not installed on the device, the Airbridge SDK collects the deep link as follows.How the Airbridge SDK collects deferred deep links
How the Airbridge SDK collects deferred deep links
- The
Airbridge.startTrackingfunction is called with the opt-in settings in place. Or, opt-in has not been set. - The user’s response to the ATT prompt has been determined. Or, the event collection delay time configured regarding the ATT prompt has expired.
Set up custom domain
- Enter the custom domain address into the Airbridge dashboard by referring to this article
- In the SDK Settings, enter the custom domain address in the
Custom Domainand clickAdd URL.
In-app Events
The Airbridge SDK collects user actions from the app as per settings and sends them as in-app events.Send in-app events
Airbridge.TrackEvent function must be called to send events. Refer to the information below about the required Airbridge.TrackEvent function components and their types.
Event Category
Event Category
Attributes
Attributes
- Action, Label: Collect information that can be used as GroupBys in the Airbridge reports
- Value: Collect information that can be used for sales analysis. Airbridge can perform calculations using the collected data.
- Semantic Attribute: Collect predefined attributes by Airbridge.
- Custom Attributes: Collect attributes defined by Airbridge users.
Airbridge.TrackEvent function, you can enter Action, Label, Value, and Semantic Attributes using the semanticAttributes parameter and Custom Attributes using the customAttributes parameter.The semantic attributes predefined by Airbridge can be found in the user guide below.Refer to the example below.- JSON types: String, Number, Boolean, Object<String, JSON>, Array<JSON>
- Types that cannot be used in semantic attributes and custom attributes: Struct, Class, etc.
Event Category of Standard Events provided by the SDK (AirbridgeCategory)
Event Category of Standard Events provided by the SDK (AirbridgeCategory)
Semantic Attributes provided by the SDK (AirbridgeAttribute)
Semantic Attributes provided by the SDK (AirbridgeAttribute)
Additional in-app event settings
Configure in-app event sessions
Configure in-app event sessions
Session Timeout Seconds up to 604,800 seconds (7 days).Configure in-app event transmission frequency
Configure in-app event transmission frequency
Event Transmit Interval Seconds to modify it to a maximum of 86,400 seconds (1 day).Configure in-app event storage
Configure in-app event storage
Buffer Count Limit, and to limit the storage size of the SDK, use the Event Buffer Size Limit In Gibibyte.Clear unsent in-app events
Clear unsent in-app events
Clear Event Buffer On Initialize Enabled to true to activate the event deletion option.Configure device IDs
Configure device IDs
Example codes
Airbridge collects in-app events that are classified as Standard Events and Custom Events. Standard Events are events predefined by Airbridge. Refer to the example codes below.Sign Up, Sign In, Sign Out, Home viewed, Product list viewed
Sign Up, Sign In, Sign Out, Home viewed, Product list viewed
Sign Up
Sign In
Sign Out
Home viewed
Product list viewed
Search result viewed, Product viewed, Add payment info, Add to wishlist, Add to cart
Search result viewed, Product viewed, Add payment info, Add to wishlist, Add to cart
Search result viewed
Product viewed
Add payment info
Add to wishlist
Add to cart
Initiate checkout, Order completed, Order canceled, Start trial, Subscribe, Unsubscribe
Initiate checkout, Order completed, Order canceled, Start trial, Subscribe, Unsubscribe
Initiate checkout
Order completed
Order canceled
Start trial
Subscribe
Unsubscribe
Add impression, Ad click, Complete tutorial, Achieve level, Unlock achievement
Add impression, Ad click, Complete tutorial, Achieve level, Unlock achievement
Add impression
Ad click
Complete tutorial
Achieve level
Unlock achievement
User Data
Airbridge sends user data along with events. User data allows for a more accurate ad performance measurement.Set User ID
User IDs refer to the user identifier used in a service. User IDs should be unique IDs that can identify unique users across websites and apps.Send additional user information
Hash user information
WhenUser Info Hash Enabled is set to false in the SDK settings, user emails and phone numbers are passed without being hashed. The default setting is true.
Clear user data
You can reset user information with theAirbridge.clearUser function.
Include User Information in Install/Open Events
The SDK automatically sends install and open events immediately after the app launches. Therefore, if you call user information functions right after the app launches, the user information may not be included in the install/open events depending on the event transmission timing. To ensure user information is included in install/open events, control the timing of event transmission through Opt-In setup. Implement in the following order:- Set the
Auto Start Tracking Enabledoption tofalsewhen Configure SDK settings. - Call user information functions to set user information.
- Call the
startTracking()function to start event collection.
Additional SDK Settings
Follow the instructions below for additional setup.Calculating SKAdNetwork Conversion Value on the Server
By default, the ConversionValue in SKAdNetwork is calculated using the values from the SDK. If you want to measure events collected server-side through SKAN instead of the SDK, set thecalculateSKAdNetworkByServerEnabled option to true.
Restricting Identifier Tracking
Restricting identifiers during SDK initialization
Restricting identifiers during SDK initialization
Tracking Blocklist to specify which identifiers should be blocked. Events collected after this configuration will exclude the specified identifiers.Check the restricted data in the identifier restriction list.Restrict identifiers during SDK runtime
Restrict identifiers during SDK runtime
AllowTrackingItem and BlockTrackingItem functions to set the data to be restricted. The specified identifier items will be excluded or included. This does not affect events that have already been stored.Identifier Restriction List
Identifier Restriction List
AirbridgeTrackingBlocklist.SDK settings by build settings
Use Development Airbridge Settings or Use Production Airbridge Settings option depending on your build setting to configure the SDK accordingly.
If the Use Development Airbridge Settings or Use Production Airbridge Settings option is inactive, the SDK settings are set to the Default settings.
- When the
Use Development Airbridge Settingsis activated and your app is on development build setting, the SDK settings are set to theDevelopmentsettings.
- When the
Use Production Airbridge Settingsis activated and your app is on productino build setting, the SDK settings are set to theProductionsettings.
Integrate Google’s ICM attribution data
Create tracking links within the app
CreateTrackingLink function to create tracking links. Refer to the code examples and the parameter details below.
option parameter in the CreateTrackingLink function to configure tracking link options.
Create trackingLink option
Create trackingLink option
onSuccess callback in the CreateTrackingLink function to pass the AirbridgeTrackingLink.
Create tracking links that launch the app or redirect users to the app store
Create tracking links that launch the app or redirect users to the app store
Create tracking links that launch the app or redirect users to a webpage
Create tracking links that launch the app or redirect users to a webpage
Create tracking links that redirect users to the app store only
Create tracking links that redirect users to the app store only
Create tracking links that redirect users to a webpage only
Create tracking links that redirect users to a webpage only
Receive Airbridge Deep Links only
The deep links passed through theAirbridge.SetOnDeeplinkReceived method of the Airbridge Unity SDK include not only Airbridge Deep Links but also deep links from other solutions.
Is Handle Airbridge Deeplink Only to true in the SDK settings, only Airbridge Deep Links will be passed to the onDeeplinkReceived callback. In this way, you can handle the deep links from other solutions separately from the Airbridge Deep Links.
Use tracking links within the app
Depending on how the link is opened, it may be difficult to properly use the tracking link of the app in-app. By using theAirbridge.Click function or the Airbridge.Impression function, you can properly use the tracking link without going through an external browser.
When the user clicks a tracking link within the app
When the user clicks a tracking link within the app
Airbridge.Click function. Depending on the tracking link settings, the scheme deep link is passed, or the user is redirected to the app store or website.When the user views a tracking link within the app
When the user views a tracking link within the app
Airbridge.Impression function. Calling this function collects Impression event data.Get Attribution Results
Airbridge.SetOnAttributionReceived function.
When the attribution result exists
When the attribution result exists
attributedChannel contains information about the ad channel to which the ad performance is attributed.The attribution results are passed to the callback within 1 minute after SDK initialization. If the app is closed before the attribution result is passed, the previous attribution results will be passed to the callback within 1 minute the next time the app is launched. Depending on network conditions and other factors, there may be a delay of up to 5 minutes.When no attribution result exists (Organic)
When no attribution result exists (Organic)
Tracking Deeplink Opens with Push Notifications
Airbridge.trackDeeplink function.
iOS
Add the code below to your custom AppDelegate.Android
On Android, this is collected automatically, so no setup is required.Track only Airbridge Deep Links
The Airbridge SDK collects deep link events when the app is opened through a deep link, even if the deep link is not an Airbridge Deep Link. ConfigureTrack Airbridge Link Only in the SDK Settings to true to collect deep link events only if the app is opened through an Airbridge Deep Link and prevent unnecessary event collection.
Collect in-session lifecycle events
The Airbridge SDK collects Open and Foreground events that initiate a new session. These events are not collected during an ongoing session. By configuring theTrack In Session Life Cycle Event Enabled in the SDK settings to true, the Open and Foreground events can be collected during ongoing sessions.
All collected Foreground events are recorded as Open events.
Compliance with Google DMA
To comply with the Digital Markets Act (DMA), the user consent data must be sent to Airbridge. For more information about the DMA and whether it applies to your service, refer to the Airbridge user guide.Collecting user consent data through consent management platforms
Collecting user consent data through consent management platforms
- In the SDK settings, set
Collect TCF Data EnabledtotrueandAuto Start Tracking Enabledtofalse.
- After the user consent data is stored in the consent management platform, call the
StartTrackingfunction.
Collecting user consent data using the Airbridge.SetDeviceAlias function
Collecting user consent data using the Airbridge.SetDeviceAlias function
- Check the location of the users who launched the app. If their location is within the EEA, check whether the user consent data has been previously collected. If not, user consent data collection is not required.
- Configure the
Auto Start Tracking Enabledin the SDK settings tofalse.
- If no user consent data has been collected previously, you may collect the data using a prompt or other means. The user consent data fields that need to be collected are
adPersonalization,adUserData.
eea) to the Airbridge SDK using the Airbridge.SetDeviceAlias function.- After the user consent data and the user location data are sent to the Airbridge SDK, call the
StartTrackingfunction.
Set up Meta deferred app links
Follow the steps below to use deferred deep linking in Meta ads. The Airbridge SDK collects the Meta deferred app links before the Airbridge deferred deep links. If there are no Meta deferred app links, the Airbridge deferred deep links are collected. Note that Meta does not support Meta deferred app links for SKAdNetwork campaigns.- Install the Facebook SDK by referring to the Meta ads documentation for Unity.
- Configure the
Facebook Deferred App Link Enabledin the SDK settings totrue.
Initialize the Airbridge SDK with all functions disabled
SDK Enabled in the SDK settings to false, the SDK can be initialized with all functions disabled.
You can also check the activation status of the Airbridge SDK and enable or disable all functions, as in the following example.
Set up Meta Install Referrer collection
To collect the Meta Install Referrer, enter the Meta App ID as the key value forMeta Install Referrer (Facebook App ID) in the SDK settings.
Note that the decryption key must be submitted to the Airbridge dashboard to read the decrypted Meta Install Referrer. Refer to this user guide to learn how to enter the decryption key.
Set up uninstall tracking
Airbridge sends a silent push every day between 3:00 PM and 4:00 PM (UTC) to users who performed an app event at least once in the last 6 months to check if the app has been deleted. You can check the uninstall event in the Airbridge reports and raw data export files. Refer to the article below for the detailed setup instructions.Integrate with third-party solutions
An additional SDK setup is required to integrate with some third-party solutions. It is recommended that you complete this setup before collecting data with the Airbridge SDK. Refer to the articles listed below for integrating with third-party solutions.Third-party platforms integrated with Airbridge
Third-party platforms integrated with Airbridge
SDK logs
The logs provided by the Airbridge SDK are categorized intoDebug, Info, Warning, Error, and Fault levels. The Debug level is the least critical log, while the Fault level is the most critical log.
By default, the Airbridge SDK provides logs at Warning, Error, and Fault levels. By entering a specific log level as the Log Level value in the SDK settings, the logs from that specified level up to the Fault level will be available.