Hi @shankar and welcome to the forum! 
We’ve actually been discussing that over here How to add Google Analytics or JS code in a Streamlit app? You can help design this feature request or follow its progress over there on Github.
Thanks for using Streamlit!