mailing_timeline_opened_day
php
array|boolean mailing_timeline_opened_day ( number|array $shipmentId number $shipmentIdMax )Returns open counts by day for the selected mailings.
Example:
php
$shipmentIdMin = 3;
$shipmentIdMax = 10;
print("Opens in mailings from ". $shipmentIdMin.
" to ".$shipmentIdMax." by day:\n");
$data = mailing_timeline_opened_day($shipmentIdMin,$shipmentIdMax);
if (empty($data)) {
print("no opens recorded yet");
exit();
}
$len = count($data)-1;
for ($i = 0 to $len) {
print(key($data)." ".current($data)."\n");
next($data);
}The result will look similar to:
Opens in mailings from 3 to 15 by day: 2014-10-08 10 2014-10-13 5 2014-10-16 24 2014-10-20 3 2014-10-21 17