Method | Description | |
---|---|---|
__construct ( Google_Service_Analytics $analytics, Psr\Cache\CacheItemPoolInterface $cache, |
||
getBounceRate ( integer $startDate, integer $endDate ) : float | Returns the bounce rate in a certain period | |
getMostVisitedPagesData ( integer $startDate, integer $endDate ) : array | Returns the source graph data | |
getNewSessionsPercentage ( integer $startDate, integer $endDate ) : float | Returns the percentage of new sessions in a certain period | |
getPageViews ( integer $startDate, integer $endDate ) : integer | Returns the amount of pageviews in a period | |
getPagesPerVisit ( integer $startDate, integer $endDate ) : float | Returns the amount of pages per visit in a period | |
getSourceGraphData ( integer $startDate, integer $endDate ) : array | Returns the source graph data | |
getTimeOnSite ( integer $startDate, integer $endDate ) : float | Returns the average time on the site in a certain period | |
getVisitors ( integer $startDate, integer $endDate ) : integer | Returns the amount of visitors in a period | |
getVisitorsGraphData ( integer $startDate, integer $endDate ) : array | Returns the visitors graph data |
Method | Description | |
---|---|---|
collectMostVisitedPagesData ( integer $startDate, integer $endDate ) : array | Fetches the data needed to build the list with most visited pages | |
collectSourceGraphData ( integer $startDate, integer $endDate ) : array | Fetches the data needed to build the source graph for a date range | |
collectVisitGraphData ( integer $startDate, integer $endDate ) : array | Fetches the data needed to build the visitors graph for a date range | |
getAnalyticsData ( integer $startDate, integer $endDate, string $metrics, array $optParams = [] ) : Google_Service_Analytics_GaData | Returns Analytics data for our coupled profile | |
getData ( integer $startDate, integer $endDate ) : array | Fetches all the needed data and caches it in our statistics array | |
getMetrics ( integer $startDate, integer $endDate ) : array | Fetches some metrics for a certain date range |
public __construct ( Google_Service_Analytics $analytics, Psr\Cache\CacheItemPoolInterface $cache, |
||
$analytics | Google_Service_Analytics | |
$cache | Psr\Cache\CacheItemPoolInterface | |
$settings |