You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/javascript.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,13 +24,13 @@ Application Insights can be used with any web pages - you just add a short piece
24
24
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).
25
25
2. Copy the instrumentation key from the resource where you want your JavaScript telemetry to be sent.
26
26
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)
28
28
*[JavaScript Snippet](#snippet-based-setup)
29
29
30
30
> [!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.
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.
48
48
49
49
```html
50
50
<scripttype="text/javascript">
@@ -224,7 +224,7 @@ If you're using the current application insights PRODUCTION SDK (1.0.20) and wan
0 commit comments