Application Insights starttrackevent stoptrackevent 在单个会话中跨页面
Application Insights starttrackevent stopstrackevent across pages in a single session
我无法追踪这方面的文档,所以希望有人知道我无法获得应用程序洞察力来跨页面捕获 starttrackevent 和 stoptrackevent 上的遥测数据。这是一个 asp.net mvc 应用程序,因此 SPA 不在此处发挥作用。
我担心我可能做错了什么,但可能的情况是它不支持它。
流量:
- 用户第一次访问网站
- 用户执行触发 startTrackEvent("eventName") 的操作;
- 用户导航到新页面
- 用户执行触发 stopTrackEvent("eventName") 的操作;
-- 来自 appInsights 自述文件
https://github.com/microsoft/ApplicationInsights-JS/blob/master/README.md
appInsights.startTrackEvent("event");
appInsights.stopTrackEvent("event", null, {customProp1: "some value"});
不是根据文档,而是通过测试,可以确认当加载新页面时,appInsights 不会持续存在 start/stoptrackevent。
我无法追踪这方面的文档,所以希望有人知道我无法获得应用程序洞察力来跨页面捕获 starttrackevent 和 stoptrackevent 上的遥测数据。这是一个 asp.net mvc 应用程序,因此 SPA 不在此处发挥作用。
我担心我可能做错了什么,但可能的情况是它不支持它。
流量:
- 用户第一次访问网站
- 用户执行触发 startTrackEvent("eventName") 的操作;
- 用户导航到新页面
- 用户执行触发 stopTrackEvent("eventName") 的操作;
-- 来自 appInsights 自述文件 https://github.com/microsoft/ApplicationInsights-JS/blob/master/README.md
appInsights.startTrackEvent("event");
appInsights.stopTrackEvent("event", null, {customProp1: "some value"});
不是根据文档,而是通过测试,可以确认当加载新页面时,appInsights 不会持续存在 start/stoptrackevent。