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

Send ga events for profile page #158

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

waracci
Copy link
Contributor

@waracci waracci commented Feb 9, 2022

Send Google analytics events for the members' profile page

Screenshot from 2022-02-10 00-41-05

Screenshot from 2022-02-10 00-26-57

Screenshot from 2022-02-10 00-26-15

Screenshot from 2022-02-10 00-26-08

Comment on lines +58 to +70
function sendAnalyticsEvent(category, action, label) {
// we use a timeout to ensure that the event is sent after user has
// scrolled over the element considerably
setTimeout(function () {
ga('send', {
hitType: 'event',
eventCategory: category,
eventAction: action,
eventLabel: label
});
}, TIMEOUT_BEFORE_FIRING_ANALYTICS);
}

Copy link
Contributor

Choose a reason for hiding this comment

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

looks like this will send it 5s after it scroleld into view. I think what we wanted was to send if it was in view for 5s.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

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.

2 participants