public void SendEvent(string category, string action, string label, int?value) { try { var nvc = HitInfoFactory.CreateEventHit(BasePostDataValues, category, action, label, value); sendImmediately(nvc); } catch { } }
public ITrackerBatch AddEvent(string category, string action, string label, int?value) { var hit = HitInfoFactory.CreateEventHit(_tracker.BasePostDataValues, category, action, label, value); checkFlush(); lock (_syncRoot) { _cache.Add(hit); } return(this); }