Track swipes with Google Analytics
问题 I have a swipe functionality on my mobile page, and I want to used touchstart, touchend, and touchmove to track the swipe functionality across the device without affecting the scrolling. Here is my code. jQuery('.first-frame').bind('touchmove', function(event) { _gaq.push(['_trackEvent', 'Landing-Page', 'Swipe-Toggle-Color', '0259_2190']); }); 回答1: If it's possible to only monitor the swipeleft and swiperight events in jQuery Mobile instead, do so. Otherwise, you can set a global variable on