Skip to content

1. Getting Started

444B edited this page Mar 1, 2024 · 1 revision

Introduction

streamlit-analytics2 is an enhanced fork of streamlit-analytics, designed to track and visualize user interactions in Streamlit applications with minimal setup.

Installation

To install streamlit-analytics2, run the following command:

pip install streamlit-analytics2

Quick Start Guide

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.