Skip to content

Instantly share code, notes, and snippets.

@jcblw
Created May 9, 2012 16:33
Show Gist options
  • Save jcblw/2646339 to your computer and use it in GitHub Desktop.
Save jcblw/2646339 to your computer and use it in GitHub Desktop.
Tracking #hash changes
// Probably Need
// It seems to be depedent off this plugin too
// https://github.com/cowboy/jquery-hashchange
// ============================================
(function($){
$(window).hashchange(function(){
//Check you console for event
console.log('Changed to ' + window.location.hash);
// Add _gaq.push here
})
}(jQuery));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment