src/universal-analytics.c
void sendTracking(UATracker_t* tracker, trackingType_t type, UAOptions_t* opts){
  assert(NULL != tracker);
  assert((*tracker).__configured__ == UA_MEM_MAGIC_CONFIG);


  if(NULL != opts){
    setParameterStateList(tracker, UA_EPHEMERAL, opts->options);
  }

  setParameterState(tracker, 
      UA_EPHEMERAL, UA_TRACKING_TYPE, 0, 
      getTrackingType(tracker, type)
  );

  queueTracking(tracker);
  
  if(getTrackerOption(tracker, UA_OPTION_QUEUE) == 0){
    HTTPflush(& tracker->queue);
  }
  
  
  resetQuery(tracker); 

}
/* Prepare ephemeral state on a tracker and dispatch its query */
Prepare ephemeral state on a tracker and dispatch its query
Prepare ephemeral state on a tracker and dispatch its query
void sendTracking(UATracker_t* tracker, trackingType_t type, UAOptions_t* opts){
  assert(NULL != tracker);
  assert((*tracker).__configured__ == UA_MEM_MAGIC_CONFIG);
  if(NULL != opts){
    setParameterStateList(tracker, UA_EPHEMERAL, opts->options);
  }
  setParameterState(tracker, 
      UA_EPHEMERAL, UA_TRACKING_TYPE, 0, 
      getTrackingType(tracker, type)
  );
  queueTracking(tracker);
  if(getTrackerOption(tracker, UA_OPTION_QUEUE) == 0){
    HTTPflush(& tracker->queue);
  }
  resetQuery(tracker); 
}
void sendTracking ( UATracker_t * tracker , trackingType_t type , UAOptions_t * opts ) { assert ( NULL != tracker ) ; assert ( ( * tracker ) . __configured__ == UA_MEM_MAGIC_CONFIG ) ; if ( NULL != opts ) { setParameterStateList ( tracker , UA_EPHEMERAL , opts -> options ) ; } setParameterState ( tracker , UA_EPHEMERAL , UA_TRACKING_TYPE , 0 , getTrackingType ( tracker , type ) ) ; queueTracking ( tracker ) ; if ( getTrackerOption ( tracker , UA_OPTION_QUEUE ) == 0 ) { HTTPflush ( & tracker -> queue ) ; } resetQuery ( tracker ) ; }
Prepare ephemeral state on a tracker and dispatch its query
Prepare ephemeral state on a tracker and dispatch its query