Forum Discussion
Storing Event Data and Using It in a Decision Split - Canvas
luis123her you are right, Canvas by itself doesn't store values across events, so doing cumulative logic like “if total purchases > $50 across multiple events” can be tricky. But it's definitely doable with a little workaround using custom attributes and webhooks (or Connected Content).
Instead,
Send a custom event when a user makes a purchase, and include the purchase_amount in the event properties (Looks like you are already doing it)
Track cumulative total by storing it as a custom user attribute (e.g., cumulative purchase total).
Use a webhook or Braze’s Connected Content to:
- Grab the user’s current cumulative_purchase_total
- Add the new purchase_amount
- Update that total on the user profile using Braze’s API
- In terms of the Canvas - Trigger it based on purchase made event.
Add a Decision Split right after that checks the updated cumulative purchase total.
If it’s >= 50, send them down the “reward” path (or whatever).
If not, just continue the normal journey.
Related Content
- 2 months ago
- 7 months ago
- 5 months ago
- 2 years ago