Microsoft Clarity tracking analytics not working properly


I am trying to collect some analytics data on my streamlit app that’s hosted on streamlit cloud. I tried adding the tracking code for Microsoft Clarity to the head file. I see some tracking metrics pop up but the numbers looks quite off.

Steps to reproduce

Code snippet:

import streamlit.components.v1 as components

<script type="text/javascript">
    })(window, document, "clarity", "script", "g665b0hqie");

As part of the instructions, I had to add the script tag in the file.

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

Expected behavior:
I am expecting more actual metrics popping up. Example, I know users from other countries used to login to the app, but it doesn’t show up here. Also the heatmaps tab doesn’t capture properly the user journey in the website.

Actual behavior:

Additional information

Should I be adding the tracking code in a different approach?

I have the same issue.

So do I

1 Like

Anyone from streamlit can help on this please??