How to stop data that are sent automatically in application insights via JavaScript SDK?

Gowtham Lcs 6 Reputation points
2020-08-03T13:15:02.23+00:00

Even though I send only a single event for Application Insights, some data are sent additionally from browser as seen from the Browser Network log. They are,

  1. RemoteDependencyData
  2. PageViewData
  3. PageviewPerformanceData

The above data are additionally and automatically sent even though I send only a single custom event. Also I don't track any page view. I just send only a single custom event and there are multiple data sent that contains the name as mentioned above in the list.

Can anyone please help me how to restrict sending the above additional data?

With the help of "disableAjaxTracking", I could prevent "RemoteDependencyData"from being sent. But still, I am not sure how to restrict sending PageViewData and PageviewPerformanceData .

I use trackEvent() to send the single event and I use JavaScript SDK for application insights.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,264 questions
{count} vote

1 answer

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 18,756 Reputation points
    2020-08-07T05:39:23.837+00:00

    @Gowtham Lcs Kindly note that when you enable application insights using JavaScript SDK , by default, it automatically enables the telemetry items shown in below snapshot. And you can always use TelemetryInitializer to restrict the data. 16240-2020-08-07-10-30-31-azure-application-insights-for.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.