Tracking new events

This commit is contained in:
Amine Ben hammou
2017-08-24 10:19:03 +00:00
parent d92b1f57bd
commit 609f1b5e67
9 changed files with 1139 additions and 1075 deletions

View File

@@ -82,6 +82,11 @@
// close popup
MailPoet.Modal.close();
MailPoet.trackEvent('Forms > Add new custom field', {
'Field type': data.type,
'MailPoet Free version': window.mailpoet_version
});
if(WysijaForm.updateBlock(response.data) === true) {
// trigger save, if a block has been updated
mailpoet_form_save(false);