campaign_distribution
php
array campaign_distribution( number $nr_wysylki , string $identyfikator_cechy )Returns totals of sent and received emails, clicks, unsubscribes and bounces across all mailings in campaign $nr_kampanii, for all property values associated with property ID $identyfikator_cechy. The returned array uses the following keys, containing respectively:
[0] => property name
[1] => total emails sent across all mailings in the campaign
[2] => total emails received across all mailings in the campaign
[3] => total clicked links across all mailings in the campaign
[4] => total unsubscribes across all mailings in the campaign
[5] => total bounces across all mailings in the campaign
Example:
php
$getinfo = campaign_distribution(29, 'prop1');
print_r($getinfo);Example result:
Array
(
[0] => Array
(
[0] => property1
[1] => 70
[2] => 20
[3] => 20
[4] => 0
[5] => 10
)
[1] => Array
(
[0] => First name
[1] => 10
[2] => 8
[3] => 6
[4] => 3
[5] => 2
)
)