Streamlit-Analytics2
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.
Getting Started
-
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=onto the URL to view the analytics dashboard.
Getting the most out of Streamlit Analytics2
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!
Contributing
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.
Upcoming Features
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!
Multipage tracking status:
| Method | Status |
|---|---|
| main.py | ✅ (Works) |
| pages/ directory | ❌ (Not Working) |
| st.Page + st.navigation | 🤷 (Checking) |
License
This project is licensed under the MIT License. See the LICENSE file for more information.
Release files for streamlit-analytics2 0.10.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| streamlit_analytics2-0.10.7.tar.gz | 17.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| streamlit_analytics2-0.10.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.7 kB
Release files / streamlit_analytics2-0.10.7.tar.gz
| Download URL | streamlit_analytics2-0.10.7.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f13d104ec7e376a88e5bc7f000765d25dcf4665e318fa22efd0664f3ff6539d2
|
|
BLAKE2b-256 checksum How to use checksums |
054ea95082ed883609a4ec09df1679bf12170d23da07abed649c66dcbdf8d42b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency logRelease files / streamlit_analytics2-0.10.7-py3-none-any.whl
| Download URL | streamlit_analytics2-0.10.7-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa2e1d50742a23705ddb5dd77e6be1ecd7a1a1aa4814a8740f5c8cdd29023f73
|
|
BLAKE2b-256 checksum How to use checksums |
8e0c05da7685996c22596fb12c57a8c65ec97bb98f418fbd7ad29fa1cb47788a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency log