Skip to content

Commit a8c23e9

Browse files
committed
App Insights Matt's JavaScript changes
1 parent 7b050ed commit a8c23e9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

articles/azure-monitor/app/javascript.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Find out about the performance and usage of your web page or app. If you add [Ap
1616

1717
Application Insights can be used with any web pages - you just add a short piece of JavaScript. If your web service is [Java](java-get-started.md) or [ASP.NET](asp-net.md), you can use the server-side SDKs in conjunction with the client-side JavaScript SDK to get an end-to-end understanding of your app's performance.
1818

19-
## Adding the Javascript SDK
19+
## Adding the JavaScript SDK
2020

2121
1. First you need an Application Insights resource. If you don't already have a resource and instrumentation key, follow the [create a new resource instructions](create-new-resource.md).
2222
2. Copy the instrumentation key from the resource where you want your JavaScript telemetry to be sent.
@@ -25,7 +25,9 @@ Application Insights can be used with any web pages - you just add a short piece
2525
* [JavaScript Snippet](#snippet-based-setup)
2626

2727
> [!IMPORTANT]
28-
> You only need to use one of the methods below for adding the Application Insights JavaScript SDK to your application. If you use the npm based setup, don't use the snippet based setup. The same goes for the reverse scenario when using the snippet based approach, don't also use the npm based setup.
28+
> > Only use one method to add the JavaScript SDK to your application. If you use the NPM Setup, don't use the Snippet and vice versa.
29+
> [!NOTE]
30+
> NPM Setup installs the JavaScript SDK as a dependency to your project, enabling IntelliSense, whereas the Snippet fetches the SDK at runtime. Both support the same features. However, developers who desire more custom events and configuration generally opt for NPM Setup whereas users looking for quick enablement of out-of-the-box web analytics opt for the Snippet.
2931
3032
### npm based setup
3133

@@ -205,7 +207,7 @@ This version comes with the bare minimum number of features and functionalities
205207

206208
## Examples
207209

208-
For runnable examples, see [Application Insights Javascript SDK Samples](https://github.com/topics/applicationinsights-js-demo)
210+
For runnable examples, see [Application Insights JavaScript SDK Samples](https://github.com/topics/applicationinsights-js-demo)
209211

210212
## Upgrading from the old Version of Application Insights
211213

@@ -258,4 +260,3 @@ The Application Insights JavaScript SDK is open-source to view the source code o
258260
* [Track usage](usage-overview.md)
259261
* [Custom events and metrics](api-custom-events-metrics.md)
260262
* [Build-measure-learn](usage-overview.md)
261-

0 commit comments

Comments
 (0)