Check it out here! π Demo π
Streamlit Analytics2 is an actively maintained, powerful tool for tracking user interactions and gathering insights from your Streamlit applications. With just a few lines of code, you can gain insight into how your app is being used and making data-driven decisions to improve your app.
Note
This fork is confirmed to fix the deprecation st.experimental_get_query_params
alerts. Context
It also resolves 41 security issues that exist in the upstream dependencies (4 Critical, 13 High, 21 Moderate, 3 Low) as of Dec 29th 2024
-
Install the package:
pip install streamlit-analytics2
-
Import and initialize the tracker in your Streamlit script:
import streamlit as st import streamlit_analytics2 as streamlit_analytics with streamlit_analytics.track(): st.write("Hello, World!") st.button("Click me")
-
Run your Streamlit app and append
?analytics=on
to the URL to view the analytics dashboard.
Be sure to check out our Wiki for even more ways to configure the application. Some features include:
- Storing data to json, CSV or Firestore
- Gathering Session state details based on randomized UUIDs
- Setting passwords for your analytics dashboards
- Migration guides We welcome contributions to the Wiki as well!
We're actively seeking additional maintainers to help improve Streamlit Analytics2. If you're interested in contributing, please check out our Contributing Guidelines to get started. We welcome pull requests, bug reports, feature requests, and any other feedback.
We're currently working on a major release that will introduce exciting new features and enhancements:
- Multi-page tracking: Monitor user interactions across multiple pages of your Streamlit app.
- Improved metrics accuracy: Get more precise and reliable usage metrics.
- Flexible data formats: Choose between CSV or JSON for storing and exporting analytics data.
- Customization screen: Easily configure and customize the analytics settings through a user-friendly interface.
Stay tuned for more updates and join our community to be part of shaping the future of Streamlit Analytics2!
Method | Status |
---|---|
main.py | β (Works) |
pages/ directory | β (Not Working) |
st.Page + st.navigation | π€· (Checking) |
This project is licensed under the MIT License. See the LICENSE file for more information.