Implement Google Analytics

We should implement Google Analytics into the UI so that we can measure user activity.

Ideally, we should send data for every action that the user undertakes. From logging in to browsing the tripos to logging out.
Would it be possible to cover this functionality in a unit-test, at least the validation part? I wonder if it's possible to ignore the `ga('send', ...)` part with `/* istanbul ignore */`