Add event tracking with Google Analytics. Fixes #375.