Zend Framework  1.12
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Zend_Gdata_Analytics_DataQuery Class Reference

Public Member Functions

 setProfileId ($id)
 
 getProfileId ()
 
 addDimension ($dimension)
 
 addMetric ($metric)
 
 getDimensions ()
 
 getMetrics ()
 
 removeDimension ($dimension)
 
 removeMetric ($metric)
 
 setStartDate ($date)
 
 setEndDate ($date)
 
 addFilter ($filter)
 
 addOrFilter ($filter)
 
 addSort ($sort, $descending=false)
 
 clearSort ()
 
 setSegment ($segment)
 
 getQueryUrl ()
 
- Public Member Functions inherited from Zend_Gdata_Query
 __construct ($url=null)
 Create Gdata_Query object.
 
 getQueryString ()
 
 resetParameters ()
 
 getQueryUrl ()
 
 setParam ($name, $value)
 
 getParam ($name)
 
 setAlt ($value)
 
 setMaxResults ($value)
 
 setQuery ($value)
 
 setStartIndex ($value)
 
 setUpdatedMax ($value)
 
 setUpdatedMin ($value)
 
 setPublishedMax ($value)
 
 setPublishedMin ($value)
 
 setAuthor ($value)
 
 getAlt ()
 
 getMaxResults ()
 
 getQuery ()
 
 getStartIndex ()
 
 getUpdatedMax ()
 
 getUpdatedMin ()
 
 getPublishedMax ()
 
 getPublishedMin ()
 
 getAuthor ()
 
 setCategory ($value)
 
 getCategory ()
 
 __get ($name)
 
 __set ($name, $val)
 

Public Attributes

const ANALYTICS_FEED_URI = 'https://www.googleapis.com/analytics/v2.4/data'
 
const DIMENSION_BROWSER = 'ga:browser'
 
const DIMENSION_BROWSER_VERSION = 'ga:browserVersion'
 
const DIMENSION_CITY = 'ga:city'
 
const DIMENSION_CONNECTIONSPEED = 'ga:connectionSpeed'
 
const DIMENSION_CONTINENT = 'ga:continent'
 
const DIMENSION_COUNTRY = 'ga:country'
 
const DIMENSION_DATE = 'ga:date'
 
const DIMENSION_DAY = 'ga:day'
 
const DIMENSION_DAYS_SINCE_LAST_VISIT = 'ga:daysSinceLastVisit'
 
const DIMENSION_FLASH_VERSION = 'ga:flashVersion'
 
const DIMENSION_HOSTNAME = 'ga:hostname'
 
const DIMENSION_HOUR = 'ga:hour'
 
const DIMENSION_JAVA_ENABLED = 'ga:javaEnabled'
 
const DIMENSION_LANGUAGE = 'ga:language'
 
const DIMENSION_LATITUDE = 'ga:latitude'
 
const DIMENSION_LONGITUDE = 'ga:longitude'
 
const DIMENSION_MONTH = 'ga:month'
 
const DIMENSION_NETWORK_DOMAIN = 'ga:networkDomain'
 
const DIMENSION_NETWORK_LOCATION = 'ga:networkLocation'
 
const DIMENSION_OPERATING_SYSTEM = 'ga:operatingSystem'
 
const DIMENSION_OPERATING_SYSTEM_VERSION = 'ga:operatingSystemVersion'
 
const DIMENSION_PAGE_DEPTH = 'ga:pageDepth'
 
const DIMENSION_REGION = 'ga:region'
 
const DIMENSION_SCREEN_COLORS = 'ga:screenColors'
 
const DIMENSION_SCREEN_RESOLUTION = 'ga:screenResolution'
 
const DIMENSION_SUB_CONTINENT = 'ga:subContinent'
 
const DIMENSION_USER_DEFINED_VALUE = 'ga:userDefinedValue'
 
const DIMENSION_VISIT_COUNT = 'ga:visitCount'
 
const DIMENSION_VISIT_LENGTH = 'ga:visitLength'
 
const DIMENSION_VISITOR_TYPE = 'ga:visitorType'
 
const DIMENSION_WEEK = 'ga:week'
 
const DIMENSION_YEAR = 'ga:year'
 
const DIMENSION_AD_CONTENT = 'ga:adContent'
 
const DIMENSION_AD_GROUP = 'ga:adGroup'
 
const DIMENSION_AD_SLOT = 'ga:adSlot'
 
const DIMENSION_AD_SLOT_POSITION = 'ga:adSlotPosition'
 
