在App Insights中获取用户信息 [英] Getting User Information in App Insights

查看:170
本文介绍了在App Insights中获取用户信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web表单应用程序.

I have a web forms application.

我已经集成了App Insights SDK,我在Azure门户上收到有关应用程序的通知,例如单击按钮(通过自定义事件,跟踪事件功能).

I have integrated the App Insights SDK, I receive the notifications about the application like button click (through Custom Events, Track Event function) on my Azure portal.

如何获取用户信息,如:

How can I get user information like:

用户正在从哪个区域/地理位置登录,他/她是通过...之类的东西访问哪个浏览器.

What regions/geography the user is logging from, which browser is he/she accessing through... things like that.

现在,在Azure门户中的用法"->用户"下

Right now, In Azure Portal under Usage--> Users

我得到:

No data for 'users' with values of 'Country or region'.

类似地,即使对于自定义事件(单击按钮),我也能获取指标.

Similarly, no data messages are there for sessions and page views even though for a Custom event (Button click), I am getting the metrics.

请解释.

谢谢.

推荐答案

如何获取用户信息,如:

How can I get user information like:

用户正在从哪个区域/地理位置登录,他/她是通过...之类的东西访问哪个浏览器.

What regions/geography the user is logging from, which browser is he/she accessing through... things like that.

根据您的描述,我进行了一项测试,以配置应用程序见解">下的图表.概述>指标浏览器,然后选择浏览器版本国家或地区.

According to your description, I do a test to configure the chart under Application Insights > Overview > Metrics Explorer, and select the metrics and group metrics by Browser version or Country or region.

我将图表类型"设置为网格",然后选择用户"并按国家或地区"进行分组,图表如下所示.

I set Chart type to Grid, and select Users and group by Country or region, the chart looks like this.

以相同的方式,我将图表配置为显示按浏览器版本显示的唯一用户数",图表如下所示.

In a same way, I configure the chart to display Unique count of Users by Browser version, the chart looks like this.

我得到:

没有国家或地区"值的用户"数据.

No data for 'users' with values of 'Country or region'.

对于用户没有数据……"问题,请确保您手动添加脚本.您可以检查""部分,可以解决无数据问题.

For "No data for 'users'…" issue, please make sure if you add the scripts by hand. And you could check "No data on Page Views, Browsers, Usage" section to troubleshoot no data issue.

这篇关于在App Insights中获取用户信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