feat: google analytics integration and mousedown logic refactoring