Differentiate machine and humans opens on subscriber stats API

[MAILPOET-3741]
This commit is contained in:
Rostislav Wolny
2021-08-26 15:15:34 +02:00
committed by Veljko V
parent bbf19d07c8
commit 14ff48c7fa
3 changed files with 35 additions and 18 deletions

View File

@ -44,6 +44,7 @@ class SubscriberStats extends APIEndpoint {
'email' => $subscriber->getEmail(),
'total_sent' => $statistics->getTotalSentCount(),
'open' => $statistics->getOpenCount(),
'machine_open' => $statistics->getMachineOpenCount(),
'click' => $statistics->getClickCount(),
'engagement_score' => $subscriber->getEngagementScore(),
];