blob: 39453babed515f448b2018a4a056dc2957bb0c0b [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="analytics_v3.html">Google Analytics API</a> . <a href="analytics_v3.data.html">data</a> . <a href="analytics_v3.data.mcf.html">mcf</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070078 <code><a href="#get">get(ids, start_date, end_date, metrics, filters=None, sort=None, max_results=None, start_index=None, samplingLevel=None, dimensions=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040079<p class="firstline">Returns Analytics Multi-Channel Funnels data for a view (profile).</p>
80<h3>Method Details</h3>
81<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -070082 <code class="details" id="get">get(ids, start_date, end_date, metrics, filters=None, sort=None, max_results=None, start_index=None, samplingLevel=None, dimensions=None)</code>
John Asmuth614db982014-04-24 15:46:26 -040083 <pre>Returns Analytics Multi-Channel Funnels data for a view (profile).
84
85Args:
86 ids: string, Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. (required)
87 start_date: string, Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo. (required)
88 end_date: string, End date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -070089 metrics: string, A comma-separated list of Multi-Channel Funnels metrics. E.g., &#x27;mcf:totalConversions,mcf:totalConversionValue&#x27;. At least one metric must be specified. (required)
John Asmuth614db982014-04-24 15:46:26 -040090 filters: string, A comma-separated list of dimension or metric filters to be applied to the Analytics data.
Bu Sun Kim65020912020-05-20 12:08:20 -070091 sort: string, A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.
John Asmuth614db982014-04-24 15:46:26 -040092 max_results: integer, The maximum number of entries to include in this feed.
Bu Sun Kim65020912020-05-20 12:08:20 -070093 start_index: integer, An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
John Asmuth614db982014-04-24 15:46:26 -040094 samplingLevel: string, The desired sampling level.
95 Allowed values
96 DEFAULT - Returns response with a sample size that balances speed and accuracy.
97 FASTER - Returns a fast response with a smaller sample size.
98 HIGHER_PRECISION - Returns a more accurate response using a large sample size, but this may result in the response being slower.
Bu Sun Kim65020912020-05-20 12:08:20 -070099 dimensions: string, A comma-separated list of Multi-Channel Funnels dimensions. E.g., &#x27;mcf:source,mcf:medium&#x27;.
John Asmuth614db982014-04-24 15:46:26 -0400100
101Returns:
102 An object of the form:
103
104 { # Multi-Channel Funnels data for a given view (profile).
Bu Sun Kim65020912020-05-20 12:08:20 -0700105 &quot;totalResults&quot;: 42, # The total number of rows for the query, regardless of the number of rows in the response.
106 &quot;sampleSpace&quot;: &quot;A String&quot;, # Total size of the sample space from which the samples were selected.
107 &quot;selfLink&quot;: &quot;A String&quot;, # Link to this page.
108 &quot;totalsForAllResults&quot;: { # Total values for the requested metrics over all the results, not just the results returned in this response. The order of the metric totals is same as the metric order specified in the request.
109 &quot;a_key&quot;: &quot;A String&quot;, # Key-value pair for the total value of a metric. Key is the metric name and the value is the total value for that metric.
110 },
111 &quot;profileInfo&quot;: { # Information for the view (profile), for which the Analytics data was requested.
112 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
113 &quot;tableId&quot;: &quot;A String&quot;, # Table ID for view (profile).
114 &quot;profileName&quot;: &quot;A String&quot;, # View (Profile) name.
115 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web Property ID to which this view (profile) belongs.
116 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
117 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID.
118 },
119 &quot;rows&quot;: [ # Analytics data rows, where each row contains a list of dimension values followed by the metric values. The order of dimensions and metrics is same as specified in the request.
John Asmuth614db982014-04-24 15:46:26 -0400120 [
Bu Sun Kim65020912020-05-20 12:08:20 -0700121 { # A union object representing a dimension or metric value. Only one of &quot;primitiveValue&quot; or &quot;conversionPathValue&quot; attribute will be populated.
122 &quot;conversionPathValue&quot;: [ # A conversion path dimension value, containing a list of interactions with their attributes.
John Asmuth614db982014-04-24 15:46:26 -0400123 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 &quot;interactionType&quot;: &quot;A String&quot;, # Type of an interaction on conversion path. Such as CLICK, IMPRESSION etc.
125 &quot;nodeValue&quot;: &quot;A String&quot;, # Node value of an interaction on conversion path. Such as source, medium etc.
John Asmuth614db982014-04-24 15:46:26 -0400126 },
127 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700128 &quot;primitiveValue&quot;: &quot;A String&quot;, # A primitive dimension value. A primitive metric value.
John Asmuth614db982014-04-24 15:46:26 -0400129 },
130 ],
131 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 &quot;kind&quot;: &quot;analytics#mcfData&quot;, # Resource type.
133 &quot;sampleSize&quot;: &quot;A String&quot;, # The number of samples used to calculate the result.
134 &quot;containsSampledData&quot;: True or False, # Determines if the Analytics data contains sampled data.
135 &quot;columnHeaders&quot;: [ # Column headers that list dimension names followed by the metric names. The order of dimensions and metrics is same as specified in the request.
John Asmuth614db982014-04-24 15:46:26 -0400136 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 &quot;dataType&quot;: &quot;A String&quot;, # Data type. Dimension and metric values data types such as INTEGER, DOUBLE, CURRENCY, MCF_SEQUENCE etc.
138 &quot;columnType&quot;: &quot;A String&quot;, # Column Type. Either DIMENSION or METRIC.
139 &quot;name&quot;: &quot;A String&quot;, # Column name.
John Asmuth614db982014-04-24 15:46:26 -0400140 },
141 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700142 &quot;id&quot;: &quot;A String&quot;, # Unique ID for this data response.
143 &quot;itemsPerPage&quot;: 42, # The maximum number of rows the response can contain, regardless of the actual number of rows returned. Its value ranges from 1 to 10,000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
144 &quot;query&quot;: { # Analytics data request query parameters.
145 &quot;sort&quot;: [ # List of dimensions or metrics based on which Analytics data is sorted.
146 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700147 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700148 &quot;max-results&quot;: 42, # Maximum results per page.
149 &quot;metrics&quot;: [ # List of analytics metrics.
150 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700151 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;segment&quot;: &quot;A String&quot;, # Analytics advanced segment.
153 &quot;start-date&quot;: &quot;A String&quot;, # Start date.
154 &quot;start-index&quot;: 42, # Start index.
155 &quot;ids&quot;: &quot;A String&quot;, # Unique table ID.
156 &quot;samplingLevel&quot;: &quot;A String&quot;, # Desired sampling level
157 &quot;dimensions&quot;: &quot;A String&quot;, # List of analytics dimensions.
158 &quot;end-date&quot;: &quot;A String&quot;, # End date.
159 &quot;filters&quot;: &quot;A String&quot;, # Comma-separated list of dimension or metric filters.
Dan O'Mearadd494642020-05-01 07:42:23 -0700160 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 &quot;nextLink&quot;: &quot;A String&quot;, # Link to next page for this Analytics data query.
162 &quot;previousLink&quot;: &quot;A String&quot;, # Link to previous page for this Analytics data query.
John Asmuth614db982014-04-24 15:46:26 -0400163 }</pre>
164</div>
165
166</body></html>