Microsoft Application Insights JavaScript SDK
Application Insights tells you about your app's performance and usage. By adding a few lines of code to your web pages, you get data about how many users you have, which pages are most popular, how fast pages load, whether they throw exceptions, and more. And you can add code to track more detailed user activity.
Try Application Insights with JavaScript SDK - no Azure subscription required
If you don't have an Azure subscription and would like to try Application Insights on one of your own web pages, visit Try Application Insights Now.
Get started
To use this SDK, you'll need a subscription to Microsoft Azure. (There's a free package.)
In the Azure Preview Portal, open an Application Insights resource.
Get "code to monitor my web pages" from the Quick Start page, and insert it in the head of your web pages.
Use your web pages, and then look for user and page view results in the Application Insights resource.
Learn more.
API reference
Data on users, page views, and exceptions are provided out of the box. You can write your own code to track specific events and metrics.
See:
To build:
- Visual Studio 2013 Ultimate with Update 4 or later
- Clone the Git repository
- Open Visual Studio solution (devenv JavaScript\Microsoft.ApplicationInsights.JavaScript.sln)
- Build solution in Visual Studio
To run check-in tests
powershell "& .\RunTestsInBrowser.ps1"
to run Tests.html
in a browser (you might need to call Set-ExecutionPolicy to be able to execute the script)- Don't forget to build the solution after changing TypeScript files
- Refresh Tests.html in the browser to re-run tests
Check out the Wiki for other useful info
https://github.com/Microsoft/ApplicationInsights-JS/wiki
Contributing
We strongly welcome and encourage contributions to this project. Please read the contributor's guide located in the ApplicationInsights-Home repository. If making a large change we request that you open an issue first. We follow the Git Flow approach to branching.