-
Notifications
You must be signed in to change notification settings - Fork 23
Add customizable top and bottom to v2.0.0 #7
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
Comments
Hi Dan, I think v2.0 has a problem with document height values. In my site when my page load fires all scroll events together : 25 % at 200px but my real document height is 3000px but document.body returns 800px. Seems like in some point of the code, is using document.body or document.documentElement for height value instead of using function docHeight() that fix height values. This behaviour doesn't happen on version 1.2. ;) |
@aviveros can you share the page in question and your config settings? I'll take a look right away. |
Hi Dan, Thanks for your message, but my page is not public yet. About setting, I just import json file , and use basic settings : `tracker.on({ console.log(evt.data.label); // > "25%" });` Thanks |
If you discover the reason for the issue, I'd love to help (definitely unhappy to hear about this). |
I seem to be having the same or similar issue with a default installation of 2.0.4 code via GTM container with nothing else in it and no configuration option changes. |
This was a fun little rabbit hole! Long story short, your example fails because it doesn't have a DOCTYPE declaration (e.g. The larger issue is that this behavior should be accounted for. I'm working on a fix! |
Great, thanks! Indeed it does work when I specify a doctype. |
Any updates on this? |
The top and bottom configurations didn't make it into the initial v2.0.0 release. Basically, we want to support:
The text was updated successfully, but these errors were encountered: