Adding Google Analytics Tag

Hello,

I have finished and deployed my streamlit project on google cloud.
https://easy-inventory-planner.ew.r.appspot.com/
Is there a simple way to add the lines below to my py file?

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=tracking code"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'tracking code');
</script>

Hi @ozgurdugmeci !

Have a look at this answer, it presents a quick workaround while the dev team thinks about the issue :slight_smile:

Fanilo

1 Like

hi fanilo,
any developments in adding google analytics tag?

1 Like