Reputation: 140
I am trying to use Azure applicationinsights for client side javascript so imported following module in html as follows
<script type="module" >
import { ApplicationInsights } from '@microsoft/applicationinsights-web'
const appInsights = new ApplicationInsights({ config: {
connectionString : '...............'
/* ...Other Configuration Options... */
} });
appInsights.loadAppInsights();
appInsights.trackPageView(); // Manually call trackPageView to establish the current user/session/pageview
</script>
Upvotes: 1
Views: 264