Is there some sort of central event hook in Flow where you could observe user activity? I’m trying to gather statistics on how users are using the application in order to improve workflow and I’m interested in paths like “first field1 was entered and button1 clicked, then the user switched tabs” etc. I recall that in previous versions it was non-trivial and pretty much involved hooking clicked/valuechange/focus-listeners programmatically everywhere.
I guess you could register a RequestHandler and log everything from there (https://vaadin.com/api/platform/13.0.8/com/vaadin/flow/server/ServiceInitEvent.html#addRequestHandler-com.vaadin.flow.server.RequestHandler-).
Thanks for the response.
It appears indeed to be fired for all events, e.g. tabbing out from a field, clicking a button but like the documentation says, it runs before all the Vaadin-equivalents and the request doesn’t appear to contain any relevant information regarding the request on a component level at that point(?)