Add score to stats page

[MAILPOET-3525]
This commit is contained in:
Pavel Dohnal
2021-04-21 12:21:02 +02:00
committed by Veljko V
parent 8e1103465e
commit 74f9505772
3 changed files with 26 additions and 1 deletions

View File

@ -45,6 +45,7 @@ class SubscriberStats extends APIEndpoint {
'total_sent' => $statistics->getTotalSentCount(),
'open' => $statistics->getOpenCount(),
'click' => $statistics->getClickCount(),
'engagement_score' => $subscriber->getEngagementScore(),
];
$woocommerce = $statistics->getWooCommerceRevenue();
if ($woocommerce instanceof WooCommerceRevenue) {