With the Application Insights JavaScript SDK you can collect and investigate the performance and usage of your web page or app. Historically we have offered onboarding through manually adding a script to your application and redeploying. Manually adding the script is still supported, but recently we have added the ability to add client-side monitoring from the Azure portal in a few clicks as well.
Enablement
If you have enabled Application Insights in Azure, you can add page view and user telemetry. You can learn how to switch on server-side monitoring in our documentation.
1. Select Settings -> Application Settings
2. Under App Settings, add a new key value pair:
Key: APPINSIGHTS_JAVASCRIPT_ENABLED
Value: true
3. Save the settings and Restart your app in the Overview tab.
The Application Insights JavaScript SDK is now injected into each web page.
Feedback
If you have any questions or experiencing any problems with the JavaScript SDK, feel free to open an issue on GitHub.