1

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>

SarangRN
  • 91
  • 13

0 Answers0