Is it possible to set up Hotjar in Streamlit App?

Hi everyone!

I’ve launched my Streamlit app and deployed it on an EC2 instance (AWS). Now, I want to capture user behavior (analytics, clicks, heatmaps, etc.). However, I’m having difficulty implementing Hotjar in my Streamlit app. Has anyone successfully set up Hotjar for their Streamlit app? If so, could you please share the steps?

I injected the unique Hotjar tracking code into the app and used the console to debug if it’s injected, which it is. However, for some reason, Hotjar wasn’t able to verify the injected code. I also checked in the developer tools and saw the code in the Network tab.

Hi, do you successfully using hotjar in your streamlit app? I am facing the similar problem, thanks!