PHP 클래스 Spatie\Analytics\Analytics

파일 보기 프로젝트 열기: spatie/laravel-analytics

보호된 프로퍼티들

프로퍼티 타입 설명
$client AnalyticsClient
$viewId string

공개 메소드들

메소드 설명
__construct ( AnalyticsClient $client, string $viewId )
fetchMostVisitedPages ( Period $period, integer $maxResults = 20 ) : Collection
fetchTopBrowsers ( Period $period, integer $maxResults = 10 ) : Collection
fetchTopReferrers ( Period $period, integer $maxResults = 20 ) : Collection
fetchTotalVisitorsAndPageViews ( Period $period ) : Collection
fetchVisitorsAndPageViews ( Period $period ) : Collection
getAnalyticsService ( ) : Google_Service_Analytic\Google_Service_Analytics Get the underlying Google_Service_Analytics object. You can use this to basically call anything on the Google Analytics API.
performQuery ( Period $period, string $metrics, array $others = [] ) : array | null Call the query method on the authenticated client.
setViewId ( string $viewId )

보호된 메소드들

메소드 설명
summarizeTopBrowsers ( Collection $topBrowsers, integer $maxResults ) : Collection

메소드 상세

__construct() 공개 메소드

public __construct ( AnalyticsClient $client, string $viewId )
$client AnalyticsClient
$viewId string

fetchMostVisitedPages() 공개 메소드

public fetchMostVisitedPages ( Period $period, integer $maxResults = 20 ) : Collection
$period Period
$maxResults integer
리턴 Illuminate\Support\Collection

fetchTopBrowsers() 공개 메소드

public fetchTopBrowsers ( Period $period, integer $maxResults = 10 ) : Collection
$period Period
$maxResults integer
리턴 Illuminate\Support\Collection

fetchTopReferrers() 공개 메소드

public fetchTopReferrers ( Period $period, integer $maxResults = 20 ) : Collection
$period Period
$maxResults integer
리턴 Illuminate\Support\Collection

fetchTotalVisitorsAndPageViews() 공개 메소드

public fetchTotalVisitorsAndPageViews ( Period $period ) : Collection
$period Period
리턴 Illuminate\Support\Collection

fetchVisitorsAndPageViews() 공개 메소드

public fetchVisitorsAndPageViews ( Period $period ) : Collection
$period Period
리턴 Illuminate\Support\Collection

getAnalyticsService() 공개 메소드

Get the underlying Google_Service_Analytics object. You can use this to basically call anything on the Google Analytics API.
public getAnalyticsService ( ) : Google_Service_Analytic\Google_Service_Analytics
리턴 Google_Service_Analytic\Google_Service_Analytics

performQuery() 공개 메소드

Call the query method on the authenticated client.
public performQuery ( Period $period, string $metrics, array $others = [] ) : array | null
$period Period
$metrics string
$others array
리턴 array | null

setViewId() 공개 메소드

public setViewId ( string $viewId )
$viewId string

summarizeTopBrowsers() 보호된 메소드

protected summarizeTopBrowsers ( Collection $topBrowsers, integer $maxResults ) : Collection
$topBrowsers Illuminate\Support\Collection
$maxResults integer
리턴 Illuminate\Support\Collection

프로퍼티 상세

$client 보호되어 있는 프로퍼티

protected AnalyticsClient,Spatie\Analytics $client
리턴 AnalyticsClient

$viewId 보호되어 있는 프로퍼티

protected string $viewId
리턴 string