AnalyticsEventEmitter.js
function (types) {

    that.logger.logEnter('callback in loadEventTypes, types:\n' + JSON.stringify(types));

    // The "raw" event type data has a deeply-nested structure and it
    // contains a bunch of stuff we're not interested in.  We'll just
    // store the names of each type's properties.
    Object.keys(types).forEach(function (typeName) {
      if (types[typeName].properties) {
        eventTypes[typeName] = Object.keys(types[typeName].properties);
      }
    });

    that.logger.log('eventTypes:\n' + JSON.stringify(eventTypes));

    if (process.env.TESTONLY_EMIT_INTERNAL_EVENTS) {
      that.emit(that.CONSTANT.internal_event_load_types_done);
    }

    // Now the event buffer can begin processing events.
    eventBuffer.ready();

    that.logger.logExit('callback in loadEventTypes');
  }
function (types) {

    that.logger.logEnter('callback in loadEventTypes, types:\n' + JSON.stringify(types));

    // The "raw" event type data has a deeply-nested structure and it
    // contains a bunch of stuff we're not interested in.  We'll just
    // store the names of each type's properties.
    Object.keys(types).forEach(function (typeName) {
      if (types[typeName].properties) {
        eventTypes[typeName] = Object.keys(types[typeName].properties);
      }
    });

    that.logger.log('eventTypes:\n' + JSON.stringify(eventTypes));

    if (process.env.TESTONLY_EMIT_INTERNAL_EVENTS) {
      that.emit(that.CONSTANT.internal_event_load_types_done);
    }

    // Now the event buffer can begin processing events.
    eventBuffer.ready();

    that.logger.logExit('callback in loadEventTypes');
  }
function ( types ) { that . logger . logEnter ( 'callback in loadEventTypes, types:\n' + JSON . stringify ( types ) ) ; // The "raw" event type data has a deeply-nested structure and it // contains a bunch of stuff we're not interested in.  We'll just // store the names of each type's properties. Object . keys ( types ) . forEach ( function ( typeName ) { if ( types [ typeName ] . properties ) { eventTypes [ typeName ] = Object . keys ( types [ typeName ] . properties ) ; } } ) ; that . logger . log ( 'eventTypes:\n' + JSON . stringify ( eventTypes ) ) ; if ( process . env . TESTONLY_EMIT_INTERNAL_EVENTS ) { that . emit ( that . CONSTANT . internal_event_load_types_done ) ; } // Now the event buffer can begin processing events. eventBuffer . ready ( ) ; that . logger . logExit ( 'callback in loadEventTypes' ) ; }
Get the event types from the analytics repository.
Get the event types from the analytics repository .