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.6.tar.gz (17.2 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.6-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_analytics2-0.10.6.tar.gz.

File metadata

  • Download URL: streamlit_analytics2-0.10.6.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for streamlit_analytics2-0.10.6.tar.gz
Algorithm Hash digest
SHA256 79f82ff0dab8571fc2ada1f2acd3d3c1e585db13f817014a5ed250c0ebfe176b
MD5 12db3af06e783a40d35f361489ab79e0
BLAKE2b-256 264ff28e944d0046654f236878ada3a6ce8db50b5bf1a4b48a250f80b4c2803a

See more details on using hashes here.

Provenance

The following attestation bundles were made for streamlit_analytics2-0.10.6.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.6-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_analytics2-0.10.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8f72e2aa9d130ed9885cdb4cdaf25fa2bd5d67ee40acac03f103d2a7b2481859
MD5 1439a08514984dbbdb9eedee3fea9f89
BLAKE2b-256 436b6c62bd672e4f126b452c699c29b89e5cbc78d0c2525e34c5f0d4594d1f22

See more details on using hashes here.

Provenance

The following attestation bundles were made for streamlit_analytics2-0.10.6-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