SmartLynx logo

SmartLynx

Mobile Docs
— · —

Deep links, deferred deep links and attribution

One SmartLynx link can do the work of three link types. It opens your app with context, sends people who have not installed it yet to the right app store, and records where each install came from. You add the SDK to your app; we run the backend.

Deep links (universal links and app links)

A deep link opens your app with information carried in the link. A user makes a reservation on your website, then taps a link to open your app. The reservation number, and any other fields you choose, travel in the link’s query string, so the app opens straight to the right screen.

Example: https://apps.smartlinks.mobi/mybrand?reservation=A12B34 opens the app and hands it reservation=A12B34. On iOS this uses universal links and on Android it uses app links. We generate and host the verification files for both (apple-app-site-association and assetlinks.json) when you set up your link set. You can also hide the parameters behind a short link.

Deferred deep links

A deferred deep link does everything a deep link does, even when the app is not installed yet. The usual app-open path is lost when someone has to detour through an app store, and a deferred link carries the context across that detour.

  1. The user taps your link without the app installed. The page they land on records the visit and sends them to the Apple App Store or Google Play, depending on their device.
  2. They install and open the app.
  3. On that first launch your app calls checkForLink. The SDK asks our server whether a recent visit from this device matches, and if so it returns the same link, with all its parameters, so your app can show the right screen straight away.

Because the link comes from matching a recent visit rather than from the operating system, the SDK reports a confidence value with each result. See the confidence table on the iOS and Android tabs for the exact values. Deferred links are similar to what many teams used with Firebase Dynamic Links, which has been discontinued.

What your app receives

Both SDKs call you back once with a result that holds the full link (including every query parameter), a confidence value, an open count, and a linkType:

  • universal — the app was opened by tapping the link.
  • deferred — first launch after an install that followed a link visit.
  • previous_universal / previous_deferred — a later launch with no new link, where the stored result from earlier is returned immediately.
  • none — no link is known for this device.

Only the first checkForLink on a device waits for the server. After that, answers come from the device immediately, and the server is still contacted in the background so tracking keeps working.

Marketing attribution

Any query parameter starting with utm_ (for example utm_source=newsletter) is recorded when the link is tapped. Your dashboard then shows which sources, mediums and campaigns bring clicks and installs. Because deferred links survive the app store detour, the source of a brand-new install is still known. Turn on Attribution Links in Setup to use this.

What you need to do

  1. In Setup, tick iOS and/or Android and enter your bundle ID and Team ID, or package name and SHA-256 fingerprint. Copy your mobile API key from there.
  2. Add the SDK and the one-time platform configuration (associated domain on iOS, intent filter on Android) by following the iOS or Android tab.
  3. Call checkForLink at launch and when a link opens your app, then use the result to navigate.
  4. Build your links from the Link builder or by hand: https://apps.smartlinks.mobi/yourbase?your=params. Unless you want short URLs, you never need to call an API to create links.

Optional extras: short links to hide long parameter strings, and remote logging to stream your app’s log lines to the dashboard while you test.