Best green wave I have ever experienced is going north on 10th ave in NYC. You can drive for 100 blocks without stopping if there isn't too much traffic and you time the lights correctly.
With a few lines of code, you can integrate Segment (or a similar tool) into your software. You can start tracking user behavior and events automatically. Segment can then send this data onto tools like Mixpanel or Amplitude which has built-in user activity flow analytics.
Take a look into some of these tools if you are looking for an easier way to track user behavior.
You can use a tool like Segment to track user activity client side. With a few lines of code in your app / front end you can be sending user behavior and events to Segment via their API. No custom server side service is required.
Might be worth digging into if you are interested in better user activity tracking.