public static async Task TrackEventAsync(string category, string action, string label, int value = 1)
 {
     if (!IsEnabled)
     {
         return;
     }
     await instance.TrackEventAsync(category, action, label, value, false, ExtraParameters, UserAgent);
 }
Exemple #2
0
        public static void TrackEventAsync(string category, string action, string label, int value = 1)
        {
            if (!IsEnabled)
            {
                return;
            }
            var pageView = new EventTracking
            {
                Category = category,
                Action   = action,
                Label    = label,
                Value    = value
            };

            FillParameters(pageView);
            instance.TrackEventAsync(pageView);
        }