Application Management Insights javascript injection

The Application Insights extensions in Visual Studio and Azure appear to automatically add a javascript snippet to track page views, even if you enable docs by using the Install Application button APPINSIGHTS_JAVASCRIPT_ENABLED = true.

Other docs show how to add the same javascript to my layout that I did. As a result, I now see JavaScript javascript twice, once from my mind, once from AI magic. I would prefer to control this myself - how can I prevent the tool from changing pages for script input? Setting APPINSIGHTS_JAVASCRIPT_ENABLED to false does not work.

I am working in an ASP.NET Core 2.0 web application.

+5
source share
1 answer

Try upgrading to the latest version of Microsoft.ApplicationInsights.AspNetCore. Today they released a new version (2.2.0) that solved the problem for me! The javascript part is no longer added automatically!

+2
source

Source: https://habr.com/ru/post/1273901/


All Articles