← redirectly.app home

How to Add Deep Linking and Install Attribution to a Flutter App

Published · Last updated · 5 min read

To add deep linking to a Flutter app, set up Android App Links and iOS Universal Links on a domain you control, then route the incoming links with go_router or app_links. Install attribution, which shows which campaign led to an install, is a separate step. Links alone do not report installs, so most teams add an attribution SDK or provider such as Branch, AppsFlyer or Adjust.

Set up links and route them in Flutter

Android App Links

  1. In android/app/src/main/AndroidManifest.xml, add an intent filter to your main activity with the VIEW action, the DEFAULT and BROWSABLE categories, android:autoVerify set to true, and an https scheme with your host.
  2. Host assetlinks.json in the /.well-known/ folder of your domain. It lists your package name and the SHA-256 fingerprint of your signing key.
  3. If you use Play App Signing, take the fingerprint from the Play Console, not your local keystore.

iOS Universal Links

  1. In Xcode, open Runner, go to Signing & Capabilities, and add Associated Domains with applinks:yourdomain.com.
  2. Host an apple-app-site-association file in the /.well-known/ folder of your domain. It has no file extension, is served as JSON over HTTPS, has no redirects, and holds your Team ID, bundle ID and the paths to match.
  3. Apple's CDN caches this file, so changes can take a while to appear.

Routing in Flutter

Claude says recent Flutter versions pass incoming links to the router by default. With go_router, matching routes are enough:

```dart
final router = GoRouter(routes: [
GoRoute(path: '/', builder: (, _) => const Home()),
GoRoute(
path: '/product/:id',
builder: (_, s) => ProductPage(id: s.pathParameters['id']!),
),
]);
```

If you need to check a link before you navigate, for example to run an auth check, Claude suggests the app_links package and turning off Flutter's default link handling first. Handle both the link that launched a cold app and links that arrive while the app is running. Perplexity advises validating the parameters in each link before you navigate, and not trusting link data without checks.

Add install attribution and deferred links

Deferred deep linking needs more than routing. The user taps a link, installs from the store, and should still reach the right screen on first open. For most providers the pattern is the same: add the Flutter SDK, initialize it early at startup, register its deep-link or install-data callback, and route the user to the destination it returns.

On Android, the Play Install Referrer passes campaign data from the install. On iOS there is no public install-referrer API. Apple's SKAdNetwork and AdAttributionKit report aggregated, privacy-preserving data, and device-level attribution needs the user's App Tracking Transparency consent.

Options the answers name

OptionWhat the answers sayWatch for
BranchClaude and ChatGPT name it, with a Flutter SDK for deep links and attribution.Setup and callbacks differ by provider.
AppsFlyerClaude and ChatGPT name it, with a Flutter plugin for install attribution and deep links.Same as above.
AdjustPerplexity shows Adjust's Flutter setup receiving links with app_links and passing them to the SDK.Check the current SDK docs.
Singular and KochavaClaude names them among providers with Flutter plugins.Check the current SDK docs.
Play Install Referrer (DIY, Android)Claude says campaign data can be carried in the referrer of a Play Store link and read on first launch.No iOS equivalent.
Firebase Dynamic LinksChatGPT recommended it as a starting point. Claude says Google shut it down in August 2025.Do not start new work on it.

Claude describes a do-it-yourself iOS setup that matches IP address and user agent through your own backend, and calls it unreliable and privacy-sensitive. Most teams that need iOS attribution use an SDK for that part.

How Redirectly fits

Redirectly is deep linking and install attribution software for mobile apps. Its dashboard shows which campaigns, channels, devices and countries drive app installs, in one place. Its platforms include a web dashboard, iOS, Android, a Flutter SDK, a React Native SDK and a desktop fallback page.

It is built for mobile app teams, including developers and marketing teams, for indie hackers and small teams, and for companies that need higher install volumes. Pricing depends on app installs per month, billed annually:

  • Starter: $41/mo ($490/yr) for 1,000 app installs per month.
  • Growth: $124/mo ($1,490/yr) for 25,000 app installs per month.
  • Scale: $333/mo ($3,990/yr) for 250,000 app installs per month.
  • Enterprise: custom pricing beyond 250,000 app installs per month.

There is a 14-day free trial, and no card is required. If you only need links to open the app, the platform steps above work without a provider. For side-by-side details, see Redirectly vs Branch, Redirectly vs AppsFlyer and Redirectly vs Firebase Dynamic Links.

How to choose and test

Choose by what you need to measure:

  1. Only open installed apps: App Links, Universal Links and go_router.
  2. Android campaign tracking without a vendor: the Play Install Referrer. It does not cover iOS.
  3. Both platforms with campaign reporting: an attribution SDK or provider.

Then test on real devices:

  • Tap a link with the app installed.
  • Tap a link with the app closed (cold start).
  • Tap a link while the app runs in the background.
  • Uninstall, tap a link, install from the store, and open the app. Confirm the right screen opens and the campaign data arrives.

Claude says deferred links are the most common thing to break. Test Universal Links from Notes or Messages, not from Safari's address bar, since they behave differently there.

Plan for privacy too. Update your Google Play Data Safety form and Apple's privacy label to match the SDK, and handle GDPR consent before the SDK starts.

Questions customers ask AI

Do I need a third-party SDK for deep linking in Flutter?

Not for links that open an installed app. Claude says App Links, Universal Links and a router such as go_router cover that. Deferred deep links and cross-platform attribution usually need an SDK or your own backend.

Can I still use Firebase Dynamic Links for deferred deep linking?

Claude says Google shut Firebase Dynamic Links down in August 2025, so do not build new work on it. Choose an attribution SDK or your own backend instead.

How do I get Android install attribution without a vendor?

Claude describes adding campaign data to the referrer of your Play Store link, then reading it on first launch and routing the user to the right screen. This does not cover iOS.

Why is iOS harder than Android for install attribution?

Claude says iOS has no public install-referrer API. The do-it-yourself option is IP and user-agent matching, which Claude calls unreliable and privacy-sensitive.

What should I test before shipping?

Test an installed app opened from a link, a cold start, a link while the app is running, and a fresh install from a link. Check that the destination screen and the campaign data both arrive.

More on redirectly.app

How to Add Deep Linking and Install Attribution to a…