Skip to content

444B/streamlit-analytics2

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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.

About

πŸ‘€ Track & visualize user interactions with your streamlit app

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages

  • Python 83.5%
  • Shell 16.5%