Google Analytics API

InfoCaptor uses Google Analytics API and here is the direct reference to the documentation
 
Dimension and Metrics
 
 
 
Dimension and Metrics go together and there is a list of valid combination that Google provides so be careful when specifying the dimensions or metrics
 
What is a dimension?
Dimensions are things like browser and country, browser versions, landing and exit pages, the URL of a page, and the source website a visitor has come from.
Google Analytics uses the following 5 main marketing dimensions for analysis:
* Source
* Content
* Campaign
 
 
What is a metric?
Metrics are the quantitative measure of a dimension for specific data types, such as totals of new visitors, page views, unique page views etc.
 
NOTE: For the php api, you don't need to prefix the dimension or metric with "ga:". All of the below example shows the names without the "ga:"
 
Some of the combinations from the above API document is reproduced here. Notice how the dimension in the original API documentation has a prefix of "ga:" whereas when you want to use them in InfoCaptor you don't need the prefix. Everything else remains the same (including the case the of dimension and metric name)
 
Visitor - Dimensions & Metrics Reference
 
 
Dimensions
visitorType
A boolean indicating if a visitor is new or returning. Possible values: New Visitor, Returning Visitor.
 
visitCount
The visit index for a visitor to your website. Each visit from a unique visitor will get its own incremental index starting from 1 for the first visit. Subsequent visits do not change previous visit indicies. For example, if a certain visitor has 4 visits to your website, visitCount for that visitor will have 4 distinct values of '1' through '4'.
 
daysSinceLastVisit
The number of days elapsed since visitors last visited your website. Used to calculate visitor loyalty.
 
userDefinedValue
The value provided when you define custom visitor segments for your website.
 
Metrics
visitors
Total number of visitors to your website for the requested time period.
 
newVisits
The number of visitors whose visit to your website was marked as a first-time visit.
 
percentNewVisits
The percentage of visits by people who had never visited your site before.
Calculation
(ga:newVisits / ga:visits) * 100
 
AdWords - Dimensions & Metrics Reference
 
Dimensions
adGroup
The name of your AdWords ad group.
 
adSlot
The location of the advertisement on the hosting page (Top, RHS, or not set).
 
adSlotPosition
The ad slot positions in which your AdWords ads appeared (1-8).
 
adDistributionNetwork
The networks used to deliver your ads (Content, Search, Search partners, etc.).
 
adMatchType
The match types applied to your keywords (Phrase, Exact, Broad, etc.). Ads on the content network are identified as "Content network".
 
adMatchedQuery
The search queries that triggered impressions of your AdWords ads.
 
adPlacementDomain
The domains where your ads on the content network were placed.
 
adPlacementUrl
The URLs where your ads on the content network were placed.
 
adFormat
Your AdWords ad formats (Text, Image, Flash, Video, etc.).
 
adTargetingType
How your AdWords ads were targeted (keyword, placement, and vertical targeting, etc.).
 
adTargetingOption
How you manage your ads on the content network. Values are Automatic placements or Managed placements.
 
adDisplayUrl
The URLs your AdWords ads displayed.
 
adDestinationUrl
The URLs to which your AdWords ads referred traffic.
 
adwordsCustomerId
A string. Corresponds to AdWords API AccountInfo.customerId.
 
adwordsCampaignId
A string. Corresponds to AdWords API Campaign.id.
 
adwordsAdGroupId
A string. Corresponds to AdWords API AdGroup.id.
 
adwordsCreativeId
A string. Corresponds to AdWords API Ad.id.
 
adwordsCriteriaId
A string. Corresponds to AdWords API Criterion.id.
 
Metrics
impressions
Total number of campaign impressions.
 
adClicks
The total number of times users have clicked on an ad to reach your website.
 
adCost
Derived cost for the advertising campaign. The currency for this value is based on the currency that you set in your AdWords account.
 
CPM
Cost per thousand impressions.
 
CPC
Cost to advertiser per click.
 
CTR
Click-through-rate for your ad. This is equal to the number of clicks divided by the number of impressions for your ad (e.g. how many times users clicked on one of your ads where that ad appeared).
 
Calculated Metrics
costPerTransaction
The cost per transaction for your site.
Calculation
adCost / transactions
 
costPerGoalConversion
The cost per goal conversion for your site.
Calculation
adCost / goalCompletionsAll
 
costPerConversion
The cost per conversion (including ecommerce and goal conversions) for your site.
Calculation
adCost / (transactions + goalCompletionsAll)
 
RPC
RPC or revenue-per-click is the average revenue (from ecommerce sales and/or goal value) you received for each click on one of your search ads.
Calculation
(transactionRevenue + goalValueAll) / adClicks
 
ROI
Returns on Investment is overall transaction profit divided by derived advertising cost.
Calculation
(transactionRevenue + goalValueAll - adCost) / adCost
 
margin
The overall transaction profit margin.
Calculation
(transactionRevenue + goalValueAll - adCost) / (transactionRevenue + goalValueAll)
 
Event Tracking - Dimensions & Metrics Reference
 
Dimensions
eventCategory
The category of the event.
 
eventAction
The action of the event.
 
eventLabel
The label of the event.
 
Metrics
totalEvents
The total number of events for the profile, across all categories.
 
uniqueEvents
The total number of unique events for the profile, across all categories.
 
eventValue
The total value of events for the profile.
 
visitsWithEvent
The total number of visits with events.
 
Calculated Metrics
avgEventValue
The average value of an event.
Calculation
eventValue / totalEvents
 
eventsPerVisitWithEvent
The average number of events per visit with event.
Calculation
totalEvents / visitsWithEvent