You are here

public function GAFeed::queryGoals in Google Analytics Counter 7.2

Query Management API - Goals

File

./GAFeed.lib.inc, line 291
Provides the GAFeed object type and associated methods.

Class

GAFeed
GAFeed class to authorize access to and request data from the Google Analytics Data Export API.

Code

public function queryGoals($params = array(), $cache_options = array()) {
  $params += array(
    'account-id' => '~all',
    'web-property-id' => '~all',
    'profile-id' => '~all',
  );
  $this
    ->setQueryPath('management/accounts/' . $params['account-id'] . '/webproperties/' . $params['web-property-id'] . '/profiles/' . $params['profile-id'] . '/goals');
  $this
    ->query($this->queryPath, $params, 'GET', $cache_options);
  return $this;
}