{"id":19514876,"url":"https://github.com/ndp/gesture_spy","last_synced_at":"2025-10-18T21:37:41.617Z","repository":{"id":5705218,"uuid":"6915955","full_name":"ndp/gesture_spy","owner":"ndp","description":"Spy for gestures for your responsive web apps","archived":false,"fork":false,"pushed_at":"2015-04-25T21:21:58.000Z","size":144,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T13:40:19.625Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ndp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-29T05:50:49.000Z","updated_at":"2023-04-18T17:23:56.000Z","dependencies_parsed_at":"2022-07-20T07:40:41.705Z","dependency_job_id":null,"html_url":"https://github.com/ndp/gesture_spy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fgesture_spy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fgesture_spy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fgesture_spy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fgesture_spy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ndp","download_url":"https://codeload.github.com/ndp/gesture_spy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240766676,"owners_count":19854114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T23:37:54.629Z","updated_at":"2025-10-18T21:37:41.534Z","avatar_url":"https://github.com/ndp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"GestureSpy is a simple utility to spy on your users' actions when using touch-based\ndevices. It captures them and reports them to Google Analytics (or any mechanism\nyou choose).\n\nThis helps answer the questions about how users want to use your site on their\nphones and tablets.\n* Do they want to zoom in on that picture?\n* Are they trying to swipe to see another product?\n\nIt's simple to integrate and does not affect the regular site behavior or performance.\n\n## Usage\n```\n  \u003cscript src=\".../gesture_spy.js\"\u003e\u003c/script\u003e\n  \u003cscript\u003e\n  GestureSpy.spy();\n  \u003c/script\u003e\n```\nThen watch your Google Analytics account for the events. All Gesture Spy events will\nhave their category set to \"GestureSpy\". In addition:\n```\n  Action                 Label                  Value\n  orientation change     landscape or portrait  0\n  rotate                 element touched        angle\n  pinch                  element touched        scale, [0,0.9]\n  zoom                   element touched        scale, [1.1,infinity]\n  swipe                  element touched        (nothing)\n```\n\nCurrently it only watches for Safari GestureEvents.\n\n## Other reporting\nThe default reporting goes to Google Analytics, but you can send information\nwhereeves:\n```\nGestureSpy.spy({\n  report: function(action, label, value) {\n     ...\n  });\n}\n```\n\n## Contributing\nPlease! Pull requests. Or requests.\n\n## References\n* http://developer.apple.com/library/ios/#documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW1\n* http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/GestureEventClassReference/GestureEvent/GestureEvent.html\n\n\n## License\nCopyright(c) 2012 Andrew J. Peterson / NDP Software\nAll Rights Reserved.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndp%2Fgesture_spy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndp%2Fgesture_spy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndp%2Fgesture_spy/lists"}