I know that react-router
provides onChange
attribute to listen to route change, but I'm using hookrouter
package (doc).
I'm trying to get a log of users when they visit a specific route. For e.g. when they visit /aboutus
route. The user could visit through button click, entering URL manually or opening a bookmarked page.
There are tracking apps available which tracks counter on button click but I haven't find any app that keeps track of how many times a specific route was visited by the user.
In short, is there a way I know how many times the user visited a specific route?