Spaces:
Sleeping
Sleeping
Commit History
-
Add Umami page-view tracking
Uses st.html(..., unsafe_allow_javascript=True) rather than components.html: the latter sandboxes content in its own iframe, so Umami would only ever see a meaningless iframe-scoped page instead of real top-level pageviews. Guarded by an element id so a Streamlit rerun (which happens on every interaction, not just navigation) never injects a duplicate script tag or fires an extra pageview beacon. Website ID/script URL are plain constants, not secrets -- they're visible in any page's source regardless. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>40f139d