Skip to content

Instantly share code, notes, and snippets.

@jodyHamilton
Created July 23, 2018 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jodyHamilton/c79cdbe3d076ff506cf37266aeb9abd9 to your computer and use it in GitHub Desktop.
Save jodyHamilton/c79cdbe3d076ff506cf37266aeb9abd9 to your computer and use it in GitHub Desktop.
diff --git a/js/google_analytics.js b/js/google_analytics.js
index 0490c2b..dea81ae 100644
--- a/js/google_analytics.js
+++ b/js/google_analytics.js
@@ -15,7 +15,7 @@
// Attach mousedown, keyup, touchstart events to document only and catch
// clicks on all elements.
- $(document.body).on('mousedown keyup touchstart', function (event) {
+ $(document.body).on('mousedown keyup', function (event) {
// Catch the closest surrounding link of a clicked element.
$(event.target).closest('a,area').each(function () {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment