Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
user-authenticated event tracking with jQuery in a Razor View
$(function () {
$('a').mousedown(function () {
_gaq.push(['_trackEvent', 'userClick', $(this).attr('href'), '@User.Identity.Name']);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment