FIX: `currentPath` was not changing when transitioning to the same path.
Added a new hook to allow other kinds of analytics.