Given a list and a campaign, get all the relevant campaign statistics (opens, bounces, clicks, etc.)
Signature
public function campaignStats(string
$cid )
Parameters
$cid
—
string
the campaign id to pull stats for (can be gathered using campaigns())
Returns
array
struct of the statistics for this campaign int syntax_errors Number of email addresses in campaign that had syntactical errors.
int hard_bounces Number of email addresses in campaign that hard bounced.
int soft_bounces Number of email addresses in campaign that soft bounced.
int unsubscribes Number of email addresses in campaign that unsubscribed.
int abuse_reports Number of email addresses in campaign that reported campaign for abuse.
int forwards Number of times email was forwarded to a friend.
int forwards_opens Number of times a forwarded email was opened.
int opens Number of times the campaign was opened.
string last_open Date of the last time the email was opened.
int unique_opens Number of people who opened the campaign.
int clicks Number of times a link in the campaign was clicked.
int unique_clicks Number of unique recipient/click pairs for the campaign.
string last_click Date of the last time a link in the email was clicked.
int users_who_clicked Number of unique recipients who clicked on a link in the campaign.
int emails_sent Number of email addresses campaign was sent to.
int unique_likes total number of unique likes (Facebook)
int recipient_likes total number of recipients who liked (Facebook) the campaign
int facebook_likes total number of likes (Facebook) that came from Facebook
array absplit If this was an absplit campaign, stats for the A and B groups will be returned
int bounces_a bounces for the A group
int bounces_b bounces for the B group
int forwards_a forwards for the A group
int forwards_b forwards for the B group
int abuse_reports_a abuse reports for the A group
int abuse_reports_b abuse reports for the B group
int unsubs_a unsubs for the A group
int unsubs_b unsubs for the B group
int recipients_click_a clicks for the A group
int recipients_click_b clicks for the B group
int forwards_opens_a opened forwards for the A group
int forwards_opens_b opened forwards for the B group
int opens_a total opens for the A group
int opens_b total opens for the B group
string last_open_a date/time of last open for the A group
string last_open_b date/time of last open for the BG group
int unique_opens_a unique opens for the A group
int unique_opens_b unique opens for the B group
array timewarp If this campaign was a Timewarp campaign, an array of stats from each timezone for it, with the GMT offset as they key. Each timezone will contain:
int opens opens for this timezone
string last_open the date/time of the last open for this timezone
int unique_opens the unique opens for this timezone
int clicks the total clicks for this timezone
string last_click the date/time of the last click for this timezone
int unique_opens the unique clicks for this timezone
int bounces the total bounces for this timezone
int total the total number of members sent to in this timezone
int sent the total number of members delivered to in this timezone
array timeseries For the first 24 hours of the campaign, per-hour stats:
string timestamp The timestemp in Y-m-d H:00:00 format
int emails_sent the total emails sent during the hour
int unique_opens unique opens seen during the hour
int recipients_click unique clicks seen during the hour