diff --git a/mailpoet/lib/Cron/Workers/StatsNotifications/Worker.php b/mailpoet/lib/Cron/Workers/StatsNotifications/Worker.php index 6072f33ca0..e9efafcaa7 100644 --- a/mailpoet/lib/Cron/Workers/StatsNotifications/Worker.php +++ b/mailpoet/lib/Cron/Workers/StatsNotifications/Worker.php @@ -136,6 +136,7 @@ class Worker { $statistics = $this->newsletterStatisticsRepository->getStatistics($newsletter); $clicked = ($statistics->getClickCount() * 100) / $statistics->getTotalSentCount(); $opened = ($statistics->getOpenCount() * 100) / $statistics->getTotalSentCount(); + $machineOpened = ($statistics->getMachineOpenCount() * 100) / $statistics->getTotalSentCount(); $unsubscribed = ($statistics->getUnsubscribeCount() * 100) / $statistics->getTotalSentCount(); $subject = $sendingQueue->getNewsletterRenderedSubject(); $subscribersCount = $this->subscribersRepository->getTotalSubscribers(); @@ -153,6 +154,7 @@ class Worker { 'linkStats' => WPFunctions::get()->getSiteUrl(null, '/wp-admin/admin.php?page=mailpoet-newsletters&stats=' . $newsletter->getId()), 'clicked' => $clicked, 'opened' => $opened, + 'machineOpened' => $machineOpened, 'subscribersLimitReached' => $this->subscribersFeature->check(), 'hasValidApiKey' => $hasValidApiKey, 'subscribersLimit' => $this->subscribersFeature->getSubscribersLimit(), diff --git a/mailpoet/views/emails/statsNotification.html b/mailpoet/views/emails/statsNotification.html index 9d2ebf9a71..2177fe4bd7 100644 --- a/mailpoet/views/emails/statsNotification.html +++ b/mailpoet/views/emails/statsNotification.html @@ -153,52 +153,6 @@ -
- - - - -
- - <%= opened_stats_text(opened) %> -
-
- - - - -

- - <%= number_format_i18n(opened, 1) %>% - -

- - - - - - - - -
- - <%= __('open rate') %> - -
- - - - - - -
- - - - + + +
@@ -227,7 +181,91 @@ + +
- <%= __('click rate') %> + <%= __('clicked') %> + +
+
+
+ + + + + + + + + + + + +
+ +
+ + + + + + + + + +
+

+ + <%= number_format_i18n(opened, 1) %>% + +

+
+ + + + +
+ + <%= __('opened') %> + +
+
+
+ +
+ + + + + + +
+

+ + <%= number_format_i18n(machineOpened, 1) %>% + +

+
+ + +
+ + <%= __('machine-opened') %>