Skip to main content
This guide gets you from zero to tracking app installs with DeepLink.

1. Install the package

Add the invyto_deeplink package to your Flutter project:
flutter pub add invyto_deeplink

2. Configure Android

In your Android app, add the Install Referrer dependency and configure your deep link domain so clicks can be attributed.

Android setup

App links, referrer, and ProGuard rules.

3. Configure iOS

Set up Associated Domains and entitlements so iOS can open your app from DeepLink links.

iOS setup

Associated Domains and URL handling.

4. Initialize the SDK and track installs

In your app’s entry point (e.g. after the app is ready), call the DeepLink SDK so it can record the install and fetch attribution (e.g. UTM from the last click).
import 'package:invyto_deeplink/invyto_deeplink.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await InvytoDeeplink.init(
    baseUrl: 'https://your-deeplink-api.com', // Your DeepLink API base URL
  );
  runApp(MyApp());
}
The SDK will:
  • On Android: use the install referrer (when the install came from a DeepLink link) and report it to the Track Install API.
  • On iOS: match the install to the most recent click (e.g. by IP/time window) and send UTM and link data to the Track Install API.
To open a specific screen when the user opens a DeepLink URL (including after install), use the SDK’s link handling:

Handling links

Listen for deep link URLs and navigate in-app.

Next steps