Dynamic Link
SDK Version Selection
Choose your SDK version below:
- Apptrove SDK → Recommended for all projects (Latest: v2.0.0)
- Trackier SDK → Will be deprecated in May 2026 (v1.x.xx)
Use the tabs below to view dynamic link code for your chosen SDK.
Dynamic links allow you to direct users to specific in-app content, track campaign performance, and handle platform-specific redirects (e.g., Play Store, iOS, desktop). With the Apptrove Flutter SDK, you can create dynamic links programmatically, embedding attribution and deep link parameters to enhance user acquisition and engagement.
Overview
Dynamic links provide a flexible way to route users based on their platform and context:
- Purpose: Generate links for campaigns, deep linking to specific app content (e.g., NewMainActivity).
- Use Case: Create a link like
https://vistmarket.shop/78R2J2that directs users to a product page with parameters (productid=jeans) and tracks campaign data (campaign=my_campaign).
Key Features:
- Deep link to in-app destinations
- Attribution parameters for tracking
- Platform-specific redirects (Android, iOS, desktop)
- Social media previews for sharing
Example Link:
- Generated:
https://vistmarket.shop/78R2J2?param1=value1&campaign=my_campaign - Redirects to:
https://apptrove.com?utm_redirect=sdk_linkor Play Store if app not installed
Configure Apptrove Panel
- Log in to the Apptrove Panel
- Go to Unilink Management > Create Template
- Setup Template
- Save and note the template ID (Required for Dynamic Link)
Implementation
Dart Example
- ✓ Apptrove SDK (Recommended)
- Trackier SDK (Deprecating May 2026)
DynamicLink.dart
import 'package:apptrove_sdk_flutter/apptrove_sdk_flutter.dart';
// Creates a short, shareable dynamic link with attribution and platform fallbacks.
final url = await AppTroveFlutterSdk.createDynamicLink(
templateId: 'wy23Px', // From Apptrove Panel
link: 'https://your-domain.u9ilnk.me',
domainUriPrefix: 'your-domain.u9ilnk.me',
deepLinkValue: 'CakeActivity',
androidRedirect: 'https://play.google.com/store/apps/details?id=com.example.app',
iosRedirect: 'https://www.example.com/ios',
desktopRedirect: 'https://example.com',
sdkParameters: {'product_id': 'chocochip', 'quantity': '2'},
attributionParameters: {'channel': 'my_channel', 'media_source': 'at_invite', 'campaign': 'sanu'},
socialMeta: {'title': 'Your Title', 'description': 'Your Description', 'imageLink': 'https://www.example.com/image.jpg'},
);
print('Deep Link URL: $url');
DynamicLink.dart
import 'package:trackier_sdk_flutter/trackier_sdk_flutter.dart';
// Creates a short, shareable dynamic link with attribution and platform fallbacks.
Trackierfluttersdk.createDynamicLink(
templateId: 'wy23Px', // From Apptrove Panel
link: 'https://your-domain.u9ilnk.me',
domainUriPrefix: 'your-domain.u9ilnk.me',
deepLinkValue: 'CakeActivity',
androidRedirect: 'https://play.google.com/store/apps/details?id=com.example.app',
iosRedirect: 'https://www.example.com/ios',
desktopRedirect: 'https://example.com',
sdkParameters: {'product_id': 'chocochip', 'quantity': '2'},
attributionParameters: {'channel': 'my_channel', 'media_source': 'at_invite', 'campaign': 'sanu'},
socialMeta: {'title': 'Your Title', 'description': 'Your Description', 'imageLink': 'https://www.example.com/image.jpg'},
).then((url) {
print('Deep Link URL: $url');
}).catchError((err) {
print('Failed to create link: $err');
});
For further assistance, refer to the Apptrove Documentation Portal or contact support at support@apptrove.com.