diff --git a/mailpoet/assets/js/src/settings/store/actions/open_email_customizer.ts b/mailpoet/assets/js/src/settings/store/actions/open_email_customizer.ts index 60f7421202..48d1e9d4da 100644 --- a/mailpoet/assets/js/src/settings/store/actions/open_email_customizer.ts +++ b/mailpoet/assets/js/src/settings/store/actions/open_email_customizer.ts @@ -1,3 +1,5 @@ +import { MailPoet } from 'mailpoet'; + export function* openEmailCustomizer(newsletterId?: string) { let id = newsletterId; if (!id) { @@ -11,7 +13,9 @@ export function* openEmailCustomizer(newsletterId?: string) { return { type: 'SAVE_FAILED', error }; } id = res.data.signup_confirmation.transactional_email_id; + MailPoet.trackEvent('Editor > Confirmation email customizer enabled'); } + MailPoet.trackEvent('User Open confirmation email customizer'); window.location.href = `?page=mailpoet-newsletter-editor&id=${id}`; return null; } diff --git a/mailpoet/lib/Analytics/Reporter.php b/mailpoet/lib/Analytics/Reporter.php index 728d358c73..49260631c5 100644 --- a/mailpoet/lib/Analytics/Reporter.php +++ b/mailpoet/lib/Analytics/Reporter.php @@ -31,6 +31,7 @@ use MailPoet\Services\AuthorizedEmailsController; use MailPoet\Settings\Pages; use MailPoet\Settings\SettingsController; use MailPoet\Settings\TrackingConfig; +use MailPoet\Subscribers\ConfirmationEmailCustomizer; use MailPoet\Subscribers\NewSubscriberNotificationMailer; use MailPoet\Subscribers\SubscriberListingRepository; use MailPoet\Tags\TagRepository; @@ -204,6 +205,7 @@ class Reporter { 'Number of segments with multiple conditions' => $this->segmentsRepository->getSegmentCountWithMultipleFilters(), 'Support tier' => $this->subscribersFeature->hasPremiumSupport() ? 'premium' : 'free', 'Unauthorized email notice shown' => !empty($this->settings->get(AuthorizedEmailsController::AUTHORIZED_EMAIL_ADDRESSES_ERROR_SETTING)), + 'Sign-up confirmation: Confirmation Template > using html email editor template' => (boolean)$this->settings->get(ConfirmationEmailCustomizer::SETTING_ENABLE_EMAIL_CUSTOMIZER, false), ]; $result = array_merge( diff --git a/mailpoet/views/newsletter/templates/components/save.hbs b/mailpoet/views/newsletter/templates/components/save.hbs index b84c778d35..2bd474e264 100644 --- a/mailpoet/views/newsletter/templates/components/save.hbs +++ b/mailpoet/views/newsletter/templates/components/save.hbs @@ -31,7 +31,7 @@
  <%= __('Autosaved') %> - +