Browse Source

feat(analytics): Implement sendFeedback method

j8
hristoterezov 8 years ago
parent
commit
71790b07b7
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      analytics.js

+ 5
- 1
analytics.js View File

19
         action + '.' + browserName, label ? label : "", value ? value : null);
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
   ctx.Analytics = Analytics;
26
   ctx.Analytics = Analytics;
23
-}(window));
27
+}(window));

Loading…
Cancel
Save