const DIMENSION_CAMPAIGN = 'ga:campaign'
 
const DIMENSION_KEYWORD = 'ga:keyword'
 
const DIMENSION_MEDIUM = 'ga:medium'
 
const DIMENSION_REFERRAL_PATH = 'ga:referralPath'
 
const DIMENSION_SOURCE = 'ga:source'
 
const DIMENSION_EXIT_PAGE_PATH = 'ga:exitPagePath'
 
const DIMENSION_LANDING_PAGE_PATH = 'ga:landingPagePath'
 
const DIMENSION_PAGE_PATH = 'ga:pagePath'
 
const DIMENSION_PAGE_TITLE = 'ga:pageTitle'
 
const DIMENSION_SECOND_PAGE_PATH = 'ga:secondPagePath'
 
const DIMENSION_AFFILIATION = 'ga:affiliation'
 
const DIMENSION_DAYS_TO_TRANSACTION = 'ga:daysToTransaction'
 
const DIMENSION_PRODUCT_CATEGORY = 'ga:productCategory'
 
const DIMENSION_PRODUCT_NAME = 'ga:productName'
 
const DIMENSION_PRODUCT_SKU = 'ga:productSku'
 
const DIMENSION_TRANSACTION_ID = 'ga:transactionId'
 
const DIMENSION_VISITS_TO_TRANSACTION = 'ga:visitsToTransaction'
 
const DIMENSION_SEARCH_CATEGORY = 'ga:searchCategory'
 
const DIMENSION_SEARCH_DESTINATION_PAGE = 'ga:searchDestinationPage'
 
const DIMENSION_SEARCH_KEYWORD = 'ga:searchKeyword'
 
const DIMENSION_SEARCH_KEYWORD_REFINEMENT = 'ga:searchKeywordRefinement'
 
const DIMENSION_SEARCH_START_PAGE = 'ga:searchStartPage'
 
const DIMENSION_SEARCH_USED = 'ga:searchUsed'
 
const DIMENSION_NEXT_PAGE_PATH = 'ga:nextPagePath'
 
const DIMENSION_PREV_PAGE_PATH = 'ga:previousPagePath'
 
const DIMENSION_EVENT_CATEGORY = 'ga:eventCategory'
 
const DIMENSION_EVENT_ACTION = 'ga:eventAction'
 
const DIMENSION_EVENT_LABEL = 'ga:eventLabel'
 
const DIMENSION_CUSTOM_VAR_NAME_1 = 'ga:customVarName1'
 
const DIMENSION_CUSTOM_VAR_NAME_2 = 'ga:customVarName2'
 
const DIMENSION_CUSTOM_VAR_NAME_3 = 'ga:customVarName3'
 
const DIMENSION_CUSTOM_VAR_NAME_4 = 'ga:customVarName4'
 
const DIMENSION_CUSTOM_VAR_NAME_5 = 'ga:customVarName5'
 
const DIMENSION_CUSTOM_VAR_VALUE_1 = 'ga:customVarValue1'
 
const DIMENSION_CUSTOM_VAR_VALUE_2 = 'ga:customVarValue2'
 
const DIMENSION_CUSTOM_VAR_VALUE_3 = 'ga:customVarValue3'
 
const DIMENSION_CUSTOM_VAR_VALUE_4 = 'ga:customVarValue4'
 
const DIMENSION_CUSTOM_VAR_VALUE_5 = 'ga:customVarValue5'
 
const METRIC_BOUNCES = 'ga:bounces'
 
const METRIC_ENTRANCES = 'ga:entrances'
 
const METRIC_EXITS = 'ga:exits'
 
const METRIC_NEW_VISITS = 'ga:newVisits'
 
const METRIC_PAGEVIEWS = 'ga:pageviews'
 
const METRIC_TIME_ON_PAGE = 'ga:timeOnPage'
 
const METRIC_TIME_ON_SITE = 'ga:timeOnSite'
 
const METRIC_VISITORS = 'ga:visitors'
 
const METRIC_VISITS = 'ga:visits'
 
const METRIC_AD_CLICKS = 'ga:adClicks'
 
const METRIC_AD_COST = 'ga:adCost'
 
const METRIC_CPC = 'ga:CPC'
 
const METRIC_CPM = 'ga:CPM'
 
const METRIC_CTR = 'ga:CTR'
 
const METRIC_IMPRESSIONS = 'ga:impressions'
 
const METRIC_UNIQUE_PAGEVIEWS = 'ga:uniquePageviews'
 
