/conversion
POSTConversion tracking endpoint. Records post-install events linked to attribution.
Overview#
Track conversion events (signups, purchases, etc.) that happen after install. Conversions are linked to the original attribution via the install ID.
The SDK handles this automatically via trackConversion(). You typically don't need to call this endpoint directly.
Endpoint#
POST https://YOUR_APP_ID.mobana.ai/conversionRequest#
POST https://YOUR_APP_ID.mobana.ai/conversion
Content-Type: application/json
{
"installId": "520e8400-c466-a554-40e0-0",
"name": "purchase",
"value": 49.99
}| Parameter | Type | Description |
|---|---|---|
installIdRequired | string | The same install ID used in the /find request. Links this conversion to the attribution. |
nameRequired | string | Conversion type name. Must be configured in your app settings in the Dashboard. |
value | number | Monetary value for revenue tracking (e.g., purchase amount). |
flowSessionId | string | Optional flow session ID from startFlow() result. Links this conversion to a specific flow presentation. |
timestamp | number | Unix timestamp in milliseconds. Used when sending queued offline events. Defaults to current time. |
With Flow Session
{
"installId": "520e8400-c466-a554-40e0-0",
"name": "purchase",
"value": 49.99,
"flowSessionId": "abc123-session-id",
"timestamp": 1706745600000
}Response#
{
"success": true
}This endpoint always returns { "success": true }, even for invalid conversion names or unconfigured types. This is intentional — conversion tracking should never block your app flow.
Invalid requests are logged server-side for debugging.
Configuration#
Conversion types must be configured in your app settings before they can be tracked:
- Go to Dashboard → Your App → Settings → Conversions
- Add conversion types (e.g., "signup", "purchase")
- Configure whether each type is repeatable or non-repeatable
Repeatable: Can be tracked multiple times per install (e.g., purchases)
Non-repeatable: Only counted once per install (e.g., signup)
Attribution Link#
Conversions are only recorded for installs that have attribution data. If an install has no attribution (organic or no match found), conversions for that install are ignored.
This ensures your conversion analytics reflect the performance of your paid campaigns, not organic installs.
Offline Support#
The SDK queues conversions when offline and sends them when connection is restored. The timestamp field preserves the original event time for accurate analytics.