\GoogleAnalyticsReportService
Class GoogleAnalyticsReportService
Base service for getting the Analytics report per page from Google.
Synopsis
class GoogleAnalyticsReportService
{
- // members
- protected GoogleClientService $client;
- protected Google_Service_AnalyticsReporting_DateRange $dateRange;
- protected Google_Service_AnalyticsReporting $analytics;
- protected Google_Service_AnalyticsReporting_Metric $metrics;
- public bool $batched = false;
- // methods
- public void __construct()
- public Google_Service_AnalyticsReporting_GetReportsResponse getReport()
- public Google_Service_AnalyticsReporting_ReportRequest getReportRequest()
- public Google_Service_AnalyticsReporting_GetReportsRequest getGetReportRequest()
- public void getDimensions()
- public mixed getClient()
- public void setClient()
- public Google_Service_AnalyticsReporting_DateRange getDateRange()
- public void setDateRange()
- public Google_Service_AnalyticsReporting getAnalytics()
- public void setAnalytics()
- public mixed getMetrics()
- public void setMetrics()
- public array getDimensionFilters()
- public array getPageDimensionFilters()
- public Google_Service_AnalyticsReporting_DimensionFilterClause getDimensionFilterClauses()
- public array getPages()
- protected DataList getBlacklist()
- protected DataList getWhitelistPages()
- protected array createFilter()
Members
protected
- $analytics — Google_Service_AnalyticsReporting
- $client — GoogleClientService
- $dateRange — Google_Service_AnalyticsReporting_DateRange
- $metrics — Google_Service_AnalyticsReporting_Metric
public
- $batched
—
bool
Should the filter being batched
Methods
protected
public
- __construct() — GoogleReportService constructor.
- getAnalytics()
- getClient()
- getDateRange()
- getDimensionFilterClauses()
- getDimensionFilters() — Set up the Dimension Filters
- getDimensions()
- getGetReportRequest() — Yes, thanks to Google's naming, we're doubling up the get here
- getMetrics()
- getPageDimensionFilters()
- getPages() — Get the pages filtered by optional blacklisting and whitelisting Return an array of the URLSegments, to limit memory abuse
- getReport()
- getReportRequest()
- setAnalytics()
- setClient()
- setDateRange()
- setMetrics()