const METRIC_ITEM_REVENUE = 'ga:itemRevenue'
 
const METRIC_ITEM_QUANTITY = 'ga:itemQuantity'
 
const METRIC_TRANSACTIONS = 'ga:transactions'
 
const METRIC_TRANSACTION_REVENUE = 'ga:transactionRevenue'
 
const METRIC_TRANSACTION_SHIPPING = 'ga:transactionShipping'
 
const METRIC_TRANSACTION_TAX = 'ga:transactionTax'
 
const METRIC_UNIQUE_PURCHASES = 'ga:uniquePurchases'
 
const METRIC_SEARCH_DEPTH = 'ga:searchDepth'
 
const METRIC_SEARCH_DURATION = 'ga:searchDuration'
 
const METRIC_SEARCH_EXITS = 'ga:searchExits'
 
const METRIC_SEARCH_REFINEMENTS = 'ga:searchRefinements'
 
const METRIC_SEARCH_UNIQUES = 'ga:searchUniques'
 
const METRIC_SEARCH_VISIT = 'ga:searchVisits'
 
const METRIC_GOAL_COMPLETIONS_ALL = 'ga:goalCompletionsAll'
 
const METRIC_GOAL_STARTS_ALL = 'ga:goalStartsAll'
 
const METRIC_GOAL_VALUE_ALL = 'ga:goalValueAll'
 
const METRIC_GOAL_1_COMPLETION = 'ga:goal1Completions'
 
const METRIC_GOAL_1_STARTS = 'ga:goal1Starts'
 
const METRIC_GOAL_1_VALUE = 'ga:goal1Value'
 
const METRIC_TOTAL_EVENTS = 'ga:totalEvents'
 
const METRIC_UNIQUE_EVENTS = 'ga:uniqueEvents'
 
const METRIC_EVENT_VALUE = 'ga:eventValue'
 
const EQUALS = "=="
 
const EQUALS_NOT = "!="
 
const GREATER = ">"
 
const LESS = ">"
 
const GREATER_EQUAL = ">="
 
const LESS_EQUAL = "<="
 
const CONTAINS = "=@"
 
const CONTAINS_NOT ="!@"
 
const REGULAR ="=~"
 
const REGULAR_NOT ="!~"
 

Protected Attributes

 $_defaultFeedUri = self::ANALYTICS_FEED_URI
 The default URI used for feeds.
 
 $_profileId
 
 $_dimensions = array()
 
 $_metrics = array()
 
 $_sort = array()
 
 $_filters = array()
 
- Protected Attributes inherited from Zend_Gdata_Query
 $_params = array()
 
 $_defaultFeedUri = null
 
 $_url = null
 
 $_category = null
 

Member Function Documentation

addDimension (   $dimension)
Parameters
string$dimension
Returns
Zend_Gdata_Analytics_DataQuery
addFilter (   $filter)
Parameters
string$filter
Returns
Zend_Gdata_Analytics_DataQuery
addMetric (   $metric)
Parameters
string$metric
Returns
Zend_Gdata_Analytics_DataQuery
addOrFilter (   $filter)
Parameters
string$filter
Returns
Zend_Gdata_Analytics_DataQuery
addSort (   $sort,
  $descending = false 
)
Parameters
string$sort
boolean[optional]$descending
Returns
Zend_Gdata_Analytics_DataQuery
clearSort ( )
getDimensions ( )
Returns
array
getMetrics ( )
Returns
array
getProfileId ( )
Returns
string
getQueryUrl ( )
Returns
string url
removeDimension (   $dimension)
Parameters
string$dimension
Returns
Zend_Gdata_Analytics_DataQuery
removeMetric (   $metric)
Parameters
string$metric
Returns
Zend_Gdata_Analytics_DataQuery
setEndDate (   $date)
Parameters
string$value
Returns
Zend_Gdata_Analytics_DataQuery
setProfileId (   $id)
Parameters
string$id
Returns
Zend_Gdata_Analytics_DataQuery
setSegment (   $segment)
Parameters
string$segment
Returns
Zend_Gdata_Analytics_DataQuery
setStartDate (   $date)
Parameters
string$value
Returns
Zend_Gdata_Analytics_DataQuery

Member Data Documentation

$_defaultFeedUri = self::ANALYTICS_FEED_URI
protected

The default URI used for feeds.

