-
Notifications
You must be signed in to change notification settings - Fork 0
/
AdobeAnalyticsGui.html
321 lines (309 loc) · 19.5 KB
/
AdobeAnalyticsGui.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Adobe Analytics</title>
<script type="text/javascript">
// Include version 1 of the base GUI library
document.write('<link rel="import" href="' + window.Alteryx.LibDir + '1/lib/alteryx/gui/includes.html">')
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<link rel="stylesheet" href="./assets/styles.css">
</head>
<body>
<!-- Logon Selection Page -->
<fieldset id="authSelect" style="display:none">
<legend>XMSG("Sign in to Adobe Analytics")</legend>
<div class="button-panel">
<button style="width:116px;" class="button" type="submit" id="userButton" onclick="resetFields();userLogin();">XMSG("User Login")</button>
<p>XMSG("Sign in using Adobe Analytics credentials. This option requires re-entering credentials every 30 days or any time a new instance of the tool is added.")</p>
<button style="width:116px;" class="button2" type="submit" id="devButton" onclick="resetFields();setPage('#developerCreds')">XMSG("Developer Login")</button>
<p>XMSG("Sign in using API credentials. This option requires obtaining a Client ID and Client Secret and does not require re-entering credentials to run a workflow.")</p>
</div>
</fieldset>
<!-- Developer credentials -->
<fieldset id="developerCreds" style="display:none">
<legend>XMSG("Sign in as Developer")</legend>
<label for="dataItemClientID">XMSG("Client ID")</label>
<alteryx-pluginwidget type="TextBox" id="client_id" dataName="client_id"></alteryx-pluginwidget>
<br/>
<label>XMSG("Client Secret")</label>
<alteryx-pluginwidget type="TextBox" password="true" id="client_secret" dataName="client_secret"></alteryx-pluginwidget>
<br/>
<div id="devConnectionErrorMessage" style="height: 0px;"></div>
<div class='footer_spacer' style="height: 100px;"></div>
<div class='footer'>
<hr>
<div style="margin-top: 8px;margin-bottom: 8px;">
<button type="submit" style="float: right" id="connect_button" onclick="devLogin();">XMSG("Connect")</button>
</div>
<br>
<br>
<a href="javascript:void(0)" onclick="resetFields();setPage('#authSelect');clearWarning(store);">XMSG("Change Login Credentials")</a>
</div>
</fieldset>
<!-- Report Suite Selector -->
<fieldset id="reportSuite" style="display:none">
<legend>XMSG("Select Report Suite")</legend>
<alteryx-pluginwidget data-props='{type:"ListBox",dataType:"StringSelector",id:"reportSuite",issearchable:"true",dataName:"reportSuite"}'>
</alteryx-pluginwidget>
<div class='footer_spacer'></div>
<div class='footer'>
<hr>
<div style="margin-top: 8px;margin-bottom: 8px;">
<button type="submit" class="nextBtn" id="reportSuiteNextBtn" onclick="setPage('#datePickers')">XMSG("Next")</button>
</div>
<br>
<br>
<a href="javascript:void(0)" onclick="resetFields();setPage('#authSelect');clearWarning(store);">XMSG("Change Login Credentials")</a>
</div>
</fieldset>
<!-- Selectors for Date Pickers and Granularity -->
<fieldset id="datePickers" style="display:none;">
<legend>XMSG("Select Dates and Granularity to Include")</legend>
<div id="preDefDateRange">
<label for="preDefDropDown">XMSG("Preset Date Range")</label>
<alteryx-pluginwidget type="DropDown" id="preDefDropDown" dataName="preDefDropDown">
<alteryx-option uiobject='XMSG("Custom")'>custom</alteryx-option>
<alteryx-option uiobject='XMSG("Today")'>today</alteryx-option>
<alteryx-option uiobject='XMSG("Yesterday")'>yesterday</alteryx-option>
<alteryx-option uiobject='XMSG("Last 7 Days")'>last7Days</alteryx-option>
<alteryx-option uiobject='XMSG("Last 14 Days")'>last14Days</alteryx-option>
<alteryx-option uiobject='XMSG("Last 30 Days")'>last30Days</alteryx-option>
<alteryx-option uiobject='XMSG("Last 60 Days")'>last60Days</alteryx-option>
<alteryx-option uiobject='XMSG("Last Week")'>lastWeek</alteryx-option>
<alteryx-option uiobject='XMSG("Last Month")'>lastMonth</alteryx-option>
<alteryx-option uiobject='XMSG("Last Quarter")'>lastQuarter</alteryx-option>
<alteryx-option uiobject='XMSG("Last Year")'>lastYear</alteryx-option>
<alteryx-option uiobject='XMSG("Last YTD")'>lastYTD</alteryx-option>
<alteryx-option uiobject='XMSG("Week to Date")'>weekToDate</alteryx-option>
<alteryx-option uiobject='XMSG("Month to Date")'>monthToDate</alteryx-option>
<alteryx-option uiobject='XMSG("Quarter to Date")'>quarterToDate</alteryx-option>
<alteryx-option uiobject='XMSG("Year to Date")'>yearToDate</alteryx-option>
</alteryx-pluginwidget>
</div>
<br>
<div id="startDate" class="datePicker">
<label for="startDatePicker" class="datePickerLabel">XMSG("Start")</label>
<alteryx-pluginwidget type="DateTimeField" dateFormat="YYYY-MM-DD" id="startDatePicker" dataType="SimpleDate" dataName="startDatePicker"></alteryx-pluginwidget>
</div>
<div id="endDate" class="datePicker">
<label for="endDatePicker" class="datePickerLabel">XMSG("End")</label>
<alteryx-pluginwidget type="DateTimeField" dateFormat="YYYY-MM-DD" id="endDatePicker" dataType="SimpleDate" dataName="endDatePicker"></alteryx-pluginwidget>
</div>
<div id="dateWarning" style="z-index: 1; height:0px;"></div>
<p>
<!-- Granularity section -->
<div id="granularity">
<label for="granularity">XMSG("Granularity (Optional)")</label>
<alteryx-pluginwidget data-props='{type:"DropDown",id:"granularity",dataName:"granularity",clearable:"true"}'>
<alteryx-option uiobject='XMSG("Hour")'>hour</alteryx-option>
<alteryx-option uiobject='XMSG("Day")'>day</alteryx-option>
<alteryx-option uiobject='XMSG("Week")'>week</alteryx-option>
<alteryx-option uiobject='XMSG("Month")'>month</alteryx-option>
<alteryx-option uiobject='XMSG("Quarter")'>quarter</alteryx-option>
<alteryx-option uiobject='XMSG("Year")'>year</alteryx-option>
</alteryx-pluginwidget>
</div>
<div class='footer_spacer'></div>
<div class='footer'>
<hr>
<div style="margin-top: 8px;margin-bottom: 8px;">
<button type="submit" class="nextBtn" id="datePickersNextBtn" onclick="setPage('#metricSelectors');clearWarning(store);">XMSG("Next")</button>
<button class="prevBtn" id="datePickersPrevBtn" onclick="setPage('#reportSuite');clearWarning(store);">XMSG("Previous")</button>
</div>
<br>
<br>
<a href="javascript:void(0)" onclick="resetFields();setPage('#authSelect');clearWarning(store);">XMSG("Change Login Credentials")</a>
</div>
</fieldset>
<!-- Metric Selectors -->
<fieldset id="metricSelectors" style="display:none;">
<legend>XMSG("Select Metrics to Include")</legend>
<label for="metric1">XMSG("Metric 1")</label>
<alteryx-pluginwidget data-props='{type:"ComboBox",dataType:"StringSelector",id:"metric1",issearchable:"true",dataName:"metric1",clearable:"true"}'></alteryx-pluginwidget>
<label for="metric2">XMSG("Metric 2 (optional)")</label>
<alteryx-pluginwidget data-props='{type:"ComboBox",dataType:"StringSelector",id:"metric2",issearchable:"true",dataName:"metric2",clearable:"true"}'></alteryx-pluginwidget>
<label for="metric3">XMSG("Metric 3 (optional)")</label>
<alteryx-pluginwidget data-props='{type:"ComboBox",dataType:"StringSelector",id:"metric3",issearchable:"true",dataName:"metric3",clearable:"true"}'></alteryx-pluginwidget>
<label for="metric4">XMSG("Metric 4 (optional)")</label>
<alteryx-pluginwidget data-props='{type:"ComboBox",dataType:"StringSelector",id:"metric4",issearchable:"true",dataName:"metric4",clearable:"true"}'></alteryx-pluginwidget>
<label for="metric5">XMSG("Metric 5 (optional)")</label>
<alteryx-pluginwidget data-props='{type:"ComboBox",dataType:"StringSelector",id:"metric5",issearchable:"true",dataName:"metric5",clearable:"true"}'></alteryx-pluginwidget>
<label for="metric6">XMSG("Metric 6 (optional)")</label>
<alteryx-pluginwidget data-props='{type:"ComboBox",dataType:"StringSelector",id:"metric6",issearchable:"true",dataName:"metric6",clearable:"true"}'></alteryx-pluginwidget>
<button class="prevBtn" id="metricValidation" onclick="validateReport(store);">XMSG("Validate Report")</button>
<br>
<div id="invalidMetric"></div>
<div class='footer_spacer'></div>
<div class='footer'>
<hr>
<div style="margin-top: 8px;margin-bottom: 8px;">
<button type="submit" class="nextBtn" id="metricSelectorsNextBtn" onclick="setPage('#elementSelectors');clearWarning(store);">XMSG("Next")</button>
<button class="prevBtn" id="metricSelectorsPrevBtn" onclick="setPage('#datePickers');clearWarning(store);">XMSG("Previous")</button>
</div>
<br>
<br>
<a href="javascript:void(0)" onclick="resetFields();setPage('#authSelect');clearWarning(store);">XMSG("Change Login Credentials")</a>
</div>
</fieldset>
<!--Element Selector -->
<fieldset id="elementSelectors" style="display:none;">
<legend>XMSG("Select Elements to Include (Optional)")</legend>
<label for="elementPrimary">XMSG("Primary Element")</label>
<alteryx-pluginwidget data-props='{type:"ComboBox",dataType:"StringSelector",id:"elementPrimary",issearchable:"true",dataName:"elementPrimary",clearable:"true"}'></alteryx-pluginwidget>
<div id="advOptionsPrimary">
<a style="cursor: pointer" onclick="advOptionsToggle('primary');">
<div id="primaryArrow" class="arrow-right"></div>
<div id="advOptionsText">
<u>XMSG("Advanced Options")</u>
</div>
</a>
<!-- hiding this widget because arrow animation replaced toggle button-->
<div style="display:none;">
<alteryx-pluginwidget type="CheckBox" showAsToggle="true" id="advOptionsPrimary" dataName="advOptionsPrimary"></alteryx-pluginwidget>
</div>
</div>
<br>
<div id="advOptionsInputsPrimary">
<div id="primaryClassMsg" class="classifyHelp">
<!-- [TCox] : Element classification message - default is display:none -->
</div>
<label for="elementPrimaryClassification">XMSG("Classification")</label>
<alteryx-pluginwidget data-props='{type:"ComboBox",dataType:"StringSelector",id:"elementPrimaryClassification",issearchable:"true",dataName:"elementPrimaryClassification",clearable:"true"}'></alteryx-pluginwidget>
<label>XMSG("Record Limit")</label>
<alteryx-pluginwidget data-props='{type:"NumericSpinner",id:"topPrimary",default:"100",max:"50000",min:"1",dataName:"topPrimary"}'></alteryx-pluginwidget>
<label>XMSG("Starting with Record")</label>
<alteryx-pluginwidget data-props='{type:"NumericSpinner",id:"startingWithPrimary",default:"1",max:"999999999",min:"1",dataName:"startingWithPrimary"}'></alteryx-pluginwidget>
</div>
<!-- <br> -->
<hr>
<label for="elementSecondary">XMSG("Secondary Element")</label>
<alteryx-pluginwidget data-props='{type:"ComboBox",dataType:"StringSelector",id:"elementSecondary",issearchable:"true",dataName:"elementSecondary",clearable:"true"}'></alteryx-pluginwidget>
<div id="advOptionsSecondary">
<a style="cursor: pointer" onclick="advOptionsToggle('secondary');">
<div id="secondaryArrow" class="arrow-right"></div>
<div id="advOptionsText">
<u>XMSG("Advanced Options")</u>
</div>
</a>
<!-- hiding this widget because arrow animation replaced toggle button-->
<div style="display:none;">
<alteryx-pluginwidget type="CheckBox" showAsToggle="true" id="advOptionsSecondary" dataName="advOptionsSecondary"></alteryx-pluginwidget>
</div>
</div>
<br>
<div id="advOptionsInputsSecondary">
<div id="secondaryClassMsg" class="classifyHelp">
<!-- [TCox] : Element classification message - default is display:none -->
</div>
<label for="elementSecondaryClassification">XMSG("Classification")</label>
<alteryx-pluginwidget data-props='{type:"ComboBox",dataType:"StringSelector",id:"elementSecondaryClassification",issearchable:"true",dataName:"elementSecondaryClassification",clearable:"true"}'></alteryx-pluginwidget>
<label>XMSG("Record Limit")</label>
<alteryx-pluginwidget data-props='{type:"NumericSpinner",id:"topSecondary",default:"100",max:"50000",min:"1",dataName:"topSecondary"}'></alteryx-pluginwidget>
<label>XMSG("Starting with Record")</label>
<alteryx-pluginwidget data-props='{type:"NumericSpinner",id:"startingWithSecondary",default:"1",max:"999999999",min:"1",dataName:"startingWithSecondary"}'></alteryx-pluginwidget>
</div>
<br>
<label for="elementTertiary">XMSG("Tertiary Element")</label>
<alteryx-pluginwidget data-props='{type:"ComboBox",dataType:"StringSelector",id:"elementTertiary",issearchable:"true",dataName:"elementTertiary",clearable:"true"}'></alteryx-pluginwidget>
<div id="advOptionsTertiary">
<a style="cursor: pointer" onclick="advOptionsToggle('tertiary');">
<div id="tertiaryArrow" class="arrow-right"></div>
<div id="advOptionsText">
<u>XMSG("Advanced Options")</u>
</div>
</a>
<div style="display:none;">
<alteryx-pluginwidget type="CheckBox" showAsToggle="true" id="advOptionsTertiary" dataName="advOptionsTertiary"></alteryx-pluginwidget>
</div>
</div>
<br>
<div id="advOptionsInputsTertiary">
<div id="tertiaryClassMsg" class="classifyHelp">
<!-- [TCox] : Element classification message - default is display:none -->
</div>
<label for="elementTertiaryClassification">XMSG("Classification")</label>
<alteryx-pluginwidget data-props='{type:"ComboBox",dataType:"StringSelector",id:"elementTertiaryClassification",issearchable:"true",dataName:"elementTertiaryClassification",clearable:"true"}'></alteryx-pluginwidget>
<label>XMSG("Record Limit")</label>
<alteryx-pluginwidget data-props='{type:"NumericSpinner",id:"topTertiary",default:"100",max:"50000",min:"1",dataName:"topTertiary"}'></alteryx-pluginwidget>
<label>XMSG("Starting with Record")</label>
<alteryx-pluginwidget data-props='{type:"NumericSpinner",id:"startingWithTertiary",default:"1",max:"999999999",min:"1",dataName:"startingWithTertiary"}'></alteryx-pluginwidget>
</div>
<br>
<button class="prevBtn" id="elementValidation" onclick="validateReport(store);">XMSG("Validate Report")</button>
<br>
<div id="invalidElement"></div>
<div class='footer_spacer'></div>
<div class='footer'>
<hr>
<div style="margin-top: 8px;margin-bottom: 8px;">
<button type="submit" class="nextBtn" id="elementSelectorsNextBtn" onclick="setPage('#segmentSelectors');clearWarning(store);">XMSG("Next")</button>
<button class="prevBtn" id="elementSelectorsPrevBtn" onclick="setPage('#metricSelectors');clearWarning(store);">XMSG("Previous")</button>
</div>
<br>
<br>
<a href="javascript:void(0)" onclick="resetFields();setPage('#authSelect');clearWarning(store);">XMSG("Change Login Credentials")</a>
</div>
</fieldset>
<!-- Segment Selectors -->
<fieldset id="segmentSelectors" style="display:none;">
<legend>XMSG("Select Segments to Include (Optional)")</legend>
<label for="segment1">XMSG("Segment 1")</label>
<alteryx-pluginwidget data-props='{type:"ComboBox",dataType:"StringSelector",id:"segment1",issearchable:"true",dataName:"segment1",clearable:"true"}'></alteryx-pluginwidget>
<label for="segment2">XMSG("Segment 2")</label>
<alteryx-pluginwidget data-props='{type:"ComboBox",dataType:"StringSelector",id:"segment2",issearchable:"true",dataName:"segment2",clearable:"true"}'></alteryx-pluginwidget>
<button class="prevBtn" id="segmentValidation" onclick="validateReport(store);">XMSG("Validate Report")</button>
<br>
<div id="invalidSegment"></div>
<div class='footer_spacer'></div>
<div class='footer'>
<hr>
<div style="margin-top: 8px;margin-bottom: 8px;">
<button type="submit" class="nextBtn" id="segmentSelectorsNextBtn" onclick="setPage('#summary');clearWarning(store);validateReport(store);">XMSG("Done")</button>
<button class="prevBtn" id="segmentSelectorsPrevBtn" onclick="setPage('#elementSelectors');clearWarning(store);">XMSG("Previous")</button>
</div>
<br>
<br>
<a href="javascript:void(0)" onclick="resetFields();setPage('#authSelect');clearWarning(store);">XMSG("Change Login Credentials")</a>
</div>
</fieldset>
<!-- Fieldset to display configuration summary -->
<fieldset id="summary" style="display:none">
<legend>XMSG("Configuration Summary")</legend>
<div id="summaryDiv"></div>
<div id="invalidReport"></div>
<div class='footer_spacer'></div>
<div class='footer'>
<hr>
<div style="margin-top: 8px;margin-bottom: 8px;">
<button class="prevBtn" id="summaryPrevBtn" onclick="setPage('#segmentSelectors');clearWarning(store);">XMSG("Previous")</button>
</div>
<br>
<br>
<a href="javascript:void(0)" onclick="resetFields();setPage('#authSelect');clearWarning(store);">XMSG("Change Login Credentials")</a>
</div>
</fieldset>
<!-- Store values - never displayed -->
<fieldset id="store" style="display:none">
<alteryx-pluginwidget type="TextBox" id="reportDescription" dataName="reportDescription"></alteryx-pluginwidget>
<alteryx-pluginwidget type="TextBox" id="reportValidation" dataName="reportValidation"></alteryx-pluginwidget>
<alteryx-pluginwidget type="TextBox" id="access_token" dataName="access_token"></alteryx-pluginwidget>
<alteryx-pluginwidget type="TextBox" id="page" dataName="page"></alteryx-pluginwidget>
<alteryx-pluginwidget type="TextBox" id="errorStatus" dataName="errorStatus"></alteryx-pluginwidget>
<alteryx-pluginwidget type="TextBox" id="classifiedPrimary" dataName="classifiedPrimary"></alteryx-pluginwidget>
<alteryx-pluginwidget type="TextBox" id="classifiedSecondary" dataName="classifiedSecondary"></alteryx-pluginwidget>
<alteryx-pluginwidget type="TextBox" id="classifiedTertiary" dataName="classifiedTertiary"></alteryx-pluginwidget>
<alteryx-pluginwidget type="TextBox" id="allClassifications" dataName="allClassifications"></alteryx-pluginwidget>
</fieldset>
<!-- Error and Loading Messaging -->
<div id="userConnectionErrorMessage"></div>
<div id="app"></div>
<div id="loading" class="loading" style="display:none;"></div>
<div id="loading-inner" class="loading-inner" style="display:none;">
<img src=".\assets\loading_ring.svg">
</div>
</body>
<script type="text/javascript" src="bundle.js">
</script>
</html>