Learn how to track user actions and revenue from push notifications and in-app messages using OneSignal Custom Outcomes. Customize attribution and measure engagement with flexible outcome types across platforms.
Outcome Type | Mobile SDK Method | Web SDK Method | Description |
---|---|---|---|
Standard Count | addOutcome | sendOutcome | Increases the count by 1 every time itโs called. No value tracking. |
Value (Sum) | addOutcomeWithValue | sendOutcome | Increases count by 1 and sum by the specified numeric value. Useful for revenue tracking. |
Unique Count | addUniqueOutcome | sendUniqueOutcome | Increases count by 1, only once per attribution window. Best for binary user actions like โStarted Swipe Sessionโ or โTapped CTAโ. |
Metric | Description |
---|---|
Count | Number of times the outcome event was triggered |
Sum | Total of all numeric values sent with the outcome (if applicable) |
sendUniqueOutcome
This โSwipeโ outcome will only be attributed once to the push that triggered it. Examples:
OneSignal.addOutcome("iOS")
or OneSignal.addOutcome("Android")
in your mobile appโs click handler, but if you want to track web push platforms as well, you can use this for example:
outcome name : true
.