I want to analyze how the user works on the website. For example, he opens the pages of the site in order:
-> main page -> product page -> detail page -> ...
That's why I use the "tracker" system and send an HTTP request to the server on every page of the site. It is very difficult to compare requests when there are so many in the moment.
but i think now if i can know or set id for HTTP requests (KeepAlive connections) is so well.
someone can show a helpful way for me.
tnx
You can do so by using middleware
Create a middleware to track routes:
LogRouteMiddleware
app\Http\Kernel.php
web.php\api.php
Accessing current route
Accessing previous route
URL method