Skip to content

Commit 09b7d22

Browse files
Update javascript.md
Updated the below line of code for npm setup based on customer feedback. Also validated this here - https://github.com/microsoft/ApplicationInsights-JS. appInsights.trackPageView(); // Manually call trackPageView to establish the current user/session/pageview
1 parent ccfea65 commit 09b7d22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

articles/azure-monitor/app/javascript.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const appInsights = new ApplicationInsights({ config: {
3737
/* ...Other Configuration Options... */
3838
} });
3939
appInsights.loadAppInsights();
40+
appInsights.trackPageView(); // Manually call trackPageView to establish the current user/session/pageview
4041
```
4142

4243
### Snippet based setup

0 commit comments

Comments
 (0)