We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What I want is to send only one event per range. So if I divide my page in quarters I send an event for 25, 50, 75 and 100%.
A user that scrolls to 33%, then to 44%, then back to 36% would once send an event with 25 as eventLabel.
Sorry I was rubber ducking, I think this should work:
ga('require', 'maxScrollTracker', { increaseThreshold: 25, hitFilter: function(model) { var scrollPercentage = model.get('eventLabel'); // round to 25's model.set('eventLabel', 25 * Math.round(scrollPercentage / 25), true); } });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What I want is to send only one event per range. So if I divide my page in quarters I send an event for 25, 50, 75 and 100%.
A user that scrolls to 33%, then to 44%, then back to 36% would once send an event with 25 as eventLabel.
Sorry I was rubber ducking, I think this should work:
The text was updated successfully, but these errors were encountered: