Skip to content

Instantly share code, notes, and snippets.

@billyvg
Created November 10, 2011 03:46
Show Gist options
  • Save billyvg/1354051 to your computer and use it in GitHub Desktop.
Save billyvg/1354051 to your computer and use it in GitHub Desktop.
/**
* Any anals should be done here.
*
*/
$(function() {
(function(anal) {
$('.follow').on('click', function(e) {
anal.push(['_trackEvent', 'Rightrail', 'follow_' + $(this).data('type') + '_link', $(this).data('id')]);
});
$('.unfollow').on('click', function(e) {
anal.push(['_trackEvent', 'Rightrail', 'unfollow_' + $(this).data('type') + '_link', $(this).data('id')]);
});
})(window._gaq || {});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment