Track & visualize user interactions with your streamlit app.
Project description
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.
[!Note] This fork is confirmed to fix the deprecation
st.experimental_get_query_paramsalerts. 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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_analytics2-0.10.5.tar.gz.
File metadata
- Download URL: streamlit_analytics2-0.10.5.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4277f760fb95853519904c967be39777e0a49f5298453cde48ba0ec368373f41
|
|
| MD5 |
3ea52b972fa3d911944b452fa61d9b0c
|
|
| BLAKE2b-256 |
67a02875f90143dd06c7d2db6e0d918d52ba9e98f83e0e088c49c2d4caa6fe29
|
Provenance
The following attestation bundles were made for streamlit_analytics2-0.10.5.tar.gz:
Publisher:
release.yml on 444B/streamlit-analytics2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
streamlit_analytics2-0.10.5.tar.gz -
Subject digest:
4277f760fb95853519904c967be39777e0a49f5298453cde48ba0ec368373f41 - Sigstore transparency entry: 229482516
- Sigstore integration time:
-
Permalink:
444B/streamlit-analytics2@a84e799b1b4779ffd35895c644e8f08b57cf4afb -
Branch / Tag:
refs/heads/main - Owner: https://github.com/444B
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a84e799b1b4779ffd35895c644e8f08b57cf4afb -
Trigger Event:
push
-
Statement type:
File details
Details for the file streamlit_analytics2-0.10.5-py3-none-any.whl.
File metadata
- Download URL: streamlit_analytics2-0.10.5-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
604558d40e73e9bd744b01937ad14bc3c04a1e273429be50ae9f80611dea7712
|
|
| MD5 |
6c6fb98c4e4de4d1ef2bfd4f3614db18
|
|
| BLAKE2b-256 |
df9b64fe140a1ff420e792e493ab9be1e00a68fe58f147f91d49913a8bf2ded9
|
Provenance
The following attestation bundles were made for streamlit_analytics2-0.10.5-py3-none-any.whl:
Publisher:
release.yml on 444B/streamlit-analytics2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
streamlit_analytics2-0.10.5-py3-none-any.whl -
Subject digest:
604558d40e73e9bd744b01937ad14bc3c04a1e273429be50ae9f80611dea7712 - Sigstore transparency entry: 229482522
- Sigstore integration time:
-
Permalink:
444B/streamlit-analytics2@a84e799b1b4779ffd35895c644e8f08b57cf4afb -
Branch / Tag:
refs/heads/main - Owner: https://github.com/444B
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a84e799b1b4779ffd35895c644e8f08b57cf4afb -
Trigger Event:
push
-
Statement type: