I've read several articles giving examples of what can MATCH_RECOGNIZE do. One of them is creating a step funnel. Let's say we want to track certain events and see after each of the event how many users left. For instance, arriving at the home page, then going to the search page, then putting something in the cart, and finally paying. Those are events, and we have records for each one of them. Now I would like to create funnel like this:
- Arriving at home page - 1000 users
- Going to search page - 980 users
- Adding something to shopping cart - 90 users
- Paying - 10 users
That's step funnel example, where we have fewer and fewer users after each step.
Now, back to match_recognize, we can use this function to tell us how many users matched this pattern (event1 + event2 + event3 + event4 +), but the problem I'm trying to solve, how can we use this function so we know how many users did not pass to next event/phase, not just the ones that matched whole pattern sequence?
So using bits, and date limits per step you can build you own funnel logic, and decide what makes the cut or not:
gives: