Skip to content

Instantly share code, notes, and snippets.

@jcdarwin
Last active August 29, 2015 14:21
Show Gist options
  • Save jcdarwin/2f24413a601a6e305f29 to your computer and use it in GitHub Desktop.
Save jcdarwin/2f24413a601a6e305f29 to your computer and use it in GitHub Desktop.
Bookmarklet to listen for 'analytics' events and report them to the console
// Bookmarklet to listen for 'analytics' events and report them to the console.
// Created with http://chriszarate.github.io/bookmarkleter/
<a href="javascript:void%20function(){jQuery%26%26jQuery(document).bind(%22analytics%22,function(n){console.log('I%20just%20saw%20an%20%22analytics%20event:%20%22',n)})}();">Drag this link to your browser bookmarks bar</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment