A word on Analytics #120
Replies: 1 comment
-
Kind of related, but I've been trying to get analytics using streamlit-analytics at the session/user level instead of what seems to be in aggregate across all sessions/users (I'm still testing locally, so please correct me if that's wrong, but I don't see any unique ID that would track clicks at the session level). Is there any planned functionality for that? I'm currently tracking visitors by using UUID session IDs and setting a cookie in the client browser and then using firestore to track user-level clicks, but it's not playing nicely with other packages currently (namely Would there be any interest in a PR that could for example take a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been trying to integrate other analytics tools into SA2 for a while now and have tried every method conceivable and described in the forums.
I have not succedded to get a little bit of JS to work.
However, In my recent attempts to get it functional - I was looking at the
st.context
function and found some very interesting things.The following is provided from the client to your streamlit server with anytime someone views your page or presses a button
HTTP Headers
Cookies
I beleive the way to prevent these cookies and the ajs_anonymous_id from being embedded in your client is to set
[browser] gatherUsageStats = false
in the
.steamlit/config.toml
. I have tested that and it works.I do wonder if we could use these values to make SA2 more meaningful however a key point here is that analytics seems to be easy for Streamlit to do for themselves but impossible for any users of streamlit.
Beta Was this translation helpful? Give feedback.
All reactions