Skip to content

Commit a99a875

Browse files
authored
Merge pull request #92005 from johnpapa/patch-1
npm should be lower case
2 parents 314841c + 5d1f980 commit a99a875

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/azure-monitor/app/javascript.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ Application Insights can be used with any web pages - you just add a short piece
2424
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).
2525
2. Copy the instrumentation key from the resource where you want your JavaScript telemetry to be sent.
2626
3. Add the Application Insights JavaScript SDK to your web page or app via one of the following two options:
27-
* [NPM Setup](#npm-based-setup)
27+
* [npm Setup](#npm-based-setup)
2828
* [JavaScript Snippet](#snippet-based-setup)
2929

3030
> [!IMPORTANT]
31-
> 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.
31+
> 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.
3232
33-
### NPM based setup
33+
### npm based setup
3434

3535
```js
3636
import { ApplicationInsights } from '@microsoft/applicationinsights-web'
@@ -44,7 +44,7 @@ appInsights.loadAppInsights();
4444

4545
### Snippet based setup
4646

47-
If your app does not use NPM, you can directly instrument your webpages with Application Insights by pasting this snippet at the top of each your pages. Preferably, it should be the first script in your `<head>` section so that it can monitor any potential issues with all of your dependencies. If you are using Blazor Server App, add the snippet at the top of the file `_Host.cshtml` in the `<head>` section.
47+
If your app does not use npm, you can directly instrument your webpages with Application Insights by pasting this snippet at the top of each your pages. Preferably, it should be the first script in your `<head>` section so that it can monitor any potential issues with all of your dependencies. If you are using Blazor Server App, add the snippet at the top of the file `_Host.cshtml` in the `<head>` section.
4848

4949
```html
5050
<script type="text/javascript">
@@ -224,7 +224,7 @@ If you're using the current application insights PRODUCTION SDK (1.0.20) and wan
224224
"https://az416426.vo.msecnd.net/scripts/b/ai.2.min.js"
225225
```
226226

227-
- NPM scenario: Call `downloadAndSetup` to download the full ApplicationInsights script from CDN and initialize it with instrumentation key:
227+
- npm scenario: Call `downloadAndSetup` to download the full ApplicationInsights script from CDN and initialize it with instrumentation key:
228228

229229
```ts
230230
appInsights.downloadAndSetup({

0 commit comments

Comments
 (0)