Dynamic Links
How Dynamic Links Work
A dynamic link is a single URL that behaves differently depending on how it is accessed. When someone clicks your link, LinkSense:
- Detects the user's device type and operating system
- Checks if the request is from a social media bot (serves preview metadata if so)
- Routes the user to the appropriate destination (app, app store, or web URL)
- Records analytics data for the click
This means you can share a single link everywhere (social media, email, print materials) and each user gets the best experience for their device.
Creating a Link
To create a dynamic link, navigate to your project and click "New Link". Follow these steps:
- 1Set the basic info
Give your link a name and optionally set a custom path. The name is for your reference only and not visible to end users.
- 2Configure device routing
Set the destination URLs for iOS, Android, and desktop users. Each platform can have its own URL or fall back to a default.
- 3Add social preview (optional)
Set a title, description, and image that appear when the link is shared on social media platforms.
- 4Set a fallback URL
Choose a default URL for cases where no platform-specific routing matches (e.g., an uncommon operating system).
- 5Save and share
Save the link and copy the generated URL. Your dynamic link is ready to use immediately.
Create via API
Prefer automation? Create the same link with a single authenticated request to the REST API. Pick your stack:
curl -X POST \ -H "Authorization: Bearer ls_live_..." \ -H "Content-Type: application/json" \ -d '{ "name": "Summer Sale", "custom_path": "summer-sale", "desktop_url": "https://example.com" }' \ https://linksense.net/api/v1/projects/proj_abc123/linksDevice Routing
Dynamic links support platform-specific routing. Each platform can be configured independently.
iOS
For iOS users, you can configure:
- Open in app: route to your iOS app via Universal Links (requires registered iOS app)
- App Store link: send users to the App Store if the app is not installed
- Custom URL: send users to a specific web page
Android
For Android users, you can configure:
- Open in app: route to your Android app via App Links (requires registered Android app)
- Play Store link: send users to the Play Store if the app is not installed
- Custom URL: send users to a specific web page
Desktop
Desktop users (Windows, macOS, Linux) are routed to the fallback URL by default. You can set a specific desktop URL if you want desktop users to go to a different destination than the fallback.
Custom Paths
Each dynamic link can have a custom path that makes it easy to recognize and share:
https://your-subdomain.linksense.net/summer-saleCustom paths must be unique within a project. They can contain lowercase letters, numbers, and hyphens. If you do not set a custom path, a random short code is generated automatically.
Certain paths are reserved and cannot be used as custom paths. These include system paths like .well-known and other internal routes.
Fallback URLs
The fallback URL is used when no platform-specific route matches the user's device. It is also used as the default destination for desktop users unless a specific desktop URL is set. Every dynamic link should have a fallback URL configured.
Social Preview Settings
Each link can carry its own social preview metadata. When a social media bot crawls your link, it receives an HTML page with Open Graph and Twitter Card tags instead of being redirected. The tags are yours to set: LinkSense does not generate an image for you, so a link with no social image unfurls as a small summary card with no image.
See the Social Previews page for detailed configuration guidelines and image recommendations.
Field Reference
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Required | Internal name for the link (not visible to users) |
custom_path | string | Optional | Custom path slug (auto-generated if empty) |
fallback_url | url | Required | Default destination URL |
ios_url | url | Optional | iOS-specific destination URL |
android_url | url | Optional |