应用洞察-从角度将页面标题添加到浏览器计时

问题描述

我实际上正在寻找在浏览器计时中添加页面标题方法。因此,在每个页面中,我都将页面标题设置如下

private setDocumentTitle(reportData) {
    if (reportData && reportData.abc) {
      this.titleService.setTitle(
        'test' +
        (reportData.abc.name
          ? ` - ${reportData.abc.name}`
          : '')
      );
    }
  }

所以现在我想在浏览器计时中传递此标题。我编写了以下代码以了解应用。那我该怎么做,我想通过页面标题来代替名字

trackPageViewPerformance(name?: string,url?: string) {
    this.appInsights.trackPageViewPerformance({
      name,uri: url
    });
  }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)