ApplicationInsights-JS/README.md

49 строки
2.5 KiB
Markdown
Исходник Обычный вид История

2015-04-15 23:40:58 +03:00
# Microsoft Application Insights JavaScript SDK
2015-08-18 16:10:32 +03:00
[Application Insights](https://azure.microsoft.com/services/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
2015-08-18 16:10:32 +03:00
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](http://aka.ms/ainow).
## Get started
To use this SDK, you'll need a subscription to [Microsoft Azure](https://azure.com). (There's a free package.)
In the [Azure Preview Portal](https://portal.azure.com), 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.](https://azure.microsoft.com/documentation/articles/app-insights-javascript/)
2015-04-10 01:48:47 +03:00
2015-07-22 01:51:05 +03:00
## API reference
2015-08-18 16:10:32 +03:00
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:
* [JavaScript API reference](https://github.com/Microsoft/ApplicationInsights-JS/blob/master/API-reference.md)
* [API overview with portal examples](https://azure.microsoft.com/documentation/articles/app-insights-api-custom-events-metrics/)
2015-07-22 01:51:05 +03:00
2015-04-10 01:48:47 +03:00
## To build:
* Visual Studio 2013 Ultimate with Update 4 or later
2015-04-10 01:48:47 +03:00
* Clone the Git repository
2015-04-15 23:45:18 +03:00
* Open Visual Studio solution (devenv JavaScript\Microsoft.ApplicationInsights.JavaScript.sln)
* Build solution in Visual Studio
## To run check-in tests
2015-08-03 23:18:33 +03:00
* `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
2015-08-03 23:45:25 +03:00
## Check out the Wiki for other useful info
2015-08-03 23:45:25 +03:00
https://github.com/Microsoft/ApplicationInsights-JS/wiki
## Contributing
We strongly welcome and encourage contributions to this project. Please read the [contributor's guide][ContribGuide] located in the ApplicationInsights-Home repository. If making a large change we request that you open an [issue][GitHubIssue] first. We follow the [Git Flow][GitFlow] approach to branching.