diff --git a/server.js b/server.js index 17e793f29..49cd9108f 100644 --- a/server.js +++ b/server.js @@ -86,6 +86,7 @@ var setHeaders = (function () { (function () { if (!config.logFeedback) { return; } +console.log(config.logFeedback); const logFeedback = function (url) { url.replace(/\?(.*?)=/, function (all, fb) { diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 70d3ed184..3422ef6c8 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -2354,19 +2354,23 @@ define([ $(yes).click(function () { modal.delete(); common.openURL('https://opencollective.com/cryptpad/contribute'); + Feedback.send('CROWDFUNDING_YES'); }); $(modal.popup).find('a').click(function (e) { e.stopPropagation(); e.preventDefault(); modal.delete(); common.openURL('https://opencollective.com/cryptpad/'); + Feedback.send('CROWDFUNDING_LINK'); }); $(no).click(function () { modal.delete(); + Feedback.send('CROWDFUNDING_NO'); }); $(never).click(function () { modal.delete(); common.setAttribute(['general', 'crowdfunding'], false); + Feedback.send('CROWDFUNDING_NEVER'); }); });