function addEvent(action, attributes) {
    var eventObj = {
      hitType: 'event',
      eventCategory: 'reveal-js',
      eventAction: action,
      eventLabel: ''
    };

    attributes = attributes || {};
    // Make sure eventValue is an integer, or GA won't register the event
    if ('eventValue' in attributes) {
      attributes.eventValue = parseInt(attributes.eventValue);
    }
    eventObj = extend(eventObj, attributes);

    ga('send', eventObj);
    triggerEvent(window, 'reveal-ga', eventObj);
  }
/**
   * Send an event to Google Analytics.
   *
   * @param string category   The category for the event.
   * @param string action     The action that occurred.
   * @param object attributes {
   *   Optional. Additional attributes to pass to Google Analytics. Default
   *   is an empty object.
   *
   *   @type string eventCategory The category for this event. Default is
   *                              "reveal-js".
   *   @type string eventLabel    A label to attach to this event. Default is
   *                              an empty string.
   *   @type integer eventValue    A value to attach to this event. Default is
   *                              null
   * }
   */
Send an event to Google Analytics.
@param string category   The category for the event.
@param string action     The action that occurred.
@param object attributes {
Optional. Additional attributes to pass to Google Analytics. Default
is an empty object.

@type string eventCategory The category for this event. Default is
"reveal-js".
@type string eventLabel    A label to attach to this event. Default is
an empty string.
@type integer eventValue    A value to attach to this event. Default is
null
}
Send an event to Google Analytics . @param string category The category for the event . @param string action The action that occurred . @param object attributes { Optional . Additional attributes to pass to Google Analytics . Default is an empty object . @type string eventCategory The category for this event . Default is " reveal - js " . @type string eventLabel A label to attach to this event . Default is an empty string . @type integer eventValue A value to attach to this event . Default is null }
function addEvent(action, attributes) {
    var eventObj = {
      hitType: 'event',
      eventCategory: 'reveal-js',
      eventAction: action,
      eventLabel: ''
    };
    attributes = attributes || {};
    if ('eventValue' in attributes) {
      attributes.eventValue = parseInt(attributes.eventValue);
    }
    eventObj = extend(eventObj, attributes);
    ga('send', eventObj);
    triggerEvent(window, 'reveal-ga', eventObj);
  }
function addEvent ( action , attributes ) { var eventObj = { hitType : 'event' , eventCategory : 'reveal-js' , eventAction : action , eventLabel : '' } ; attributes = attributes || { } ; if ( 'eventValue' in attributes ) { attributes . eventValue = parseInt ( attributes . eventValue ) ; } eventObj = extend ( eventObj , attributes ) ; ga ( 'send' , eventObj ) ; triggerEvent ( window , 'reveal-ga' , eventObj ) ; }
Send an event to Google Analytics.
Send an event to Google Analytics .
// Make sure eventValue is an integer, or GA won't register the event