Follow these steps to create trackable deep links to enable opens from emails:
For more information on what deep links are and how to add them to your mobile campaigns, see Deep link tracking in mobile campaigns.
The first task here is to enable HTTPS on your existing link domains. You should also add certificates to them.
Ask your Emarsys representative to handle the certificates and the key file(s).
It is essential that the private key remains private! Therefore, keys should be encrypted before sending. The key and the password should ALWAYS be sent on different channels, e.g. email and phone.
Now, you should provide JSON configuration files to these link domains, which create the direct relationship with the apps. These files are checked at app install. For more information, check here for iOS and here for Android.
You should add the link domain as a secure domain in the app.
- For iOS, the
com.apple.developer-associated-domainsshould be added as an
appLink. The app will receive the URL as an activity. For more information, read the iOS documentation for Support of Universal Links.
- For Android, an intent should be added with the link domain. For more information, see the Android documentation for creating Intent Handlers.
The next step is using the
UniversalLinks in iOS and the
URL schemes in Android as trackable links in emails.
When the mobile user taps a URL on the phone, the OS checks whether the URL scheme is associated with a certain app or not. If not, it will open the browser by default.
If it is associated, it will open the app.
In order to track deep links with the iOS Mobile Engage SDK, you need to call
MobileEngage.trackDeepLink in your AppDelegate's
The (BOOL) return value of
MobileEngage.trackDeepLink indicates whether the
UserActivity contained a Mobile Engage email deeplink and whether it was handled by the SDK.
The first parameter is the
UserActivity that comes from the AppDelegate’s
The second parameter is optional, it is a closure/block that provides the source Url that was extracted from the
For more information, read the relevant iOS documentation.
Android Mobile Engage SDK automatically handles deep link tracking with most use cases, with only one exception: manual tracking is needed when your Activity has
onNewIntent overriden. In that case, you can track the deep link in the following way:
See the Mobile Engage sample app Android Manifest on intent filter decralation.
For more information, read the relevant Android documentation.