Skip to content
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

Merged
merged 2 commits into from
Jun 22, 2017
Merged

Conversation

joelverhagen
Copy link
Member

@joelverhagen
Copy link
Member Author

image

$(this).click(function (e) {
var href = $(this).attr('href');
var category = $(this).attr('data-track');
if (ga && href && category) {
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. Adding this.

Copy link
Member Author

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
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joelverhagen
Copy link
Member Author

🔔

@joelverhagen joelverhagen reopened this Jun 22, 2017
@joelverhagen joelverhagen merged commit ef6847f into NuGet:dev Jun 22, 2017
@joelverhagen joelverhagen deleted the maor-ga branch June 22, 2017 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants