forked from jrieke/streamlit-analytics
-
Notifications
You must be signed in to change notification settings - Fork 4
1. Getting Started
444B edited this page Mar 1, 2024
·
1 revision
streamlit-analytics2
is an enhanced fork of streamlit-analytics
, designed to track and visualize user interactions in Streamlit applications with minimal setup.
To install streamlit-analytics2
, run the following command:
pip install streamlit-analytics2
Here's a simple example to get you started with streamlit-analytics2
:
import streamlit as st
import streamlit_analytics2
with streamlit_analytics2.track():
st.text_input("Your name:")
st.button("Greet me!")
Just add your Streamlit widget code inside the with streamlit_analytics2.track():
block to track interactions.