public function GoogleAnalyticsCounterAppManagerInterface::reportData in Google Analytics Counter 8.3
Request report data.
Parameters
array $parameters: An associative array containing:
- profile_id: required [default='ga:profile_id']
- dimensions: optional [ga:pagePath]
- metrics: required [ga:pageviews]
- sort: optional [ga:pageviews]
- start-date: [default=-1 week]
- end_date: optional [default=today]
- start_index: [default=1]
- max_results: optional [default=10,000].
- filters: optional [default=none]
- segment: optional [default=none]
array $cache_options: An optional associative array containing:
- cid: optional [default=md5 hash]
- expire: optional [default=CACHE_TEMPORARY]
- refresh: optional [default=FALSE].
Return value
\Drupal\google_analytics_counter\GoogleAnalyticsCounterFeed|object A new GoogleAnalyticsCounterFeed object
1 method overrides GoogleAnalyticsCounterAppManagerInterface::reportData()
- GoogleAnalyticsCounterAppManager::reportData in src/
GoogleAnalyticsCounterAppManager.php - Request report data.
File
- src/
GoogleAnalyticsCounterAppManagerInterface.php, line 37
Class
- GoogleAnalyticsCounterAppManagerInterface
- Class GoogleAnalyticsCounterAppManager.
Namespace
Drupal\google_analytics_counterCode
public function reportData($parameters = [], $cache_options = []);