cmwetherell if you want to do something during a request that leads to a redirect, you could use a Middleware.
Otherwise for other non-SPA pages I'm not seeing any easy tracking method. There is a plan to move error pages to the SPA flarum/core2214 and it would also be nice to eventually move the reset/email pages to the SPA as well, to allow for a better integration across the pages.
Those non-SPA pages use the basic
template which doesn't allow any easy customization by extensions https://github.com/flarum/core/blob/master/views/layouts/basic.blade.php An extension could completely replace it, or inject stuff at the start or end. So injecting the tracking code from this extension on those pages isn't really easy.
To track a click to login or register, you could use the direct link extension and replace all occurrences of the login/register button with that link. The paths should trigger a view in Analytics.