code: function initialize() {
      switch (this.type) {
        case 'ga':
          ga('create', this.key, this.domain);
          ga('send', 'pageview');
        break;
  
        case 'segment':
        default:
          window.analytics.load(this.key);
          window.analytics.page();
        break;
      }
    }
docs: After initialization, load the required analytics stack.
  
  @api private