diff --git a/customize.dist/pages/index.js b/customize.dist/pages/index.js
index ee3c7fa46..34c0b6db4 100644
--- a/customize.dist/pages/index.js
+++ b/customize.dist/pages/index.js
@@ -2,11 +2,12 @@ define([
'jquery',
'/api/config',
'/common/hyperscript.js',
+ '/common/common-feedback.js',
'/customize/messages.js',
'/customize/application_config.js',
'/common/outer/local-store.js',
'/customize/pages.js'
-], function ($, Config, h, Msg, AppConfig, LocalStore, Pages) {
+], function ($, Config, h, Feedback, Msg, AppConfig, LocalStore, Pages) {
var urlArgs = Config.requireConf.urlArgs;
var isAvailableType = function (x) {
@@ -84,6 +85,7 @@ define([
$(crowdFunding).click(function () {
_link.click();
+ Feedback.send('HOME_SUPPORT_CRYPTPAD');
});
var blocks = h('div.container',[
diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js
index 714d40a84..e04b8f5cc 100644
--- a/www/common/common-ui-elements.js
+++ b/www/common/common-ui-elements.js
@@ -1311,21 +1311,27 @@ define([
var urls = common.getMetadataMgr().getPrivateData().accounts;
var makeDonateButton = function () {
- $('', {
+ var $a = $('', {
'class': 'cp-limit-upgrade btn btn-success',
href: urls.donateURL,
rel: "noreferrer noopener",
target: "_blank",
}).text(Messages.supportCryptpad).appendTo($container);
+ $a.click(function () {
+ Feedback.send('SUPPORT_CRYPTPAD');
+ });
};
var makeUpgradeButton = function () {
- $('', {
+ var $a = $('', {
'class': 'cp-limit-upgrade btn btn-success',
href: urls.upgradeURL,
rel: "noreferrer noopener",
target: "_blank",
}).text(Messages.upgradeAccount).appendTo($container);
+ $a.click(function () {
+ Feedback.send('UPGRADE_ACCOUNT');
+ });
};
if (!Config.removeDonateButton) {