Logging Revenue with RevenueCat
Learn how to log conversion revenue from your in-app purchases if you're using RevenueCat.
ContextDecision supports logging conversions and revenue from any in-app purchase system, including RevenueCat.
Our revenue logging API receives a StoreKit 2 Product
object. RevenueCat abstracts away the StoreKit implementation, but it still exposes the underlying Product
object if needed.
To retrieve the StoreKit 2 product and log it, implement the paywallViewController(_:didFinishPurchasingWith:)
delegate in your class that conforms to PaywallViewControllerDelegate
as such:
There's no need to call context.log(.positive)
after logging a revenue outcome from a Product
, as the positive outcome is already logged internally. Alternatively, you can customize the outcome to be logged directly, via logRevenueOutcome(from:outcome:)
.
Last updated
Was this helpful?