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

tracks external link clicks using Google Analytics #2135

Merged
merged 2 commits into from Nov 9, 2018
Merged

Conversation

mejackreed
Copy link
Contributor

Fixes #2114

The URL will be reported which i think is sufficient to accomplish:

the kind of page the link was clicked from (home page, results, record view, Selected databases, no results)

@coveralls
Copy link

coveralls commented Nov 8, 2018

Coverage Status

Coverage remained the same at 96.823% when pulling 6cb37db on outbound-linkz into 018be42 on master.

});

// Track external link clicks
$('a[href]:not([href^="/"],[href^="#"])').on('click', function(e) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this should be the correct selector. I'm not sure if there are any other considerations we should make here?

Copy link
Contributor

Choose a reason for hiding this comment

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

This will end up tracking any time we use a fully qualified URL? I don't think we use that a lot, but just want to make sure I know the considerations we may have to take moving forward.

Copy link
Contributor

@jkeck jkeck left a comment

Choose a reason for hiding this comment

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

👍 My question is more just a curiosity, not a blocker by any means.

@jkeck jkeck merged commit e678e45 into master Nov 9, 2018
@jkeck jkeck deleted the outbound-linkz branch November 9, 2018 17:35
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.

None yet

3 participants