code: function install (Vue, options) {
  
    const { id } = options
    
    if (options.appInsights) {
      Vue.appInsights = options.appInsights
    } else {
      Vue.appInsights = AppInsights
      Vue.appInsights.downloadAndSetup({ instrumentationKey: id }) 
    }
  
    const router = options.router
  
    // Watch route event if router option is defined.
    if (router) {
  
      if (options.trackInitialPageView !== false) {
        setupPageTracking(options, Vue);
      } else {
        router.onReady(() => setupPageTracking(options, Vue))
      }
  
    }
  
    Object.defineProperty(Vue.prototype, '$appInsights', {
      get: () => Vue.appInsights
    })
  
  }
docs: Install function passed to Vue.use() show documentation on vue.js website.
  
  @param Vue
  @param options