Add custom GA event tracking

I get test failures locally with this, but they are failures I get on master as well, so I don't think they're my fault.