-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 events once the app is loaded #398
Comments
The I'll look into exposes the event methods. I'm just concerned about potential duplicate stats. But I guess if you're calling it manually you know the risks. |
yes, I ended up adding the script after my app has loaded. I looked a bit into that tracker code. Could we maybe map them as we add them? Otherwise, I'm thinking that a proper solution might be for my app to add custom events, and not use the classes. btw, I'm using this for my HN reader --> https://hack.ernews.info/ Let me know what you think. Thank you. |
Your solution is the right one. It ensures the script will always load last. As for calling the methods,, using |
Updated in #405 |
Hi there.
Thanks for your amazing work.
Quick question.
I have a SPA and I load the umami tracker. The problem is that even if I have the classes in the correct elements, umami doesn't see them because it looks for them before they exist.
More specifically the browser ( in time order ) :
addEvents
( https://github.com/mikecao/umami/blob/master/tracker/index.js#L171 ) but finds nothing ( app is not done yet )Is there a way to run
addEvents
when my app is done?As far as I can see that function is not exposed.
Am I missing something?
Thank you.
The text was updated successfully, but these errors were encountered: