How to add Google Analytics or JS code in a Streamlit app?

I used statcounter.
components.html(tracking code, width=200, height=200) worked for me.

1 Like