Connect
1
Open the source
Open Sources, find RevenueCat, and select connect.
2
Enter your App ID
Paste the RevenueCat App ID.
3
Enter a webhook secret
Any strong random string works. You’ll paste the same value into RevenueCat next.
The field reads as optional, but set it anyway. Deliveries return HTTP 503 until a
secret is stored.
4
Copy the webhook URL
5
Add the webhook in RevenueCat
In Project Settings → Integrations, paste the URL. Set the
Authorization header
to your secret. A Bearer prefix is fine either way.Link purchases to a web visitor
Skip this and you’ll still get the revenue, but nothing to credit it to.
No match sets
visitor_id to revenuecat_<original_app_user_id>.
Event mapping
Twelve RevenueCat types produce fifteen Datalyr events. Three types split on a payload field.
RevenueCat doesn’t have a refund type of its own. A granted refund shows up as
CANCELLATION with cancel_reason set to CUSTOMER_SUPPORT, so that’s what we map.
TEST events and unknown types return 200 and record nothing.
Revenue
Six events carry revenue:subscription_started, trial_converted,
subscription_renewed, purchase, refund_reversed, refund. All others record 0,
including trial_started.
The event value is gross, before tax and store commission. Net is stored as
event_data.net_revenue:
commission_percentage falls back to 0.30 when RevenueCat omits it. Refunds always come
through negative, whatever sign RevenueCat sends.
Top-level
currency is always USD, because RevenueCat converts before it sends. The
original values stay available as event_data.original_currency and
event_data.original_price, but build your conversion rules on the USD value.Fields for conversion rules
Every other RevenueCat field is kept in
event_data unchanged.
Delivery behavior
Verify
- Send RevenueCat’s test event. Confirm it returns 200.
- Complete a sandbox purchase in your app.
- Open Events and find the event.
- Confirm the event name,
value,product_id, andapp_user_id. - Confirm
visitor_iddoesn’t start withrevenuecat_.
When it doesn’t work
Next, create a conversion rule so these purchases reach your ad
platforms.