$_dimensions = array()
protected
$_filters = array()
protected
$_metrics = array()
protected
$_profileId
protected
$_sort = array()
protected
const ANALYTICS_FEED_URI = 'https://www.googleapis.com/analytics/v2.4/data'
const CONTAINS = "=@"
const CONTAINS_NOT ="!@"
const DIMENSION_AD_CONTENT = 'ga:adContent'
const DIMENSION_AD_GROUP = 'ga:adGroup'
const DIMENSION_AD_SLOT = 'ga:adSlot'
const DIMENSION_AD_SLOT_POSITION = 'ga:adSlotPosition'
const DIMENSION_AFFILIATION = 'ga:affiliation'
const DIMENSION_BROWSER = 'ga:browser'
const DIMENSION_BROWSER_VERSION = 'ga:browserVersion'
const DIMENSION_CAMPAIGN = 'ga:campaign'
const DIMENSION_CITY = 'ga:city'
const DIMENSION_CONNECTIONSPEED = 'ga:connectionSpeed'
const DIMENSION_CONTINENT = 'ga:continent'
const DIMENSION_COUNTRY = 'ga:country'
const DIMENSION_CUSTOM_VAR_NAME_1 = 'ga:customVarName1'
const DIMENSION_CUSTOM_VAR_NAME_2 = 'ga:customVarName2'
const DIMENSION_CUSTOM_VAR_NAME_3 = 'ga:customVarName3'
const DIMENSION_CUSTOM_VAR_NAME_4 = 'ga:customVarName4'
const DIMENSION_CUSTOM_VAR_NAME_5 = 'ga:customVarName5'
const DIMENSION_CUSTOM_VAR_VALUE_1 = 'ga:customVarValue1'
const DIMENSION_CUSTOM_VAR_VALUE_2 = 'ga:customVarValue2'
const DIMENSION_CUSTOM_VAR_VALUE_3 = 'ga:customVarValue3'
const DIMENSION_CUSTOM_VAR_VALUE_4 = 'ga:customVarValue4'
const DIMENSION_CUSTOM_VAR_VALUE_5 = 'ga:customVarValue5'
const DIMENSION_DATE = 'ga:date'
const DIMENSION_DAY = 'ga:day'
const DIMENSION_DAYS_SINCE_LAST_VISIT = 'ga:daysSinceLastVisit'
const DIMENSION_DAYS_TO_TRANSACTION = 'ga:daysToTransaction'
const DIMENSION_EVENT_ACTION = 'ga:eventAction'
const DIMENSION_EVENT_CATEGORY = 'ga:eventCategory'
const DIMENSION_EVENT_LABEL = 'ga:eventLabel'
const DIMENSION_EXIT_PAGE_PATH = 'ga:exitPagePath'
const DIMENSION_FLASH_VERSION = 'ga:flashVersion'
const DIMENSION_HOSTNAME = 'ga:hostname'
const DIMENSION_HOUR = 'ga:hour'
const DIMENSION_JAVA_ENABLED = 'ga:javaEnabled'
const DIMENSION_KEYWORD = 'ga:keyword'
const DIMENSION_LANDING_PAGE_PATH = 'ga:landingPagePath'
const DIMENSION_LANGUAGE = 'ga:language'
const DIMENSION_LATITUDE = 'ga:latitude'
const DIMENSION_LONGITUDE = 'ga:longitude'
const DIMENSION_MEDIUM = 'ga:medium'
const DIMENSION_MONTH = 'ga:month'
const DIMENSION_NETWORK_DOMAIN = 'ga:networkDomain'
const DIMENSION_NETWORK_LOCATION = 'ga:networkLocation'
const DIMENSION_NEXT_PAGE_PATH = 'ga:nextPagePath'
const DIMENSION_OPERATING_SYSTEM = 'ga:operatingSystem'
const DIMENSION_OPERATING_SYSTEM_VERSION = 'ga:operatingSystemVersion'
const DIMENSION_PAGE_DEPTH = 'ga:pageDepth'
const DIMENSION_PAGE_PATH = 'ga:pagePath'
const DIMENSION_PAGE_TITLE = 'ga:pageTitle'
const DIMENSION_PREV_PAGE_PATH = 'ga:previousPagePath'
const DIMENSION_PRODUCT_CATEGORY = 'ga:productCategory'
const DIMENSION_PRODUCT_NAME = 'ga:productName'
const DIMENSION_PRODUCT_SKU = 'ga:productSku'
const DIMENSION_REFERRAL_PATH = 'ga:referralPath'
const DIMENSION_REGION = 'ga:region'
const DIMENSION_SCREEN_COLORS = 'ga:screenColors'
const DIMENSION_SCREEN_RESOLUTION = 'ga:screenResolution'
const DIMENSION_SEARCH_CATEGORY = 'ga:searchCategory'
const DIMENSION_SEARCH_DESTINATION_PAGE = 'ga:searchDestinationPage'
const DIMENSION_SEARCH_KEYWORD = 'ga:searchKeyword'
const DIMENSION_SEARCH_KEYWORD_REFINEMENT = 'ga:searchKeywordRefinement'
const DIMENSION_SEARCH_START_PAGE = 'ga:searchStartPage'
const DIMENSION_SEARCH_USED = 'ga:searchUsed'
const DIMENSION_SECOND_PAGE_PATH = 'ga:secondPagePath'
const DIMENSION_SOURCE = 'ga:source'
const DIMENSION_SUB_CONTINENT = 'ga:subContinent'
const DIMENSION_TRANSACTION_ID = 'ga:transactionId'
const DIMENSION_USER_DEFINED_VALUE = 'ga:userDefinedValue'
const DIMENSION_VISIT_COUNT = 'ga:visitCount'
const DIMENSION_VISIT_LENGTH = 'ga:visitLength'
const DIMENSION_VISITOR_TYPE = 'ga:visitorType'
const DIMENSION_VISITS_TO_TRANSACTION = 'ga:visitsToTransaction'
const DIMENSION_WEEK = 'ga:week'
const DIMENSION_YEAR = 'ga:year'
const EQUALS = "=="
const EQUALS_NOT = "!="
const GREATER = ">"
const GREATER_EQUAL = ">="
const LESS = ">"
const LESS_EQUAL = "<="
const METRIC_AD_CLICKS = 'ga:adClicks'
const METRIC_AD_COST = 'ga:adCost'
const METRIC_BOUNCES = 'ga:bounces'
const METRIC_CPC = 'ga:CPC'
const METRIC_CPM = 'ga:CPM'
const METRIC_CTR = 'ga:CTR'
const METRIC_ENTRANCES = 'ga:entrances'
const METRIC_EVENT_VALUE = 'ga:eventValue'
const METRIC_EXITS = 'ga:exits'
const METRIC_GOAL_1_COMPLETION = 'ga:goal1Completions'
const METRIC_GOAL_1_STARTS = 'ga:goal1Starts'
const METRIC_GOAL_1_VALUE = 'ga:goal1Value'
const METRIC_GOAL_COMPLETIONS_ALL = 'ga:goalCompletionsAll'
const METRIC_GOAL_STARTS_ALL = 'ga:goalStartsAll'
const METRIC_GOAL_VALUE_ALL = 'ga:goalValueAll'
const METRIC_IMPRESSIONS = 'ga:impressions'
const METRIC_ITEM_QUANTITY = 'ga:itemQuantity'
const METRIC_ITEM_REVENUE = 'ga:itemRevenue'
const METRIC_NEW_VISITS = 'ga:newVisits'
const METRIC_PAGEVIEWS = 'ga:pageviews'
const METRIC_SEARCH_DEPTH = 'ga:searchDepth'
const METRIC_SEARCH_DURATION = 'ga:searchDuration'
const METRIC_SEARCH_EXITS = 'ga:searchExits'
const METRIC_SEARCH_REFINEMENTS = 'ga:searchRefinements'
const METRIC_SEARCH_UNIQUES = 'ga:searchUniques'
const METRIC_SEARCH_VISIT = 'ga:searchVisits'
const METRIC_TIME_ON_PAGE = 'ga:timeOnPage'
const METRIC_TIME_ON_SITE = 'ga:timeOnSite'
const METRIC_TOTAL_EVENTS = 'ga:totalEvents'
const METRIC_TRANSACTION_REVENUE = 'ga:transactionRevenue'
const METRIC_TRANSACTION_SHIPPING = 'ga:transactionShipping'
const METRIC_TRANSACTION_TAX = 'ga:transactionTax'
const METRIC_TRANSACTIONS = 'ga:transactions'
const METRIC_UNIQUE_EVENTS = 'ga:uniqueEvents'
const METRIC_UNIQUE_PAGEVIEWS = 'ga:uniquePageviews'
const METRIC_UNIQUE_PURCHASES = 'ga:uniquePurchases'
const METRIC_VISITORS = 'ga:visitors'
const METRIC_VISITS = 'ga:visits'
const REGULAR ="=~"
const REGULAR_NOT ="!~"