Deep Links
Tracked deep links with click analytics and campaign metadata.
Create tracked deep links for marketing campaigns, push notifications, and sharing. Every click is logged with analytics.
MCP tools
| Tool | Description |
|---|---|
amba_tracked_links_create | Create a tracked link with slug and destination |
amba_tracked_links_get_stats | Get click analytics for a link |
Example
This creates a tracked link with the slug summer-promo. Your app resolves the slug with Amba.deepLinks.get("summer-promo") (GET /v1/client/deep-links/resolve/summer-promo), which returns { id, url, short_code, target_path, metadata, created_at }: url is the destination and short_code the slug. The response also carries the same values as destination_url and slug. The app opens url and records the click with POST /v1/client/deep-links/click.
Clicks and deleted users
Each click records the link, the signed-in user, the platform the app sent, and the time. Clicks store no IP address, and earlier clicks have theirs cleared. Deleting a user keeps their clicks in the link's stats as anonymous clicks: the user is cleared on each one, and the link, platform, and time stay. Total and per-platform click counts stay the same, and unique users counts the users who still exist.
Client API reference
| Method | Path | Description |
|---|---|---|
GET | /v1/client/deep-links/resolve/:slug | Resolve a slug to its id, destination_url and metadata |
POST | /v1/client/deep-links/click | Record a click; body { "tracked_link_id": "<id>", "platform": "ios" } |