Google Analytics on Heroku - cannot modify index.html

Hi all!
Sorry to bother you. I am trying to implement monitoring via google anaytics on my streamlit app, deployed on Heroku. I have followed all the instructions here, and it works on localhost I can see the index.html file being modified locally with the Google analytics script just under < head >. When I deploy on Heroku, I can also see this in the logs:
app[web.1]: 2022-09-27 08:12:48.783 editing /app/.heroku/python/lib/python3.10/site-packages/streamlit/static/index.html
So there does not seem to be a problem. However, it still doesn’t work, and when I inspect the code of the deployed app, Google Analytics script is nowhere to be found :frowning:
Have I missed anything in the way site packages are managed in Heroku? Has anyone faced the same problem?
Thanks a lot!
Have a good day :hibiscus:

Weirdly enough, it ended up working after some time. Sorry for the spam, and if some encounter the same issue, just wait for a little while! :slight_smile:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.