code: function define() {
      var type = this.data.type || this.defaults.type;
  
      //
      // If not production use development keys.
      //
      if (process.env.NODE_ENV !== 'production') this.data.key = this[type];
  
      //
      // Remove unneeded static libraries, always keep Cortex.JS
      //
      this.js = this.js.filter(function filter(file) {
        return ~file.indexOf('analytics/base.js') || ~file.indexOf('static/' + type);
      });
  
      return this;
    }
docs: Set proper key and library based on the data.type.
  
  @return {Pagelet}
  @api private