Przeglądaj źródła

feat(analytics): Implement sendFeedback method

master
hristoterezov 8 lat temu
rodzic
commit
71790b07b7
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5
    1
      analytics.js

+ 5
- 1
analytics.js Wyświetl plik

@@ -19,5 +19,9 @@
19 19
         action + '.' + browserName, label ? label : "", value ? value : null);
20 20
   };
21 21
 
22
+  Analytics.prototype.sendFeedback = function (data, label, browserName) {
23
+      this.sendEvent('feedback.rating', data.overall, label, browserName);
24
+  };
25
+
22 26
   ctx.Analytics = Analytics;
23
-}(window));
27
+}(window));

Ładowanie…
Anuluj
Zapisz