-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add outbound click event tracking for project URL, license URL, and manual download #4240
Conversation
$(this).click(function (e) { | ||
var href = $(this).attr('href'); | ||
var category = $(this).attr('data-track'); | ||
if (ga && href && category) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need a e.preventDefault()
here? Otherwise wouldn't the link's default behavior just leave the page without waiting for the hitCallback?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. Adding this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
} | ||
} | ||
|
||
@using System.Web.Mvc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does GitHub think this is all changed? At least the first 20 lines look identical to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whitespace fixes. Try this:
https://github.com/NuGet/NuGetGallery/pull/4240/files?w=1
🔔 |
#4122