Skip to main content

Track & visualize user interactions with your streamlit app.

Project description

Streamlit-Analytics2

PyPi PyPI Downloads PyPI Downloads Build Status

CodeFactor Coverage

Known Vulnerabilities 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_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

Getting Started

  1. Install the package:

    pip install streamlit-analytics2
    
  2. 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")
    
  3. Run your Streamlit app and append ?analytics=on to 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_analytics2-0.10.5.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_analytics2-0.10.5-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

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

Hashes for streamlit_analytics2-0.10.5.tar.gz
Algorithm Hash digest
SHA256 4277f760fb95853519904c967be39777e0a49f5298453cde48ba0ec368373f41
MD5 3ea52b972fa3d911944b452fa61d9b0c
BLAKE2b-256 67a02875f90143dd06c7d2db6e0d918d52ba9e98f83e0e088c49c2d4caa6fe29

See more details on using hashes here.

Provenance

The following attestation bundles were made for streamlit_analytics2-0.10.5.tar.gz:

Publisher: release.yml on 444B/streamlit-analytics2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file streamlit_analytics2-0.10.5-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_analytics2-0.10.5-py3-none-any.whl
Algorithm Hash digest
SHA256 604558d40e73e9bd744b01937ad14bc3c04a1e273429be50ae9f80611dea7712
MD5 6c6fb98c4e4de4d1ef2bfd4f3614db18
BLAKE2b-256 df9b64fe140a1ff420e792e493ab9be1e00a68fe58f147f91d49913a8bf2ded9

See more details on using hashes here.

Provenance

The following attestation bundles were made for streamlit_analytics2-0.10.5-py3-none-any.whl:

Publisher: release.yml on 444B/streamlit-analytics2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page