Introduction
Deep linking enables users to be redirected to specific content within a mobile application when they click on a link. It provides a seamless transition between web and app environments, enhancing user experience and conversion potential. In mobile contexts, a deep link can take users directly to a screen or feature within the app. When a user taps one of these links, the mobile operating system (iOS or Android) launches the app and navigates to the desired content. At Criteo, Offsite Retail Media for App currently supports the following deep linking methods:- Universal Links on iOS,
- App Links on Android.
Universal Links (iOS) & App Links (Android)
Apple introduced Universal Links in iOS 9 to replace custom URI schemes, avoiding conflicts between apps sharing the same scheme and providing secure, web-compatible redirection. Similarly, Android App Links, introduced in Android 6.0, offer an equivalent mechanism on Android. Both systems rely on HTTPS URLs and allow a fallback to the mobile website if the app is not installed. Example:Deep Linking in Criteo Ads
Deep linking configuration depends on the type of ad being delivered.Dynamic Ads
Dynamic Ads use Criteo’s Product Recommendation Engine to optimize engagement and conversions. Deep links may vary by banner zone:Zone | Description | Requirement |
|---|---|---|
Logo Zone | Contains advertiser branding (typically top-left). Redirects to the app’s main screen. | Mandatory:Universal/App Link to main screen. |
Product Zone | Displays products from the catalog. Redirects to product detail screens. | Mandatory:Product-specific Universal/App Link. |
Coupon Zone | Optional area showing discounts or special offers. | Optional:Universal/App Link to main or promotional screen (e.g., category or search page). |
Static Ads
Static Ads have fixed creative content and a single redirection target. Requirement:- Mandatory: One Universal Link or App Link that opens the app and navigates to either the main screen or a specific landing page.
Video Ads
Requirement:- Mandatory: One Universal Link or App Link that opens the app and navigates to either the main screen or a specific landing page.
Setting Up Deep Linking for iOS Apps
Universal Links Configuration
To configure Universal Links for iOS:- Add your link’s domain to the app’s Associated Domains in Xcode.
- Host an Apple App Site Association (AASA) file on the corresponding domain.
- Must be a valid JSON file (no
.jsonextension in the URL). - Includes your app’s App ID and the paths that should (or should not) trigger redirection.
Setting Up Deep Linking for Android Apps
App Links Configuration
To configure Android App Links:- In your app’s
AndroidManifest.xml, define an intent filter to specify which URLs your app should handle. - Host a Digital Asset Links file (
assetlinks.json) on the same domain as the URLs.
assetlinks.json file must contain:
- The package name declared in your
build.gradlefile. - The SHA256 fingerprint of your app’s signing certificate.
assetlinks.json file:
Summary
Platform | Supported Method | Fallback | Required Configuration |
|---|---|---|---|
iOS | Universal Links | Mobile Web | AASA file + Associated Domains |
Android | App Links | Mobile Web |
|