Академический Документы
Профессиональный Документы
Культура Документы
Getting Started.................................................................................................................5
What's New......................................................................................................................10
Authentication................................................................................................................14
Methods...........................................................................................................................15
Cancel..................................................................................................................................................................................15
Get.........................................................................................................................................................................................15
GetElements......................................................................................................................................................................15
GetMetrics..........................................................................................................................................................................16
GetQueue...........................................................................................................................................................................17
Run........................................................................................................................................................................................17
Queue..................................................................................................................................................................................18
Validate...............................................................................................................................................................................19
Data Types.......................................................................................................................21
report...................................................................................................................................................................................21
reportData..........................................................................................................................................................................21
reportDataPath................................................................................................................................................................23
reportDataPathList.........................................................................................................................................................23
reportDescription............................................................................................................................................................23
reportDescriptionDateGranularity............................................................................................................................26
reportDescriptionElement...........................................................................................................................................27
reportDescriptionElementDataEncoding...............................................................................................................27
reportDescriptionElementList....................................................................................................................................28
reportDescriptionLocale...............................................................................................................................................28
reportDescriptionMetric...............................................................................................................................................28
reportDescriptionMetricList........................................................................................................................................28
reportDescriptionSearch..............................................................................................................................................29
reportDescriptionSearchType....................................................................................................................................29
reportDescriptionSegment..........................................................................................................................................29
reportDescriptionSegmentList...................................................................................................................................30
reportDescriptionSource..............................................................................................................................................30
reportElement..................................................................................................................................................................31
reportElementInfo...........................................................................................................................................................31
reportElementList...........................................................................................................................................................31
reportMetric......................................................................................................................................................................31
reportMetricInfo..............................................................................................................................................................32
reportMetricList...............................................................................................................................................................32
reportReportSuite...........................................................................................................................................................32
reportResponse................................................................................................................................................................33
reportSegment.................................................................................................................................................................33
report_queue_item........................................................................................................................................................33
report_queue_item_array............................................................................................................................................34
Analytics Elements.........................................................................................................35
Analytics Metrics.............................................................................................................40
Anomaly Detection.........................................................................................................51
Inline Segmentation.......................................................................................................52
Real-Time Reports..........................................................................................................55
Summary Reports...........................................................................................................59
Getting Started
To get started, review the changes in 1.4, update your endpoint, and then use the examples to start generating reports.
"error":"report_not_ready",
"error_uri":null
Endpoint
API requests should be sent to the 1.4 endpoint:
https://api.omniture.com/admin/1.4/
Getting Started 6
You might need to replace api.omniture.com with the URL that corresponds to your data center, as listed in the following table.
In your production apps, we recommend calling Company.GetEndpoint to periodically refresh the endpoint programmatically,
in case the URL changes.
api.omniture.com - San Jose
api2.omniture.com - Dallas
api3.omniture.com - London
api4.omniture.com - Singapore
api5.omniture.com - Pacific Northwest
The type derived is then returned in the result data as: ranked, trended, overtime, pathing, fallout, summary, or realtime.
Examples
In the following examples, replace "rsid" with your report suite id, and update the URL to use the correct endpoint.
//Simplest Request
https://api.omniture.com/admin/1.4/rest/?method=Report.Queue
{
"reportDescription":{
"reportSuiteID":"rsid"
}
}
//overtime report
Getting Started 7
https://api.omniture.com/admin/1.4/rest/?method=Report.Queue
{
"reportDescription":{
"reportSuiteID":"rsid",
"dateGranularity":"hour"
}
}
//Ranked Report
https://api.omniture.com/admin/1.4/rest/?method=Report.Queue
{
"reportDescription":{
"reportSuiteID":"rsid",
"elements":[
{"id":"page"}
]
}
}
//Trended Report
https://api.omniture.com/admin/1.4/rest/?method=Report.Queue
{
"reportDescription":{
"reportSuiteID":"rsid",
"dateGranularity":"hour",
"elements":[
{"id":"page"}
]
}
}
["homepage"],
]}
]
}
}
// Real-Time Report
// Note the inclusion of "source" equals "realtime"
// Make sure you configure Real-Time reports for the report suite
https://api.omniture.com/admin/1.4/rest/?method=Report.Run
{
"reportDescription": {
"source": "realtime",
"reportSuiteID": "rsid",
"metrics": [
{ "id": "revenue" }
]
}
}
// Summary Report
// Note that the "reportSuiteID" parameter is not included
// and the elements list contains "reportsuite"
// Report suites are provided in the "selected" element
https://api.omniture.com/admin/1.4/rest/?method=Report.Queue
{
"reportDescription":{
"date":"2014",
"metrics":[
{
"id":"pageviews",
},
{
"id":"revenue",
},
],
"elements":[
{
Getting Started 9
"id":"reportsuite",
"selected":[
"rsid1",
"rsid2"
]
}
],
}
}
//Error Message
https://api.omniture.com/admin/1.4/rest/?method=Report.Queue
{
"reportDescription":{
"reportSuiteID":"rsid",
"dateGranularity":"hours"
}
}
//GetMetrics
https://api.omniture.com/admin/1.4/rest/?method=Report.GetMetrics
{
"reportSuiteID":"rsid",
"existingElements":["page"]
}
//GetElements
https://api.omniture.com/admin/1.4/rest/?method=Report.GetMetrics
{
"reportSuiteID":"rsid",
"existingMetrics":["pageviews"]
}
What's New 10
What's New
Note: Version 1.2 of the web services API is officially deprecated and is scheduled for end-of-life early 2015. Version 1.3
continues to be supported, though customers are encouraged to migrate to the 1.4 API to leverage the improvements described
on this page.
Segmentation Changes
With the release of Adobe Analytics unified segmentation, the following changes apply to segments in the 1.4 Admin and
Reporting APIs:
Report.Queue
Accepts existing segments and new segments created in the new Segment Builder UI.
Allows applying legacy Pre-Configured and Suite segments without validation.
ReportSuite.GetSegments and ReportSuite.GetSettings
Returns only segments that appear in the new Segment Builder UI. Most segments are migrated to the Segment Builder
automatically, with the exception of some pre-defined segments.
All segments available for the authenticated user are returned.
Pre-Configured and Suite segments are no longer returned. These segments are now templates, so you'll need to create a custom
segment based on a template to use these segments.
OAuth authentication
Version 1.4 of the reporting API supports OAuth2 authentication, and maintains support for the version 1.3 password digest
authentication mechanism.
Pathing reports
You can now run pathing and fallout reports in the reporting API.
The type derived is then returned in the result data as: ranked, trended, overtime, pathing, or fallout.
The IDs of these metrics are in the form "f:<number>" where <number> is some integer value. The metric type, decimal
precision, and formula (where applicable) are included for all metrics.
Conversion of formulas and validation against metric and element settings are now handled by the Reporting API.
New metrics
returnvisits
returnvisitsdaily
Removed:
cpageviews
cvisits
cvisitor
New elements
pagefallout
pagepaths
sitesectionfallout
sitesectionpaths
prop#path (Note: For Custom Traffic Vars with Pathing enabled)
prop#fallout (Note: For Custom Traffic Vars with Pathing enabled)
Removed:
cpage
listvar4
listvar5
If the list of metrics is left empty, the default metric of "pageviews" is used.
date/dateFrom/dateTo
Elements now have restrictions on which other elements they can be combined with in a report.
Use GetElements with the existingElements parameter to get a list of valid breakdowns for a specific element.
There are three groups of elements: Traffic, Commerce, and Both. Elements from the Traffic and Commerce groups may only
be broken down by elements in the same group. Elements in the "Both" group can be broken down by any other element. A
report may have a maximum number of three elements. See Analytics Elements.
Use GetMetrics with the existingElements parameter to programmatically get a list of valid metrics for a list of element(s).
Every element has either a metric whitelist or a metric blacklist, whichever is shorter, that determines these restrictions. See
Valid Element and Metric Combinations.
Use GetMetrics with the dateGranularity parameter to programmatically get a list of these metrics. See Analytics Metrics.
Date Enforcement
Minimum date enforcement
Due to specific system requirements, the minimum date that can be used in the date, dateFrom, and dateTo parameters is
2000-01-01.
Due to specific system requirements, the maximum date that can be used in the date, dateFrom, and dateTo parameters is
2899-12-31.
Requesting a toDate that is earlier than fromDate will result in a period_invalid error.
What's New 13
Authentication
Version 1.4 of the reporting API supports OAuth2 authentication, and maintains support for the version 1.3 password digest
authentication mechanism.
See Authentication.
Methods 15
Methods
Cancel
Cancels a previously submitted report request, and removes it from the processing queue.
Method parameters are required unless noted otherwise.
Report.Cancel parameters
Report.Cancel response
Type Description
xsd:boolean Returns true if the operation is successful.
Get
Report.Get Parameters
Report.Get response
Type Description
reportResponse
Contains the requested report data.
GetElements
Permissions
Specific users may not have access to certain elements. The metrics returned by GetElements reflect those restrictions. Requesting
an element that one doesn't have permission to access will result in a element_inaccessible error.
Report.GetElements Parameters
Report.GetElements response
Type Description
GetMetrics
Permissions
Specific users may not have access to certain metrics. The metrics returned by GetMetrics reflect those restrictions. Requesting
a metric that one doesn't have permission to access results in a metric_inaccessible error.
Report.GetMetrics Parameters
Report.GetMetrics response
Type Description
GetQueue
Report.GetQueue parameters
None.
Report.GetQueue response
Type Description
report_queue_item_array- A list of the company's currently queued report requests. The company is determined by the
An array of authentication credentials provided with the request.
report_queue_item
Run
Report.Run Parameters
Report.Run response
Type Description
reportResponse
Contains the requested report data.
Report Type
Report types are determined by the parameters of the reportDescription according to the following table:
The type derived is then returned in the result data as: ranked, trended, overtime, pathing, fallout, summary, or realtime.
metrics
If the list of metrics is left empty, the default metric of "pageviews" is used.
elements
If the list of elements is left empty, the default element of "page" is used.
date/dateFrom/dateTo
If the date parameter(s) are omitted, the current day is used.
Queue
Report.Queue Parameters
Report.Queue Response
Report Type
Report types are determined by the parameters of the reportDescription according to the following table:
The type derived is then returned in the result data as: ranked, trended, overtime, pathing, fallout, summary, or realtime.
metrics
If the list of metrics is left empty, the default metric of "pageviews" is used.
elements
If the list of elements is left empty, the default element of "page" is used.
date/dateFrom/dateTo
If the date parameter(s) are omitted, the current day is used.
Validate
Determines if a report description is valid without running the report. If the report is not valid, an error will be returned detailing
the problem.
Report.Validate Parameters
Report.Validate Response
Type Description
xsd:boolean Returns true if the operation is successful.
Data Types 21
Data Types
report
A structure data type that returns data associated with a particular report request.
reportSuite reportReportSuite
String array that contains the report suite ID and
name.
period xsd:string
A string describing the report time period.
totals array(double)
A list of metric totals.
version xsd:string
reportData
url xsd:string
The data item URL, if applicable to the selected element. For example, pages
and links have a URL, but products do not.
path reportDataPathList
The path for pathing reports.
- an array of
reportDataPath
Data Types 22
year xsd:int
The four-digit year for the item if the element is a date range for an Overtime
or Trended report.
month xsd:int
The two-digit month for the item if the element is a date range for an Overtime
or Trended report.
day xsd:int
The two-digit numeric day for the item if the element is a date range for an
Overtime or Trended report.
hour xsd:int
The two-digit numeric hour for the item if the element is a date range for an
Overtime or Trended report.
minute xsd:int
The two-digit numeric minute for the item if the element is a date range for
a Real-Time report.
trend double
The slope of the trend line so you can determine the relative change between
report intervals.
counts double[]
A count of the number of occurrences of each metric in the report.
upperBounds double[]
Upper level of the prediction interval. Values above this level are considered
anomalous. Represents a 95% confidence that values will be below this level.
lowerBounds double[]
Lower level of the prediction interval. Values below this level are considered
anomalous. Represents a 95% confidence that values will be above this level.
forecasts double[]
The predicted value based on the data analysis. This value is also the middle
point between the upper and lower bounds.
breakdownTotal double[]
The total metrics values for the breakdown.
breakdown reportDataList - an
This item's data, organized according to the next element. For example, a
array of reportData
(recursive) report of Browsers, broken down by page views, returns a report containing
a listing of page views for each Browser type. This is only used in Ranked or
Trended reports when multiple elements (Breakdowns) are specified.
(recursive)
Data Types 23
reportDataPath
reportDataPathList
An array of reportDataPath.
reportDescription
Parameters
dateFrom xsd:string
The starting date used to run the report for when using a data range.
When using dateFrom, do not use date. The date format is YYYY-MM-DD
(4 digit year, 2 digit month, and 2 digit day), but the month and day
designators are optional. For example: date = "2009-01-15"
dateTo xsd:string
The ending date used to run the report for when using a data range.
When using dateTo, do not use date. The date format is YYYY-MM-DD
(4 digit year, 2 digit month, and 2 digit day), but the month and day
designators are optional. For example: date = "2010-01-15"
dateGranularity reportDescriptionDateGranularity
The time units used to display data in a report that organizes the data
by date, such as an Overtime report. For example: dateGranularity
= "day". One of the following values:
source reportDescriptionSource
Defaults to 'standard', specify 'realtime' to generate a Real-Time report.
metrics reportDescriptionMetricList
An array of the metrics to include in the report. A report must specify
- An array of
reportDescriptionMetric at least one metric (Ranked/Overtime reports support one or more
metrics. Trended reports support only one metric.) For
example:metrics = [ {id = "pageViews"},{id = "visits"}
]
elements reportDescriptionElementList
A list of elements that breaks down (organizes) the metrics data in the
- An array of
reportDescriptionElement report. For example, you can generate a report that breaks down page
views (metric) by browser (element). For example: elements = [
{id = "trackingCode", classification = "campaigns",
top = 2, startingWith = 10} ]
Data Types 25
locale reportDescriptionLocale
The geographic locale where you want to run the report.
sortMethod xsd:string
Real-Time Report sort method.
sortBy xsd:string The reportDescriptionMetric ID to sort by. This can be used when
declaring multiple metrics for Ranked and Trended reports. By default,
the first metric will be used to sort. Use this option to sort by any of
the metrics requested.
segments reportDescriptionSegmentList
Defines one or more saved segments or an inline segment. See Inline
- An array of
reportDescriptionSegment Segmentation.
anomalyDetection xsd:boolean
Returns upper bounds, lower bounds, and forecast data for anomaly
detection. See Anomaly Detection.
currentData xsd:boolean
Include current data in the report.
expedite xsd:boolean
Generates the report with higher priority.
elementDataEncoding reportDescriptionElementDataEncoding
To allow non-UTF-8 characters that are in element names to come
through SOAP XML and JSON intact, this parameter filters out invalid
characters, or encodes element names in Base64. If specified, this must
be one of the following values:
utf8
base64
Important
If base64 encoding is used, the request must also have all element
names base64 encoded. This includes names in "selected" and "search"
filters, and the "pattern" and "checkpoint" pathing filters. This also
applies to special keywords as well, such as "::entered::" and
"::anything::". This also includes dates in the "name" field for overtime
and trended reports. Element URLs are not encoded.
If utf8 encoding is used, the API filters out invalid UTF-8 characters
in the request and response. This allows the result to come back with
some data, although the values may be missing information.
Data Types 26
sortMethod Options
The following table describes the sort options provided for real-time reports using the sortMethod parameter. Options are
provided in a delimited list as follows:
<algorithm>:<floorSensitivity>:<firstRankPeriod>:<algorithmArgument>
floorSensitivity xsd:int (Optional) A factor between 0 and 1 that is used to cut off low-count items
from percentage ranking. Relative only to gainers/losers by percent. Default
is .25.
firstRankPeriod xsd:string
(Optional) Computes the ranking of elements by considering the element's
counts from the firstRankPeriod to the final period. Default is 0.
With this argument you can rank from the first period (0) to periodCount
- 1 (most popular) or periodCount - 3 (gainers/losers) or anywhere in
between. The firstRankPeriod is 0 based.
algorithmArgument xsd:string (Optional) Specifies how to order the values for Most Popular, Gainers or
Losers. Specify either percent, count or linear. Default is linear.
reportDescriptionDateGranularity
An enumerated list of values that specify a time period used to display report data.
If you do not specify a dateGranularity parameter for an overtime report, the data will be aggregate and not granularized.
Value Description
seconds Displays report data for the current minute (Real-Time reports only).
hour Displays report data for the current hour.
day Displays report data for the current day.
week Displays report data for the current week.
month Displays report data for the current month.
Data Types 27
Value Description
quarter Displays report data for the current quarter.
year Displays report data for the current year.
reportDescriptionElement
startingWith xsd:int
(Optional) Specifies the first row in the report to return. Use with top to
generate paged reports. For example, startingWith=20 returns report
rows starting at row 20.
selected array(xsd:string) (Optional) Defines a specific list of items to request instead of using search,
top, and startingWith to set the element parameters.
parentID xsd:string
(Optional) Hierarchy report. To specify a specific level to report, add a add
a level and parentID parameter. The parentID is returned in report data,
making it available to request the next level of the hierarchy.
checkpoints array(xsd:string)
Generates a pathing report. See Pathing Reports
pattern xsd:string[][]
Generate a fallout pathing report. See Pathing Reports
reportDescriptionElementDataEncoding
Value Description
base64
If base64 encoding is used, the request must also have all element names base64 encoded. This includes names
in "selected" and "search" filters, and the "pattern" and "checkpoint" pathing filters. This also applies to special
keywords as well, such as "::entered::" and "::anything::". This also includes dates in the "name" field for overtime
and trended reports. Element URLs are not encoded.
utf8
If utf8 encoding is used, the API filters out invalid UTF-8 characters in the request and response. This allows
the result to come back with some data, although the values may be missing information.
reportDescriptionElementList
An array of reportDescriptionElement.
reportDescriptionLocale
An enumerated list of values that specify the language used to display the report data.
Value Description
en_US English (United States)
de_DE German (Germany)
es_ES Spanish (Spain)
fr_FR French (France)
jp_JP Japanese (Japan)
pt_BR Portuguese (Brazil)
ko_KR Korean (Korea)
zh_CN Chinese (China)
zh_TW Chinese (Taiwan)
reportDescriptionMetric
reportDescriptionMetricList
An array of reportDescriptionMetric.
Data Types 29
reportDescriptionSearch
keywords string[]
A list of keywords to include or exclude from the search, based on the type.
Keyword values can also leverage the following special characters to define
advanced search criteria:
searches reportDescriptionSearch[] A list of subsearches. This allows you to build complex report searches.
reportDescriptionSearchType
An enumerated list of boolean values used to link multiple search terms in a report search.
Value Description
AND Combines multiple search terms using a boolean AND operation.
OR Combines multiple search terms using a boolean OR operation.
NOT Combines multiple search terms using a boolean NOT operation (effectively excluding a term from the search).
reportDescriptionSegment
search reportDescriptionSearch
(Optional, provide either a selected value, or a classification and a search
value).
classification xsd:string
(Optional, provide either a selected value, or a classification and a search
value).
Unsupported Elements
The following elements are not supported for inline segments.
pagedepth
visitnumber
mobilecarrier
hier*
*paths
*fallout
reportDescriptionSegmentList
An array of reportDescriptionSegment.
reportDescriptionSource
Value Description
standard
Returns a standard report.
realtime
Returns a Real-Time report.
Data Types 31
reportElement
name xsd:string
The element name.
classification xsd:string
The name of the classification that was requested, if applicable.
reportElementInfo
name string
The friendly name of the element.
reportElementList
An array of reportElement.
reportMetric
name xsd:string
The metric name.
type xsd:string
The metric type, either "number", or "currency".
decimals xsd:int
The number of decimal places in the metric values.
forumula xsd:string
The formula if the metric is a calculated metric.
Data Types 32
current xsd:boolean
True indicates that the metric contains the most recent data available as a
result of the currentData flag being set to true in the reportDescription.
reportMetricInfo
name string
The friendly name of the metric.
type string
The type of the metric (number, percent, currency, time).
decimals integer
The number of decimal places in the metric values.
formula string
The formula if the metric is a calculated metric.
reportMetricList
An array of reportMetric.
reportReportSuite
name xsd:string
The report suite display name.
Data Types 33
reportResponse
A structure data type that returns data associated with a particular report request.
runSeconds xsd:float
The time in seconds this report took to process and return data. A high value
here is indicative of a complex report or large date range.
report report
A structure containing the report data.
reportSegment
name xsd:string
The element name.
report_queue_item
queueTime xsd:string
The time the report was requested (Pacific Time).
status xsd:string
The processing status of the report, one of the following values:
Data Types 34
priority xsd:int
The priority in the queue.
estimate xsd:int
The estimate in seconds that the report will take to complete.
user xsd:string
The analytics user who requested the report.
report_queue_item_array
A list of report_queue_item.
Analytics Elements 35
Analytics Elements
Provides a list of elements available in Analytics.
An element is a structure that further breaks down (organizes) the a report's metrics data. For example, you can generate a report
that breaks down a page view (metric) report by the Web browsers (element) used to access the page. The resulting report lists
page views by Web browser type. As part of the report definition, you can specify the elements to include in the report in a
reportDescriptionElement.
Permissions
Specific users may not have access to certain elements. The metrics returned by GetElements reflect those restrictions. Requesting
an element that one doesn't have permission to access will result in a element_inaccessible error.
Element Breakdowns
The reporting API has two groups of elements: Traffic and Commerce. Elements may only be broken down by elements in the
same group, as listed in the "Breakdown Type" column in the table below. Breakdowns are not supported on fallout and pathing
reports.
You can pass any of these elements to GetElements to get a list of valid breakdowns for a specific element.
Element Descriptions
pagesNotFound traffic The number of times a visitor encountered a missing page (HTTP 404
error).
pathLength commerce Number of pages viewed during the visit.
product commerce Individual products.
prop # traffic+commerce Specified property.
trackingCode commerce Campaign tracking code results.
referrer traffic Domain or URL that client came from.
referrerType traffic Type of referrer. Options include Hard drive, Other Web site, Search
engine, Social, andTyped/Bookmarked.
referringDomain traffic+commerce Domains that referred client to the site.
referringDomainOriginal commerce Domains that referred client to the site on their first visit.
Analytics Elements 38
Analytics Metrics
Provides a list of metrics available in Analytics.
A metric is a structure that specifies the type of event data captured in the report.
Calculated Metrics
Calculated metrics are returned along with the other reporting API metrics. The IDs of these metrics are in the form
f:<number>
The metric type, decimal precision, and formula (where applicable) are included for all metrics.
Overtime-Only Metrics
Some metrics are only valid in overtime reports. Use Report.GetMetrics with the dateGranularity parameter to programmatically
get a list of these metrics.
averagetimespentonsite
averagevisitdepth
customersdaily
customersloyal
customersmonthly
customersnew
customersquarterly
customersreturn
customersweekly
customersyearly
mobileviews
mobilevisitorsdaily
mobilevisits
returnvisits
returnvisitsdaily
If you try to run an overtime report on an unsupported metric, a metric_unsupported_in_overtime error occurs.
Permissions
Specific users may not have access to certain metrics. The metrics returned by GetMetrics reflect those restrictions. Requesting
a metric that one doesn't have permission to access will result in a metric_inaccessible error.
Metric Descriptions
participationCarts
lifetimeParticipationCarts
Commerce
cartAdditions Checkout cart addition metrics
lifetimeCartAdditions The number of times an item was added to a shopping cart. This
value comes from the scAdd event.
lifetimeTotalCartAdditions
participationCartAdditions
lifetimeParticipationCartAdditions
Commerce
cartRemovals Checkout cart removal metrics
lifetimeCartRemovals Number of times an item was removed from a shopping cart. This
value comes from the scRemove event.
lifetimeTotalCartRemovals
participationCartRemovals
lifetimeParticipationCartRemovals
Commerce
cartViews Checkout cart view metrics
lifetimeCartViews Event in which the contents of the shopping cart are viewed by the
customer. This value comes from the scView event.
lifetimeTotalCartViews
participationCartViews
lifetimeParticipationCartViews
Commerce
checkouts Checkout activity metrics
totalCheckout Checkouts
lifetimeCheckout An event that occurs when customers arrive at the checkout stage of
a purchase. The checkout stage usually occurs just before a purchase
lifetimeTotalCheckouts
is finalized, and usually involves the customer entering personal
participationCheckouts information (such as their shipping and billing information). You
have control over the events on your site that qualify as checkouts.
lifetimeParticipationCheckouts
This value comes from the scCheckout event.
Commerce
instances Number of times a specific value is captured.
Instances take into account all image request types, and do not factor
in conversion variable persistence. For example, if a user arrives on
Analytics Metrics 42
Commerce
orders Order activity metrics
totalOrders Orders
lifetimeOrders The number of orders made on your website during the selected time
period. You can break down individual time periods by other metrics
lifetimeTotalOrders
to show the items (such as products or campaigns) that contributed
participationOrders to the most orders during that time frame.
lifetimeParticipationOrders
Commerce
revenue eCommerce revenue metrics
totalRevenue Revenue
lifetimeRevenue Revenue is captured on the purchase event, and is defined as the total
dollar amount for the sum of the order for each product. This value
lifetimeTotalRevenue
comes from the purchase event.
participationRevenue
lifetimeParticipationRevenue
Commerce
units Units purchased metrics
totalUnits Units
lifetimeUnits The total units that were ordered for the selected time period. Because
you have many units purchased per order, Units is a vital metric that
lifetimeTotalUnits
reveals general inventory movement.
participationUnits
lifetimeParticipationUnits
customersReturn
customersLoyal
customersDaily
customersWeekly
customersMonthly
customersQuarterly
customersYearly
Analytics Metrics 43
bounceRate
totalTimeSpent
pathviews
socialreach
socialtotalsentiment
sociallikeadds
socialpageviews
socialpostviews
socialfbstorytellers
socialfbstories
socialpubrecommends
socialpubcomments
socialpubsubscribers
socialpubposts
videocomplete
videosegmentviews
videoadstart
videoadcomplete
mobileVisitorsDaily
totalVisits
averageTimeSpentOnSite
averageVisitDepth
returnvisits
returnvisitsdaily
Traffic
visitors Site visitor metrics
visitorsNew
visitorsHourly
totalVisitorsHourly
visitorsDaily
totalVisitorsDaily
visitorsWeekly
totalVisitorsWeekly
visitorsMonthly
totalVisitorsMonthly
visitorsQuarterly
totalVisitorsQuarterly
visitorsYearly
totalVisitorsYearly
videoVisits
videoVisitorsDaily
averageTimeSpentOnPage
entries
exits
reloads
singleAccess
Analytics Metrics 45
Adjective Meaning
invalid The provided value is wrong in some way. If the user changes it, things will work.
missing A required value is missing. If the user provides it, things will work.
inaccessible The user doesn't have permission to access the feature.
unsupported The particular functionality requested is not supported at this time. It may be supported in the future.
unavailable The feature requested isn't available. The user can usually fix this but not by changing the report
description.
failure The system has failed and it's not the users fault.
Code Message
algorithm_argument_invalid algorithmArgument must be "linear" or "count"
calculated_metric_invalid Formula "%s" not found
calculated_metric_invalid Invalid formula ID "%s"
calculated_metric_invalid Invalid metric "%s"
calculated_metric_invalid Metric "%s" in formula "%s" is not found
calculated_metric_unsupported Metric "%s" in formula "%s" is not supported
date_granularity_missing anomalyDetection requires dateGranularity
date_invalid "%s" is not a valid date
element_classification_invalid Invalid classification "%s" for element "%s"
element_combination_unsupported This combination of elements is not supported
element_id_invalid Element "%s" not found
element_id_missing Element id must be specified
element_inaccessible You do not have permission to access element "%s"
element_top_invalid The maximum number of top element values supported is %d
element_search_unsupported Element search is only supported on the first element for Real Time reports
element_selected_unsupported Element selected is only supported on the first element for Real Time reports
element_top_unsupported "top" is only supported on the primary (last) element for Real Time reports
element_top_invalid The maximum number of top element values supported is 100
elements_invalid The maximum number of elements supported is %d
expedite_inaccessible You do not have permission to expedite this request
fallout_checkpoint_required Fallout selected checkpoint cannot be empty
Analytics Report Error Codes 49
Anomaly Detection
Anomaly detection provides a statistical method to determine how a given metric has changed in relation to previous data.
To retrieve anomaly detection data, set anomalyDetection to true in reportDescription.
Inline Segmentation
Inline segmentation allows you to segment report data using segment definitions that are include as part of the reportDescription
:
Segment by specific line items (only include data where page = "Home Page")
Segment classified values by search criteria (only include data where a classification of evar1 matches a search)
Note the following limitations:
Segments are based on a page view container.
A maximum of 10,000 values are returned when you define an inline segment. If you encounter this limitation, either reduce
the scope of the report or use a regular segment.
Some reports are not supported by inline segments. A complete list is at the bottom of this article.
Prop values cannot be used to define inline segments.
Important: In version 1.4, inline segments no longer use the "id" parameter to specify the element as in 1.3. If migrating
code from version 1.3, move the element value that was previously in the "id" parameter to the "element" parameter.
This report shows the page views for every browser when the page name is either "Home Page" or "Shopping Cart".
"element": "eVar1",
"classification": "Group Name",
"search": { "type": "OR", "keywords": ["Administrator", "Manager", "Director"]
}
}
],
}
}
This report shows the page views for every browser when the "Group Name" classification of eVar1 contains "Administrator,
"Manager", or "Director".
Multiple Segments
You can provide multiple segments in the segments array. Segments are joined using AND. Segments cannot be nested.
"segments": [
{
"element": "page",
"selected": ["Home Page", "Shopping Cart"]
},
{
"element": "eVar1",
"classification": "Group Name",
"search": { "type": "OR", "keywords": ["Administrator", "Manager", "Director"]
}
}
]
Including this segment definition in a report shows metrics where the page name is either "Home Page" or "Shopping Cart", and
the "Group Name" classification of eVar1 contains "Administrator, "Manager", or "Director".
Examples
The following table contains an example of the different search types available with inline segmentation.
Is not null
Run a report on the selected element and classification.
Inline Segmentation 54
Unsupported Reports
Inline segments cannot be applied to the following report data:
Pathing reports
Mobile carrier
Clickmap
GeoSegmentation Region, City, and U.S. DMA Reports
Hierarchies
Clicks to page
Time spent on page
Time spent on site
Visit depth
Visit number
Keyword URLs
Return visits
Real-Time Reports 55
Real-Time Reports
Real Time API reports let you view orders, revenue, units, custom events, instances, and other metrics with up to three correlated
dimensions to create granular, real time dashboards with seconds of latency. Real-time reports are available for a rolling 22
previous hour period.
Real time reports operate most efficiently with frequent requests. We recommend between 15-30 seconds between updates.
You can provide a single metric with up to three correlated elements. Note that
you do not need to include each correlated element for every report. For example,
based on the struct in step one, you can report searchenginekeyword instances
without reporting prop2 instances. Realtime configuration changes take 15 minutes
to be reflected in reports.
Note: If the ui_report parameter is set to false, you must save at least one
element and one metric or the configuration will be invalid, even though an
error does not occur. If the ui_report parameter is set to true, you must save
three elements and one metric or you will receive an error.
Minute Granularity
When requesting a Real-Time report, you can provide a "dateGranularity" of "minute:[interval]". The interval is an
integer between 1-60 that specifies the interval to report. For example, 'minute:3' reports the request date range in 3-minute
intervals.
Relative Dates
Real-Time Reports support relative dates for the Date, DateFrom, and DateTo parameters. For example, to report revenue
between noon today and the current time in 3-minute intervals, you could use the following reportDescription:
{
"reportDescription": {
"source": "realtime",
"dateFrom": "noon",
"dateTo": "now",
"dateGranularity": "minute:3",
"reportSuiteID": "rsid",
"metrics": [
{ "id": "revenue" }
]
}
}
Sort Options
Real-Time reports provide a number of sort options that are described in SortMethod Options.
{
"reportDescription": {
"source": "realtime",
"reportSuiteID": "rsid",
"sortMethod": "mostpopular:.25:0:linear",
"metrics": [
{ "id": "revenue" }
]
}
}
Metrics Elements
pageviews page
revenue product
orders sitesection
units server
carts linkdownload
cartviews linkexit
instances linkcustom
checkouts topleveldomain
cartadditions referringdomain
cartremovals searchengine
events1-100 searchenginekeyword
videotime searchenginenatural
videostart searchenginepaid
videocomplete geocountry
videosegmentviews georegion
videoadstart geocity
videoadcomplete geodma
socialmentions prop1-75
socialtotalsentiment evar1-75
sociallikeadds surveybase
socialpageviews listvar1
socialpostviews listvar2
socialfbstorytellers listvar3
socialfbstories listvar4
socialpubrecommends video
socialpubcomments videoad
socialpubsubscribers videosegment
socialpubposts videocontenttype
mobileinstalls socialterm
mobileupgrades socialcontentprovider
mobiledailyengagedusers socialauthor
Real-Time Reports 58
Metrics Elements
mobilemonthlyengagedusers sociallanguage
mobilelaunches sociallatlong
mobilecrashes socialassettrackingcode
mobileprevsessionlength mobileinstalldate
mobileappid
mobilelaunchnumber
mobiledayssincefirstuse
mobiledayssincelastuse
mobilehourofday
mobiledayofweek
mobileosenvironment
mobiledayssincelastupgrade
mobilelaunchessincelastupgrade
mobiledevice
mobileosversion
mobilegooglecampaignsource
mobilegooglecampaignmedium
mobilegooglecampaignterm
mobilegooglecampaigncontent
mobilegooglecampaignname
Summary Reports 59
Summary Reports
Summary reports provide high-level metrics for several report suites in a single report.
Summary reports do not contain the "reportSuiteID" parameter, instead the report suite is specified as the "reportsuite"
report element, and the "selected" parameter contains a list of report suite IDs. The "metrics" parameter contains the
metrics you want to report for the specified report suites.
// Summary Report
// Note that the "reportSuiteID" parameter is not included
// and the elements list contains "reportsuite"
// Report suites are provided in the "selected" element
{
"reportDescription":{
"date":"2014",
"metrics":[
{
"id":"pageviews",
},
{
"id":"revenue",
},
],
"elements":[
{
"id":"reportsuite",
"selected":[
"rsid1",
"rsid2"
]
}
],
}
}
Example response:
{
"report":{
"type":"summary",
"elements":[
{
"id":"reportsuite",
"name":"Report Suite"
}
],
"reportSuite":{
"id":"rsid1",
"name":"Report Suite 1"
},
"period":"2014",
"metrics":[
{
"id":"pageviews",
"name":"Page Views",
"type":"number",
"decimals":0
},
{
"id":"revenue",
"name":"Revenue",
"type":"currency",
"decimals":2
}
],
"data":[
Summary Reports 60
{
"name":"rsid1",
"url":"",
"counts":[
"562166",
"0.00"
]
},
{
"name":"rsid2",
"url":"",
"counts":[
"484560",
"41265.00"
]
}
],
"totals":null,
"version":"1.4.14.5"
}
}
Pathing Reports 61
Pathing Reports
There are two kinds of pathing reports, "Pathing" and "Fallout".
The first pattern matchs the page named videoPage5, the next pattern matches any page.
Not
"pattern": [
["::anything::"],
["::not::","videoPage5","videoPage6"]
]
Value Meaning
::anything:: Any page, including entered and existed
::not_entered:: Anything except entered the site
::not_exited:: Anything expect exited the site
::entered:: Entered the site
::exited:: Exited the site
::not:: Used before a pagename(s) to negate it. IE. "::not::","page1"
Example request:
{
"reportSuiteID": "rsid",
"dateFrom": "2014-01-01",
"dateTo": "2014-01-02",
"metrics": [
{
"id": "pageviews" //This metric is required for all fallout reports. It is the only metric
currently supported.
}
],
"elements": [
{
"id": "page", //Only 1 element can be specified. Valid elements are page, sitesection,
and prop## (if pathing enabled).
"checkpoints": [ //This is the list of checkpoints (Maximum 8 items)
"videoPage3",
"videoPage2",
"videoPage1"
]
}
],
"locale": "en_US"
}
Example response:
{
"type": "fallout",
"elements": [
{
"id": "page",
"name": "Page"
}
],
"reportSuite": {
"id": "rsid",
"name": "my report suite"
},
"period": "Wed. 1 Jan. 2014 - Thu. 2 Jan. 2014",
"metrics": [
{
"id": "pageviews",
"name": "Page Views",
"type": "number",
"decimals": 0,
"latency": 205,
"current": false
}
],
"data": [
{
"name": "videoPage3",
"url": "http://example.com/videoPage3",
"counts": [
"191" //This is the total number of visits
]
},
{
"name": "videoPage2",
"url": "http://example.com/videoPage2",
"counts": [
"53" //This is the number of visits that continued (27%)
] //Meaning that 130 exited the site (73%)
},
{
"name": "videoPage1",
"url": "http://example.com/videoPage1",
Pathing Reports 63
"counts": [
"20" //This is the number of visits that continued (37%)
] //Meaning that 33 exited the site (63%)
}
],
"totals": null,
"version": "1.4"
}
Examples
//Pathing Report -- NextPage Flow
https://api.omniture.com/admin/1.4/rest/?method=Report.Queue
{
"reportDescription":{
"reportSuiteID":"rsid",
"metrics":[
{"id":"pageviews"}
],
"elements":[
{"id":"page",
"top":"10",
"startingWith":"1",
"pattern":[
["homepage"],
["::anything::"],
["::anything::"],
["::anything::"],
["::anything::"]
]}
]
}
}
]
}
}