PHP Trait Kurt\Google\Analytics\Traits\Filters\GoogleCommonFilters

Here are several of the most common queries to the Core Reporting API. Note that the definitions only include dimensions, metrics, filters, and sort parameters.
显示文件 Open project: ozankurt/google-analytics

Public Methods

Method Description
getAllTrafficSources_ECommerce ( array $parameters = [], $parseResult = true ) : array All Traffic Sources - E-Commerce.
getAllTrafficSources_Goals ( array $parameters = [], $parseResult = true ) : array All Traffic Sources - Goals.
getAllTrafficSources_Usage ( array $parameters = [], $parseResult = true ) : array All Traffic Sources - Usage.
getBrowserAndOperatingSystem ( array $parameters = [], $parseResult = true ) : array Browser and Operating System.
getKeywords ( array $parameters = [], $parseResult = true ) : array Keywords.
getMobileTraffic ( array $parameters = [], $parseResult = true ) : array Mobile Traffic.
getNewVsReturningSessions ( array $parameters = [], $parseResult = true ) : array New vs Returning Sessions.
getReferringSites ( array $parameters = [], $parseResult = true ) : array Referring Sites.
getRevenueGeneratingCampaigns ( array $parameters = [], $parseResult = true ) : array Revenue Generating Campaigns.
getSearchEngines ( array $parameters = [], $parseResult = true ) : array Search Engines.
getSearchEngines_OrganicSearch ( array $parameters = [], $parseResult = true ) : array Search Engines - Organic Search.
getSearchEngines_PaidSearch ( array $parameters = [], $parseResult = true ) : array Search Engines - Paid Search.
getSessionsByCountry ( array $parameters = [], $parseResult = true ) : array Sessions by Country.
getSiteSearch_SearchTerms ( array $parameters = [], $parseResult = true ) : array Site Search - Search Terms.
getTimeOnSite ( array $parameters = [], $parseResult = true ) : array Time on Site.
getTopContent ( array $parameters = [], $parseResult = true ) : array Top Content.
getTopExitPages ( array $parameters = [], $parseResult = true ) : array Top Exit Pages.
getTopLandingPages ( array $parameters = [], $parseResult = true ) : array Top Landing Pages.
getUsersAndPageviewsOverTime ( array $parameters = [], $parseResult = true ) : array Users and Pageviews Over Time.

Method Details

getAllTrafficSources_ECommerce() public method

This query returns information on revenue generated through the site for the given time span, sorted by sessions in descending order.
public getAllTrafficSources_ECommerce ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getAllTrafficSources_Goals() public method

This query returns data for the first and all goals defined, sorted by total goal completions in descending order.
public getAllTrafficSources_Goals ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getAllTrafficSources_Usage() public method

This query returns the site usage data broken down by source and medium, sorted by sessions in descending order.
public getAllTrafficSources_Usage ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getBrowserAndOperatingSystem() public method

This query returns a breakdown of sessions by the Operating System, web browser, and browser version used.
public getBrowserAndOperatingSystem ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getKeywords() public method

This query returns site usage data for paid traffic by search engine, sorted by pageviews in descending order.
public getKeywords ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getMobileTraffic() public method

This query returns some information about sessions which occurred from mobile devices. Note that "Mobile Traffic" is defined using the default segment ID -14.
public getMobileTraffic ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getNewVsReturningSessions() public method

This query returns the number of new sessions vs returning sessions.
public getNewVsReturningSessions ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getReferringSites() public method

This query returns a list of domains and how many sessions each referred to your site, sorted by pageviews in descending order.
public getReferringSites ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getRevenueGeneratingCampaigns() public method

This query returns campaign and site usage data for campaigns that led to more than one purchase through your site.
public getRevenueGeneratingCampaigns ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getSearchEngines() public method

This query returns site usage data for all traffic by search engine, sorted by pageviews in descending order.
public getSearchEngines ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getSearchEngines_OrganicSearch() public method

This query returns site usage data for organic traffic by search engine, sorted by pageviews in descending order.
public getSearchEngines_OrganicSearch ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getSearchEngines_PaidSearch() public method

This query returns site usage data for paid traffic by search engine, sorted by pageviews in descending order.
public getSearchEngines_PaidSearch ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getSessionsByCountry() public method

This query returns a breakdown of your sessions by country, sorted by number of sessions.
public getSessionsByCountry ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getSiteSearch_SearchTerms() public method

This query returns the number of sessions broken down by internal site search, sorted by number of unique searches for a keyword in descending order.
public getSiteSearch_SearchTerms ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getTimeOnSite() public method

This query returns the number of sessions and total time on site, which can be used to calculate average time on site.
public getTimeOnSite ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getTopContent() public method

This query returns your most popular content, sorted by most pageviews.
public getTopContent ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getTopExitPages() public method

This query returns your most common exit pages, sorted by exits in descending order.
public getTopExitPages ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getTopLandingPages() public method

This query returns your most popular landing pages, sorted by entrances in descending order.
public getTopLandingPages ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array

getUsersAndPageviewsOverTime() public method

This query returns the total users and pageviews for the specified time period. Note that this query doesn't require any dimensions.
public getUsersAndPageviewsOverTime ( array $parameters = [], $parseResult = true ) : array
$parameters array Parameters you may want to overwrite.
return array