Application Insights for web pages with custom events

The purpose of this demo is to demonstrate the usage of Application Insights on web pages, what metrics it captures, and how custom events can be used to track the usage of certain features on a web page. This can be helpful when tracking client-side features that cannot be monitored on the server. This can be quite useful for Jamstack sites as well.

This demo was built with the help of the official Azure documentation.

//button on click function checks if appInsights global variable exists

Go to page 2