From 71790b07b72ed3a50081a91a873afad125ff94eb Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Fri, 30 Sep 2016 17:28:32 -0500 Subject: [PATCH] feat(analytics): Implement sendFeedback method --- analytics.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/analytics.js b/analytics.js index 656a5fec1..ebaf3d332 100644 --- a/analytics.js +++ b/analytics.js @@ -19,5 +19,9 @@ action + '.' + browserName, label ? label : "", value ? value : null); }; + Analytics.prototype.sendFeedback = function (data, label, browserName) { + this.sendEvent('feedback.rating', data.overall, label, browserName); + }; + ctx.Analytics = Analytics; -}(window)); \ No newline at end of file +}(window));