jrieke / streamlit-analytics

👀 Track & visualize user interactions with your streamlit app
MIT License
262 stars 48 forks source link

Reset analytics #2

Closed robsannaa closed 3 years ago

robsannaa commented 3 years ago

Hello! First of all thanks for this. It is really great to have something like built for Streamlit!

I have tried saving the analytics as JSON, and I have noticed that if I delete the .json file, once I run the app again I will still get my "old" analytics files. Is there a wy to reset the tracking and start from zero at some point?

jrieke commented 3 years ago

Hey @robertosannazzaro, at the moment the easiest solution would be to restart your streamlit app (i.e. re-run streamlit run), then all metrics should be reset. I don't have time for this project right now but I hope I can get back to it during the next weeks, then I'll think about how a programmatic reset could be implemented! :)

jrieke commented 3 years ago

@robertosannazzaro The newest version (v0.2.1) has a section at the bottom of the page that allows you to reset all results (see image). Let me know if that works for you and feel free to re-open if not!

image

robsannaa commented 3 years ago

Hi @jrieke, tested and like it very much! Thanks for pushing this one!

joshua-bowden commented 1 year ago

would be great to be able to disable this in code, especially since these analytics are mostly used with no password/ not secure