public function GoogleAnalyticsCounterFeed::queryGoals in Google Analytics Counter 7.3
Query Management API - Goals.
File
- ./
google_analytics_counter_oauth2.lib.inc, line 378 - Provides the Google Analytics Counter Feed object type and associated methods. Most of the Google Analytics authentication process is taken over from http://drupal.org/project/google_analytics_reports because all we need here is its Google Analytics…
Class
- GoogleAnalyticsCounterFeed
- GoogleAnalyticsCounterFeed class to authorize access to and request data from the Google Analytics Core Reporting 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', $this
->generateAuthHeader(), $cache_options);
return $this;
}