Skip to content

Instantly share code, notes, and snippets.

@roman-manchenko
Last active January 20, 2016 22:16
Show Gist options
  • Save roman-manchenko/ddf0259ba98edf6f2601 to your computer and use it in GitHub Desktop.
Save roman-manchenko/ddf0259ba98edf6f2601 to your computer and use it in GitHub Desktop.
jQuery('toggle-boggle-video').on('click', function (evnt){
var $el = jQuery(evnt.currentTarget);
evnt.preventDefault();
window.ga('b.send', 'event',
{'eventCategory': 'article_module',
eventAction: 'video_module',
nonInteraction: 1,
eventLabel: window.location.href},
function () {
window.location.href = $el.attr('href');
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment