blob: a7c0df2fd051ab5491c96684a95baa93a9e54a27 [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.management.html">management</a> . <a href="analytics_v3.management.goals.html">goals</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
John Asmuth614db982014-04-24 15:46:26 -040081 <code><a href="#get">get(accountId, webPropertyId, profileId, goalId)</a></code></p>
82<p class="firstline">Gets a goal to which the user has access.</p>
83<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#insert">insert(accountId, webPropertyId, profileId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<p class="firstline">Create a new goal.</p>
86<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080087 <code><a href="#list">list(accountId, webPropertyId, profileId, max_results=None, start_index=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040088<p class="firstline">Lists goals to which the user has access.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#patch">patch(accountId, webPropertyId, profileId, goalId, body=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070091<p class="firstline">Updates an existing goal. This method supports patch semantics.</p>
John Asmuth614db982014-04-24 15:46:26 -040092<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#update">update(accountId, webPropertyId, profileId, goalId, body=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070094<p class="firstline">Updates an existing goal.</p>
John Asmuth614db982014-04-24 15:46:26 -040095<h3>Method Details</h3>
96<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097 <code class="details" id="close">close()</code>
98 <pre>Close httplib2 connections.</pre>
99</div>
100
101<div class="method">
John Asmuth614db982014-04-24 15:46:26 -0400102 <code class="details" id="get">get(accountId, webPropertyId, profileId, goalId)</code>
103 <pre>Gets a goal to which the user has access.
104
105Args:
106 accountId: string, Account ID to retrieve the goal for. (required)
107 webPropertyId: string, Web property ID to retrieve the goal for. (required)
108 profileId: string, View (Profile) ID to retrieve the goal for. (required)
109 goalId: string, Goal ID to retrieve the goal for. (required)
110
111Returns:
112 An object of the form:
113
114 { # JSON template for Analytics goal resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800115 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800116 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
117 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800118 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
119 &quot;eventConditions&quot;: [ # List of event conditions.
120 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800121 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800122 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
123 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800124 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
125 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800126 },
127 ],
128 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
129 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800130 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800131 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800132 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800133 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800134 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
135 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
136 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
137 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800138 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
139 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
140 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
141 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800142 &quot;active&quot;: True or False, # Determines whether this goal is active.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800143 &quot;name&quot;: &quot;A String&quot;, # Goal name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800144 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
145 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
146 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
147 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
148 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
149 },
150 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
151 &quot;value&quot;: 3.14, # Goal value.
152 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
153 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
154 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
155 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
156 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
157 {
158 &quot;name&quot;: &quot;A String&quot;, # Step name.
159 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
160 &quot;number&quot;: 42, # Step number.
161 },
162 ],
163 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
164 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800165 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400166</div>
167
168<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700169 <code class="details" id="insert">insert(accountId, webPropertyId, profileId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400170 <pre>Create a new goal.
171
172Args:
173 accountId: string, Account ID to create the goal for. (required)
174 webPropertyId: string, Web property ID to create the goal for. (required)
175 profileId: string, View (Profile) ID to create the goal for. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700176 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400177 The object takes the form of:
178
179{ # JSON template for Analytics goal resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800180 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800181 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
182 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800183 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
184 &quot;eventConditions&quot;: [ # List of event conditions.
185 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800186 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800187 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
188 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800189 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
190 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800191 },
192 ],
193 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
194 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800195 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800196 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800197 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800198 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800199 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
200 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
201 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
202 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800203 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
204 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
205 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
206 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800207 &quot;active&quot;: True or False, # Determines whether this goal is active.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800208 &quot;name&quot;: &quot;A String&quot;, # Goal name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800209 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
210 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
211 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
212 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
213 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
214 },
215 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
216 &quot;value&quot;: 3.14, # Goal value.
217 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
218 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
219 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
220 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
221 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
222 {
223 &quot;name&quot;: &quot;A String&quot;, # Step name.
224 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
225 &quot;number&quot;: 42, # Step number.
226 },
227 ],
228 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
229 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800230 }
John Asmuth614db982014-04-24 15:46:26 -0400231
232
233Returns:
234 An object of the form:
235
236 { # JSON template for Analytics goal resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800237 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800238 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
239 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800240 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
241 &quot;eventConditions&quot;: [ # List of event conditions.
242 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800243 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800244 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
245 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800246 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
247 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800248 },
249 ],
250 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
251 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800252 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800253 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800254 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800255 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800256 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
257 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
258 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
259 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800260 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
261 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
262 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
263 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800264 &quot;active&quot;: True or False, # Determines whether this goal is active.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800265 &quot;name&quot;: &quot;A String&quot;, # Goal name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800266 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
267 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
268 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
269 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
270 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
271 },
272 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
273 &quot;value&quot;: 3.14, # Goal value.
274 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
275 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
276 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
277 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
278 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
279 {
280 &quot;name&quot;: &quot;A String&quot;, # Step name.
281 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
282 &quot;number&quot;: 42, # Step number.
283 },
284 ],
285 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
286 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800287 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400288</div>
289
290<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800291 <code class="details" id="list">list(accountId, webPropertyId, profileId, max_results=None, start_index=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400292 <pre>Lists goals to which the user has access.
293
294Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700295 accountId: string, Account ID to retrieve goals for. Can either be a specific account ID or &#x27;~all&#x27;, which refers to all the accounts that user has access to. (required)
296 webPropertyId: string, Web property ID to retrieve goals for. Can either be a specific web property ID or &#x27;~all&#x27;, which refers to all the web properties that user has access to. (required)
297 profileId: string, View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or &#x27;~all&#x27;, which refers to all the views (profiles) that user has access to. (required)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800298 max_results: integer, The maximum number of goals to include in this response.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800299 start_index: integer, An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
John Asmuth614db982014-04-24 15:46:26 -0400300
301Returns:
302 An object of the form:
303
304 { # A goal collection lists Analytics goals to which the user has access. Each view (profile) can have a set of goals. Each resource in the Goal collection corresponds to a single Analytics goal.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800305 &quot;previousLink&quot;: &quot;A String&quot;, # Link to previous page for this goal collection.
306 &quot;kind&quot;: &quot;analytics#goals&quot;, # Collection type.
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 &quot;items&quot;: [ # A list of goals.
John Asmuth614db982014-04-24 15:46:26 -0400308 { # JSON template for Analytics goal resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800309 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800310 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
311 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800312 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
313 &quot;eventConditions&quot;: [ # List of event conditions.
314 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800315 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800316 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
317 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800318 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
319 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800320 },
321 ],
322 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
323 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800324 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800325 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800326 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800327 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800328 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
329 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
330 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
331 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800332 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
333 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
334 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
335 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800336 &quot;active&quot;: True or False, # Determines whether this goal is active.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800337 &quot;name&quot;: &quot;A String&quot;, # Goal name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800338 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
339 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
340 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
341 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
342 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
343 },
344 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
345 &quot;value&quot;: 3.14, # Goal value.
346 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
347 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
348 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
349 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
350 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
351 {
352 &quot;name&quot;: &quot;A String&quot;, # Step name.
353 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
354 &quot;number&quot;: 42, # Step number.
355 },
356 ],
357 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
358 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700359 },
John Asmuth614db982014-04-24 15:46:26 -0400360 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800361 &quot;username&quot;: &quot;A String&quot;, # Email ID of the authenticated user
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800362 &quot;totalResults&quot;: 42, # The total number of results for the query, regardless of the number of resources in the result.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800363 &quot;startIndex&quot;: 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800364 &quot;nextLink&quot;: &quot;A String&quot;, # Link to next page for this goal collection.
365 &quot;itemsPerPage&quot;: 42, # The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
John Asmuth614db982014-04-24 15:46:26 -0400366 }</pre>
367</div>
368
369<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700370 <code class="details" id="patch">patch(accountId, webPropertyId, profileId, goalId, body=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700371 <pre>Updates an existing goal. This method supports patch semantics.
John Asmuth614db982014-04-24 15:46:26 -0400372
373Args:
374 accountId: string, Account ID to update the goal. (required)
375 webPropertyId: string, Web property ID to update the goal. (required)
376 profileId: string, View (Profile) ID to update the goal. (required)
377 goalId: string, Index of the goal to be updated. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700378 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400379 The object takes the form of:
380
381{ # JSON template for Analytics goal resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800382 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800383 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
384 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800385 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
386 &quot;eventConditions&quot;: [ # List of event conditions.
387 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800388 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800389 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
390 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800391 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
392 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800393 },
394 ],
395 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
396 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800397 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800398 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800399 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800400 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800401 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
402 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
403 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
404 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800405 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
406 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
407 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
408 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800409 &quot;active&quot;: True or False, # Determines whether this goal is active.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800410 &quot;name&quot;: &quot;A String&quot;, # Goal name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800411 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
412 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
413 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
414 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
415 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
416 },
417 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
418 &quot;value&quot;: 3.14, # Goal value.
419 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
420 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
421 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
422 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
423 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
424 {
425 &quot;name&quot;: &quot;A String&quot;, # Step name.
426 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
427 &quot;number&quot;: 42, # Step number.
428 },
429 ],
430 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
431 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800432 }
John Asmuth614db982014-04-24 15:46:26 -0400433
434
435Returns:
436 An object of the form:
437
438 { # JSON template for Analytics goal resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800439 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800440 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
441 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800442 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
443 &quot;eventConditions&quot;: [ # List of event conditions.
444 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800445 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800446 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
447 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800448 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
449 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800450 },
451 ],
452 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
453 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800454 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800455 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800456 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800457 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800458 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
459 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
460 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
461 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800462 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
463 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
464 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
465 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800466 &quot;active&quot;: True or False, # Determines whether this goal is active.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800467 &quot;name&quot;: &quot;A String&quot;, # Goal name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800468 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
469 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
470 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
471 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
472 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
473 },
474 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
475 &quot;value&quot;: 3.14, # Goal value.
476 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
477 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
478 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
479 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
480 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
481 {
482 &quot;name&quot;: &quot;A String&quot;, # Step name.
483 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
484 &quot;number&quot;: 42, # Step number.
485 },
486 ],
487 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
488 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800489 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400490</div>
491
492<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700493 <code class="details" id="update">update(accountId, webPropertyId, profileId, goalId, body=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700494 <pre>Updates an existing goal.
John Asmuth614db982014-04-24 15:46:26 -0400495
496Args:
497 accountId: string, Account ID to update the goal. (required)
498 webPropertyId: string, Web property ID to update the goal. (required)
499 profileId: string, View (Profile) ID to update the goal. (required)
500 goalId: string, Index of the goal to be updated. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700501 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400502 The object takes the form of:
503
504{ # JSON template for Analytics goal resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800505 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800506 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
507 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800508 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
509 &quot;eventConditions&quot;: [ # List of event conditions.
510 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800511 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800512 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
513 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800514 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
515 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800516 },
517 ],
518 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
519 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800520 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800521 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800522 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800523 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800524 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
525 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
526 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
527 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800528 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
529 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
530 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
531 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800532 &quot;active&quot;: True or False, # Determines whether this goal is active.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800533 &quot;name&quot;: &quot;A String&quot;, # Goal name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800534 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
535 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
536 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
537 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
538 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
539 },
540 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
541 &quot;value&quot;: 3.14, # Goal value.
542 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
543 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
544 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
545 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
546 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
547 {
548 &quot;name&quot;: &quot;A String&quot;, # Step name.
549 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
550 &quot;number&quot;: 42, # Step number.
551 },
552 ],
553 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
554 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800555 }
John Asmuth614db982014-04-24 15:46:26 -0400556
557
558Returns:
559 An object of the form:
560
561 { # JSON template for Analytics goal resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800562 &quot;id&quot;: &quot;A String&quot;, # Goal ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800563 &quot;created&quot;: &quot;A String&quot;, # Time this goal was created.
564 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this goal belongs.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800565 &quot;eventDetails&quot;: { # Details for the goal of the type EVENT.
566 &quot;eventConditions&quot;: [ # List of event conditions.
567 {
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800568 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800569 &quot;expression&quot;: &quot;A String&quot;, # Expression used for this match.
570 &quot;type&quot;: &quot;A String&quot;, # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800571 &quot;matchType&quot;: &quot;A String&quot;, # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
572 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800573 },
574 ],
575 &quot;useEventValue&quot;: True or False, # Determines if the event value should be used as the value for this goal.
576 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800577 &quot;visitNumPagesDetails&quot;: { # Details for the goal of the type VISIT_NUM_PAGES.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800578 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800579 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800580 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800581 &quot;updated&quot;: &quot;A String&quot;, # Time this goal was last modified.
582 &quot;profileId&quot;: &quot;A String&quot;, # View (Profile) ID to which this goal belongs.
583 &quot;type&quot;: &quot;A String&quot;, # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
584 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800585 &quot;parentLink&quot;: { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
586 &quot;type&quot;: &quot;analytics#profile&quot;, # Value is &quot;analytics#profile&quot;.
587 &quot;href&quot;: &quot;A String&quot;, # Link to the view (profile) to which this goal belongs.
588 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800589 &quot;active&quot;: True or False, # Determines whether this goal is active.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800590 &quot;name&quot;: &quot;A String&quot;, # Goal name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800591 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this goal belongs.
592 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this goal.
593 &quot;visitTimeOnSiteDetails&quot;: { # Details for the goal of the type VISIT_TIME_ON_SITE.
594 &quot;comparisonType&quot;: &quot;A String&quot;, # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
595 &quot;comparisonValue&quot;: &quot;A String&quot;, # Value used for this comparison.
596 },
597 &quot;kind&quot;: &quot;analytics#goal&quot;, # Resource type for an Analytics goal.
598 &quot;value&quot;: 3.14, # Goal value.
599 &quot;urlDestinationDetails&quot;: { # Details for the goal of the type URL_DESTINATION.
600 &quot;matchType&quot;: &quot;A String&quot;, # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
601 &quot;url&quot;: &quot;A String&quot;, # URL for this goal.
602 &quot;caseSensitive&quot;: True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
603 &quot;steps&quot;: [ # List of steps configured for this goal funnel.
604 {
605 &quot;name&quot;: &quot;A String&quot;, # Step name.
606 &quot;url&quot;: &quot;A String&quot;, # URL for this step.
607 &quot;number&quot;: 42, # Step number.
608 },
609 ],
610 &quot;firstStepRequired&quot;: True or False, # Determines if the first step in this goal is required.
611 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800612 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400613</div>
614
615</body></html>