Property | Type | Description | |
---|---|---|---|
$dimensions | |||
$filters | |||
$googleServicesCore | Kurt\Google\Core\Core | Google services core. | |
$metrics | Parameters | ||
$period | Time period. | ||
$segment | |||
$service | Google_Service_Analytics | Google Analytics service instance. | |
$sort | |||
$viewId | string | Google analytics view id. |
Method | Description | |
---|---|---|
__construct ( Kurt\Google\Core\Core $googleServicesCore ) | ||
execute ( array $parameters = [], $parseResult = true ) | Execute the query by merging arrays to current ones. | |
getRealtimeData ( ) : array | Execute the query and fetch the results to a collection. | |
getViewId ( ) : string | Getter for viewId. | |
parseResult ( $results ) : array | Parse the dirty google data response. | |
setViewId ( string $viewId ) | Setter for viewId, allows manual update inside code. |
Method | Description | |
---|---|---|
configure ( ) : void | Set the configuration details of analytics. | |
setupAnalyticsService ( ) | ||
setupDates ( $startDate = null, $endDate = null ) | ||
validateViewId ( ) : void | Validate analytics view ID. |
public __construct ( Kurt\Google\Core\Core $googleServicesCore ) | ||
$googleServicesCore | Kurt\Google\Core\Core |
public getRealtimeData ( ) : array | ||
return | array |
public parseResult ( $results ) : array | ||
return | array |
protected Core,Kurt\Google\Core $googleServicesCore | ||
return | Kurt\Google\Core\Core |
protected Period,Kurt\Google\Analytics $period | ||
return |
protected Google_Service_Analytics $service | ||
return | Google_Service_Analytics |