-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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 `focus' and 'blur' events to amp-analytics #2564
Comments
@uniquelygeneric would #2487 (comment) solve this, if yes, I'll close this bug. |
cool. Let me close this bug and take the discussion to the other bug then. Feel free to comment on the PR. If you would like to test it before it is checked in, you can also patch the PR into a local client and then try it out. |
@avimehta I don't think I'm following how the |
@rudygalfi I think the motivation for the request was to calculate total time on page. There is also the use case of firing |
I am sorry to comment I am a developer looking for better understanding and use AMP, but the example on #2487 (comment) about using "visibility" instead of "focus" / "blur" as event it is absolutely not clear related to tracking events in amp-analytics. I want to track how many time an user is focusing on an input or checkbox, and his relative blur. I have nothing that I want to track that is visible, I just want to understand when some elements are "in focus" like in JS. At the moment I couldn't find any example on the docs related to tracking such thing. I just want to understand if there is a way to do it and how, and if not, understand why. |
Would fire when the document is in or out of focus.
Similar to onfocus and onblur events in JavaScript.
The text was updated successfully, but these errors were encountered: