You are here

function MCAPI::campaignClickStats in Mailchimp 7

Same name and namespace in other branches
  1. 5.2 MCAPI.class.php \MCAPI::campaignClickStats()
  2. 5 MCAPI.class.php \MCAPI::campaignClickStats()
  3. 6.2 MCAPI.class.php \MCAPI::campaignClickStats()
  4. 6 MCAPI.class.php \MCAPI::campaignClickStats()

Get an array of the urls being tracked, and their click counts for a given campaign

Stats

@example mcapi_campaignClickStats.php @example xml-rpc_campaignClickStats.php

@returnf integer clicks Number of times the specific link was clicked @returnf integer unique Number of unique people who clicked on the specific link

Parameters

string $cid the campaign id to pull stats for (can be gathered using campaigns()):

Return value

struct urls will be keys and contain their associated statistics:

File

./MCAPI.class.php, line 500

Class

MCAPI

Code

function campaignClickStats($cid) {
  $params = array();
  $params["cid"] = $cid;
  return $this
    ->callServer("campaignClickStats", $params);
}