This is not really what GA was built for, but it is possible.
...Has more info.
This would work best if the domain was setup on your local computer (something like mycomputer.local).
Essentially, the property domain of the GA code will need match the localhost domain. More info from:
Once you have this setup, you can track events like timeline triggers with this tutorial, but it's not going to give you great transparency over what the person is doing in a Hype document within a scene: Tracking visits, events, and actions with Google Analytics