gpt4 book ai didi

azure - Application Insights 如何跟踪 User_Id?

转载 作者:行者123 更新时间:2023-12-03 23:17:28 38 4
gpt4 key购买 nike

我正在运行具有应用程序洞察力的 Azure Web 应用程序。

我知道 Microsoft 无法显示真实 IP (Client_IP),因此我将真实 IP 地址添加到所有请求 (Ip)。

我有一位访问者 client_id="h9zbt"在过去 24 小时内使用 48 个不同的 client_IP 地址。

同一用户还拥有多个真实的 IPv6 地址。

我喜欢在我的网站上屏蔽这个 IP,但我觉得这看起来很奇怪。

真的是同一个用户吗?

Application Insight 如何跟踪 User_Id?

Image link

最佳答案

User IDs should persist across user sessions to track how users behave over time. There are various approaches for persisting the ID.

A definition of a user that you already have in your service.
If the service has access to a browser, it can pass the browser a cookie with an ID in it. The ID will persist for as long as the cookie

remains in the user's browser. If necessary, you can use a new ID each session, but the results about users will be limited. For example, you won't be able to see how a user's behavior changes over time.

The ID should be a Guid or another string complex enough to identify each user uniquely. For example, it could be a long random number.

If the ID contains personally identifying information about the user, it is not an appropriate value to send to Application Insights as a user ID. You can send such an ID as an authenticated user ID, but it does not fulfill the user ID requirement for usage scenarios.

在 Azure 文档中提到。 https://learn.microsoft.com/en-us/azure/application-insights/app-insights-usage-send-user-context

关于azure - Application Insights 如何跟踪 User_Id?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47793926/

38 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com