如何在 Angular 应用程序中为 localhost 配置 Microsoft Clarity

Ser*_*nar 5 angular ms-clarity

localhost我正在尝试配置 Microsoft Clarity 以在我的 Angular 应用程序中运行。

当我在 Microsoft Clarity 门户上创建新项目时,我将 URL 设置为localhost(我也尝试过localhost:4200),然后复制脚本并将其粘贴到<header>ofindex.html页面中,但似乎没有执行任何操作(没有collect调用在网络选项卡中,门户中没有日志)。

我找不到我做错了什么。或者 Microsoft Clarity 无法使用localhost

小智 0

您必须将网站的真实 URL 放在 URL 部分,而不是本地主机地址。但您可以使用相同的projectId在本地主机中测试Microsoft Clarity。