Skip to content

mailing_timeline_clicked_day ​

php
array|boolean mailing_timeline_clicked_day ( number|array $shipmentId number $shipmentIdMax )

Returns click counts by day for the selected mailings.

Example:

php
$shipmentIdMin = 3;
$shipmentIdMax = 10;

print("Clicks in mailings from ". $shipmentIdMin.
" to ".$shipmentIdMax." by day:\n");
$data = mailing_timeline_clicked_day($shipmentIdMin,$shipmentIdMax);

if (empty($data)) {
print("no clicks 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:

Clicks 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