@ogcio/analytics-sdk 0.0.1-beta.4 → 0.1.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/base-client.d.ts +11 -15
- package/dist/base/base-client.d.ts.map +1 -1
- package/dist/base/base-client.js +35 -34
- package/dist/base/base-client.js.map +1 -1
- package/dist/base/client-utils.d.ts +37 -0
- package/dist/base/client-utils.d.ts.map +1 -0
- package/dist/base/client-utils.js +80 -0
- package/dist/base/client-utils.js.map +1 -0
- package/dist/browser-types.d.ts +16 -8
- package/dist/index.d.ts +685 -379
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +330 -138
- package/dist/index.js.map +1 -1
- package/dist/matomo/helpers.d.ts +14 -11
- package/dist/matomo/helpers.d.ts.map +1 -1
- package/dist/matomo/helpers.js +102 -34
- package/dist/matomo/helpers.js.map +1 -1
- package/dist/schema.d.ts +594 -224
- package/dist/schema.d.ts.map +1 -1
- package/dist/support-files/auth/index.d.ts.map +1 -1
- package/dist/support-files/auth/index.js +3 -0
- package/dist/support-files/auth/index.js.map +1 -1
- package/dist/support-files/building-blocks-sdk.d.ts +2 -3
- package/dist/support-files/building-blocks-sdk.d.ts.map +1 -1
- package/dist/support-files/building-blocks-sdk.js +2 -0
- package/dist/support-files/building-blocks-sdk.js.map +1 -1
- package/dist/tests/testUtils/analytics.mock.d.ts +12 -0
- package/dist/tests/testUtils/analytics.mock.d.ts.map +1 -0
- package/dist/tests/testUtils/analytics.mock.js +21 -0
- package/dist/tests/testUtils/analytics.mock.js.map +1 -0
- package/dist/tests/testUtils/api.mock.handlers.d.ts +7 -0
- package/dist/tests/testUtils/api.mock.handlers.d.ts.map +1 -0
- package/dist/tests/testUtils/api.mock.handlers.js +77 -0
- package/dist/tests/testUtils/api.mock.handlers.js.map +1 -0
- package/dist/tests/testUtils/setup.mock.d.ts +3 -0
- package/dist/tests/testUtils/setup.mock.d.ts.map +1 -0
- package/dist/tests/testUtils/setup.mock.js +43 -0
- package/dist/tests/testUtils/setup.mock.js.map +1 -0
- package/dist/tests/testUtils/wait-request.d.ts +2 -0
- package/dist/tests/testUtils/wait-request.d.ts.map +1 -0
- package/dist/tests/testUtils/wait-request.js +2 -0
- package/dist/tests/testUtils/wait-request.js.map +1 -0
- package/package.json +21 -30
package/dist/schema.d.ts
CHANGED
|
@@ -28,47 +28,78 @@ export interface paths {
|
|
|
28
28
|
content: {
|
|
29
29
|
"application/json": {
|
|
30
30
|
data: {
|
|
31
|
+
siteIds: number[] & number[];
|
|
31
32
|
/** @description The tracker url of the website */
|
|
32
|
-
|
|
33
|
+
trackerUrl: string;
|
|
33
34
|
/** @description Set cookieless if you want to track without cookies (GDPR compliance) */
|
|
34
35
|
cookieless: boolean;
|
|
35
36
|
/** @description Bypass adblockers using custom tracker url */
|
|
36
|
-
|
|
37
|
+
bypassAdblockers: boolean;
|
|
37
38
|
/** @description Whether to track page views automatically when the JavaScript tracking code loads */
|
|
38
|
-
|
|
39
|
+
trackPageView: boolean;
|
|
39
40
|
/** @description Whether to enable automatic tracking of outlinks and downloads */
|
|
40
|
-
|
|
41
|
+
linkTracking: boolean;
|
|
41
42
|
/** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
|
|
42
|
-
|
|
43
|
+
heartBeatTimer: number;
|
|
43
44
|
/** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
|
|
44
|
-
|
|
45
|
+
browserFeatureDetection: boolean;
|
|
45
46
|
/** @description Whether to track bots and spiders. Default is false. */
|
|
46
|
-
|
|
47
|
-
custom_dimensions: {
|
|
48
|
-
[key: string]: string;
|
|
49
|
-
} & {
|
|
50
|
-
[key: string]: string;
|
|
51
|
-
};
|
|
47
|
+
trackBots: boolean;
|
|
52
48
|
/**
|
|
53
49
|
* Format: uuid
|
|
54
|
-
* @description
|
|
50
|
+
* @description Optional UUID for the website config. If not provided, a new UUID7 will be generated.
|
|
55
51
|
*/
|
|
56
52
|
id: string;
|
|
57
53
|
/** @description The name of the website config */
|
|
58
54
|
name: string;
|
|
59
55
|
/** @description The domain of the website config */
|
|
60
56
|
domain: string;
|
|
61
|
-
site_ids: number[];
|
|
62
57
|
/** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
|
|
63
|
-
|
|
58
|
+
organizationId: string;
|
|
64
59
|
/** @description The creation date of the website config */
|
|
65
|
-
|
|
60
|
+
createdAt: string;
|
|
66
61
|
/** @description The update date of the website config */
|
|
67
|
-
|
|
62
|
+
updatedAt: string;
|
|
63
|
+
/**
|
|
64
|
+
* @description Custom dimensions schema for website config
|
|
65
|
+
* @example {
|
|
66
|
+
* "dimension1": "value1",
|
|
67
|
+
* "dimension2": "value2"
|
|
68
|
+
* }
|
|
69
|
+
*/
|
|
70
|
+
customDimensions: {
|
|
71
|
+
[key: string]: string;
|
|
72
|
+
};
|
|
68
73
|
}[];
|
|
69
74
|
};
|
|
70
75
|
};
|
|
71
76
|
};
|
|
77
|
+
/** @description Default Response */
|
|
78
|
+
"4XX": {
|
|
79
|
+
headers: {
|
|
80
|
+
[name: string]: unknown;
|
|
81
|
+
};
|
|
82
|
+
content: {
|
|
83
|
+
"application/json": {
|
|
84
|
+
code: string;
|
|
85
|
+
detail: string;
|
|
86
|
+
name: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
/** @description Default Response */
|
|
91
|
+
"5XX": {
|
|
92
|
+
headers: {
|
|
93
|
+
[name: string]: unknown;
|
|
94
|
+
};
|
|
95
|
+
content: {
|
|
96
|
+
"application/json": {
|
|
97
|
+
code: string;
|
|
98
|
+
detail: string;
|
|
99
|
+
name: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
72
103
|
};
|
|
73
104
|
};
|
|
74
105
|
put?: never;
|
|
@@ -85,37 +116,33 @@ export interface paths {
|
|
|
85
116
|
requestBody: {
|
|
86
117
|
content: {
|
|
87
118
|
"application/json": {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/** @description Set cookieless if you want to track without cookies (GDPR compliance) */
|
|
119
|
+
siteIds: number[] & (number[] & number[]);
|
|
120
|
+
trackerUrl: string;
|
|
91
121
|
cookieless: boolean;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
/** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
|
|
99
|
-
heart_beat_timer: number;
|
|
100
|
-
/** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
|
|
101
|
-
browser_feature_detection: boolean;
|
|
102
|
-
/** @description Whether to track bots and spiders. Default is false. */
|
|
103
|
-
track_bots: boolean;
|
|
104
|
-
custom_dimensions: {
|
|
105
|
-
[key: string]: string;
|
|
106
|
-
} & {
|
|
107
|
-
[key: string]: string;
|
|
108
|
-
};
|
|
122
|
+
bypassAdblockers: boolean;
|
|
123
|
+
trackPageView: boolean;
|
|
124
|
+
linkTracking: boolean;
|
|
125
|
+
heartBeatTimer: number;
|
|
126
|
+
browserFeatureDetection: boolean;
|
|
127
|
+
trackBots: boolean;
|
|
109
128
|
/** @description The name of the website config */
|
|
110
129
|
name: string;
|
|
111
130
|
/** @description The domain of the website config */
|
|
112
131
|
domain: string;
|
|
113
|
-
site_ids: number[];
|
|
114
132
|
/**
|
|
115
|
-
*
|
|
116
|
-
* @
|
|
133
|
+
* @description Custom dimensions schema for website config
|
|
134
|
+
* @example {
|
|
135
|
+
* "dimension1": "value1",
|
|
136
|
+
* "dimension2": "value2"
|
|
137
|
+
* }
|
|
117
138
|
*/
|
|
139
|
+
customDimensions: {
|
|
140
|
+
[key: string]: string;
|
|
141
|
+
};
|
|
142
|
+
/** Format: uuid */
|
|
118
143
|
id?: string;
|
|
144
|
+
/** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
|
|
145
|
+
organizationId?: string;
|
|
119
146
|
};
|
|
120
147
|
};
|
|
121
148
|
};
|
|
@@ -128,47 +155,78 @@ export interface paths {
|
|
|
128
155
|
content: {
|
|
129
156
|
"application/json": {
|
|
130
157
|
data: {
|
|
158
|
+
siteIds: number[] & number[];
|
|
131
159
|
/** @description The tracker url of the website */
|
|
132
|
-
|
|
160
|
+
trackerUrl: string;
|
|
133
161
|
/** @description Set cookieless if you want to track without cookies (GDPR compliance) */
|
|
134
162
|
cookieless: boolean;
|
|
135
163
|
/** @description Bypass adblockers using custom tracker url */
|
|
136
|
-
|
|
164
|
+
bypassAdblockers: boolean;
|
|
137
165
|
/** @description Whether to track page views automatically when the JavaScript tracking code loads */
|
|
138
|
-
|
|
166
|
+
trackPageView: boolean;
|
|
139
167
|
/** @description Whether to enable automatic tracking of outlinks and downloads */
|
|
140
|
-
|
|
168
|
+
linkTracking: boolean;
|
|
141
169
|
/** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
|
|
142
|
-
|
|
170
|
+
heartBeatTimer: number;
|
|
143
171
|
/** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
|
|
144
|
-
|
|
172
|
+
browserFeatureDetection: boolean;
|
|
145
173
|
/** @description Whether to track bots and spiders. Default is false. */
|
|
146
|
-
|
|
147
|
-
custom_dimensions: {
|
|
148
|
-
[key: string]: string;
|
|
149
|
-
} & {
|
|
150
|
-
[key: string]: string;
|
|
151
|
-
};
|
|
174
|
+
trackBots: boolean;
|
|
152
175
|
/**
|
|
153
176
|
* Format: uuid
|
|
154
|
-
* @description
|
|
177
|
+
* @description Optional UUID for the website config. If not provided, a new UUID7 will be generated.
|
|
155
178
|
*/
|
|
156
179
|
id: string;
|
|
157
180
|
/** @description The name of the website config */
|
|
158
181
|
name: string;
|
|
159
182
|
/** @description The domain of the website config */
|
|
160
183
|
domain: string;
|
|
161
|
-
site_ids: number[];
|
|
162
184
|
/** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
|
|
163
|
-
|
|
185
|
+
organizationId: string;
|
|
164
186
|
/** @description The creation date of the website config */
|
|
165
|
-
|
|
187
|
+
createdAt: string;
|
|
166
188
|
/** @description The update date of the website config */
|
|
167
|
-
|
|
189
|
+
updatedAt: string;
|
|
190
|
+
/**
|
|
191
|
+
* @description Custom dimensions schema for website config
|
|
192
|
+
* @example {
|
|
193
|
+
* "dimension1": "value1",
|
|
194
|
+
* "dimension2": "value2"
|
|
195
|
+
* }
|
|
196
|
+
*/
|
|
197
|
+
customDimensions: {
|
|
198
|
+
[key: string]: string;
|
|
199
|
+
};
|
|
168
200
|
};
|
|
169
201
|
};
|
|
170
202
|
};
|
|
171
203
|
};
|
|
204
|
+
/** @description Default Response */
|
|
205
|
+
"4XX": {
|
|
206
|
+
headers: {
|
|
207
|
+
[name: string]: unknown;
|
|
208
|
+
};
|
|
209
|
+
content: {
|
|
210
|
+
"application/json": {
|
|
211
|
+
code: string;
|
|
212
|
+
detail: string;
|
|
213
|
+
name: string;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
/** @description Default Response */
|
|
218
|
+
"5XX": {
|
|
219
|
+
headers: {
|
|
220
|
+
[name: string]: unknown;
|
|
221
|
+
};
|
|
222
|
+
content: {
|
|
223
|
+
"application/json": {
|
|
224
|
+
code: string;
|
|
225
|
+
detail: string;
|
|
226
|
+
name: string;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
172
230
|
};
|
|
173
231
|
};
|
|
174
232
|
delete?: never;
|
|
@@ -189,7 +247,7 @@ export interface paths {
|
|
|
189
247
|
parameters: {
|
|
190
248
|
query?: {
|
|
191
249
|
/** @description Organization ID is only required when the user is not logged in, otherwise the organization ID is retrieved from the user data. */
|
|
192
|
-
|
|
250
|
+
orgId?: string;
|
|
193
251
|
};
|
|
194
252
|
header?: never;
|
|
195
253
|
path: {
|
|
@@ -208,47 +266,78 @@ export interface paths {
|
|
|
208
266
|
content: {
|
|
209
267
|
"application/json": {
|
|
210
268
|
data: {
|
|
269
|
+
siteIds: number[] & number[];
|
|
211
270
|
/** @description The tracker url of the website */
|
|
212
|
-
|
|
271
|
+
trackerUrl: string;
|
|
213
272
|
/** @description Set cookieless if you want to track without cookies (GDPR compliance) */
|
|
214
273
|
cookieless: boolean;
|
|
215
274
|
/** @description Bypass adblockers using custom tracker url */
|
|
216
|
-
|
|
275
|
+
bypassAdblockers: boolean;
|
|
217
276
|
/** @description Whether to track page views automatically when the JavaScript tracking code loads */
|
|
218
|
-
|
|
277
|
+
trackPageView: boolean;
|
|
219
278
|
/** @description Whether to enable automatic tracking of outlinks and downloads */
|
|
220
|
-
|
|
279
|
+
linkTracking: boolean;
|
|
221
280
|
/** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
|
|
222
|
-
|
|
281
|
+
heartBeatTimer: number;
|
|
223
282
|
/** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
|
|
224
|
-
|
|
283
|
+
browserFeatureDetection: boolean;
|
|
225
284
|
/** @description Whether to track bots and spiders. Default is false. */
|
|
226
|
-
|
|
227
|
-
custom_dimensions: {
|
|
228
|
-
[key: string]: string;
|
|
229
|
-
} & {
|
|
230
|
-
[key: string]: string;
|
|
231
|
-
};
|
|
285
|
+
trackBots: boolean;
|
|
232
286
|
/**
|
|
233
287
|
* Format: uuid
|
|
234
|
-
* @description
|
|
288
|
+
* @description Optional UUID for the website config. If not provided, a new UUID7 will be generated.
|
|
235
289
|
*/
|
|
236
290
|
id: string;
|
|
237
291
|
/** @description The name of the website config */
|
|
238
292
|
name: string;
|
|
239
293
|
/** @description The domain of the website config */
|
|
240
294
|
domain: string;
|
|
241
|
-
site_ids: number[];
|
|
242
295
|
/** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
|
|
243
|
-
|
|
296
|
+
organizationId: string;
|
|
244
297
|
/** @description The creation date of the website config */
|
|
245
|
-
|
|
298
|
+
createdAt: string;
|
|
246
299
|
/** @description The update date of the website config */
|
|
247
|
-
|
|
300
|
+
updatedAt: string;
|
|
301
|
+
/**
|
|
302
|
+
* @description Custom dimensions schema for website config
|
|
303
|
+
* @example {
|
|
304
|
+
* "dimension1": "value1",
|
|
305
|
+
* "dimension2": "value2"
|
|
306
|
+
* }
|
|
307
|
+
*/
|
|
308
|
+
customDimensions: {
|
|
309
|
+
[key: string]: string;
|
|
310
|
+
};
|
|
248
311
|
};
|
|
249
312
|
};
|
|
250
313
|
};
|
|
251
314
|
};
|
|
315
|
+
/** @description Default Response */
|
|
316
|
+
"4XX": {
|
|
317
|
+
headers: {
|
|
318
|
+
[name: string]: unknown;
|
|
319
|
+
};
|
|
320
|
+
content: {
|
|
321
|
+
"application/json": {
|
|
322
|
+
code: string;
|
|
323
|
+
detail: string;
|
|
324
|
+
name: string;
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
/** @description Default Response */
|
|
329
|
+
"5XX": {
|
|
330
|
+
headers: {
|
|
331
|
+
[name: string]: unknown;
|
|
332
|
+
};
|
|
333
|
+
content: {
|
|
334
|
+
"application/json": {
|
|
335
|
+
code: string;
|
|
336
|
+
detail: string;
|
|
337
|
+
name: string;
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
};
|
|
252
341
|
};
|
|
253
342
|
};
|
|
254
343
|
put?: never;
|
|
@@ -272,32 +361,31 @@ export interface paths {
|
|
|
272
361
|
requestBody?: {
|
|
273
362
|
content: {
|
|
274
363
|
"application/json": {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
/** @description Set cookieless if you want to track without cookies (GDPR compliance) */
|
|
364
|
+
siteIds?: number[] & (number[] & number[]);
|
|
365
|
+
trackerUrl?: string;
|
|
278
366
|
cookieless?: boolean;
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
/** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
|
|
286
|
-
heart_beat_timer?: number;
|
|
287
|
-
/** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
|
|
288
|
-
browser_feature_detection?: boolean;
|
|
289
|
-
/** @description Whether to track bots and spiders. Default is false. */
|
|
290
|
-
track_bots?: boolean;
|
|
291
|
-
custom_dimensions?: {
|
|
292
|
-
[key: string]: string;
|
|
293
|
-
} & {
|
|
294
|
-
[key: string]: string;
|
|
295
|
-
};
|
|
367
|
+
bypassAdblockers?: boolean;
|
|
368
|
+
trackPageView?: boolean;
|
|
369
|
+
linkTracking?: boolean;
|
|
370
|
+
heartBeatTimer?: number;
|
|
371
|
+
browserFeatureDetection?: boolean;
|
|
372
|
+
trackBots?: boolean;
|
|
296
373
|
/** @description The name of the website config */
|
|
297
374
|
name?: string;
|
|
298
375
|
/** @description The domain of the website config */
|
|
299
376
|
domain?: string;
|
|
300
|
-
|
|
377
|
+
/**
|
|
378
|
+
* @description Custom dimensions schema for website config
|
|
379
|
+
* @example {
|
|
380
|
+
* "dimension1": "value1",
|
|
381
|
+
* "dimension2": "value2"
|
|
382
|
+
* }
|
|
383
|
+
*/
|
|
384
|
+
customDimensions?: {
|
|
385
|
+
[key: string]: string;
|
|
386
|
+
};
|
|
387
|
+
/** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
|
|
388
|
+
organizationId?: string;
|
|
301
389
|
};
|
|
302
390
|
};
|
|
303
391
|
};
|
|
@@ -310,52 +398,78 @@ export interface paths {
|
|
|
310
398
|
content: {
|
|
311
399
|
"application/json": {
|
|
312
400
|
data: {
|
|
401
|
+
siteIds: number[] & number[];
|
|
313
402
|
/** @description The tracker url of the website */
|
|
314
|
-
|
|
403
|
+
trackerUrl: string;
|
|
315
404
|
/** @description Set cookieless if you want to track without cookies (GDPR compliance) */
|
|
316
405
|
cookieless: boolean;
|
|
317
406
|
/** @description Bypass adblockers using custom tracker url */
|
|
318
|
-
|
|
407
|
+
bypassAdblockers: boolean;
|
|
319
408
|
/** @description Whether to track page views automatically when the JavaScript tracking code loads */
|
|
320
|
-
|
|
409
|
+
trackPageView: boolean;
|
|
321
410
|
/** @description Whether to enable automatic tracking of outlinks and downloads */
|
|
322
|
-
|
|
411
|
+
linkTracking: boolean;
|
|
323
412
|
/** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
|
|
324
|
-
|
|
413
|
+
heartBeatTimer: number;
|
|
325
414
|
/** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
|
|
326
|
-
|
|
415
|
+
browserFeatureDetection: boolean;
|
|
327
416
|
/** @description Whether to track bots and spiders. Default is false. */
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
|
|
331
|
-
* @example {
|
|
332
|
-
* "dimension1": "value1",
|
|
333
|
-
* "dimension2": "value2"
|
|
334
|
-
* }
|
|
335
|
-
*/
|
|
336
|
-
custom_dimensions?: {
|
|
337
|
-
[key: string]: string;
|
|
338
|
-
};
|
|
417
|
+
trackBots: boolean;
|
|
339
418
|
/**
|
|
340
419
|
* Format: uuid
|
|
341
|
-
* @description
|
|
420
|
+
* @description Optional UUID for the website config. If not provided, a new UUID7 will be generated.
|
|
342
421
|
*/
|
|
343
422
|
id: string;
|
|
344
423
|
/** @description The name of the website config */
|
|
345
424
|
name: string;
|
|
346
425
|
/** @description The domain of the website config */
|
|
347
426
|
domain: string;
|
|
348
|
-
site_ids: number[];
|
|
349
427
|
/** @description The organization ID of the website config, used for multi-tenant support adopting the org-id of logto */
|
|
350
|
-
|
|
428
|
+
organizationId: string;
|
|
351
429
|
/** @description The creation date of the website config */
|
|
352
|
-
|
|
430
|
+
createdAt: string;
|
|
353
431
|
/** @description The update date of the website config */
|
|
354
|
-
|
|
432
|
+
updatedAt: string;
|
|
433
|
+
/**
|
|
434
|
+
* @description Custom dimensions schema for website config
|
|
435
|
+
* @example {
|
|
436
|
+
* "dimension1": "value1",
|
|
437
|
+
* "dimension2": "value2"
|
|
438
|
+
* }
|
|
439
|
+
*/
|
|
440
|
+
customDimensions: {
|
|
441
|
+
[key: string]: string;
|
|
442
|
+
};
|
|
355
443
|
};
|
|
356
444
|
};
|
|
357
445
|
};
|
|
358
446
|
};
|
|
447
|
+
/** @description Default Response */
|
|
448
|
+
"4XX": {
|
|
449
|
+
headers: {
|
|
450
|
+
[name: string]: unknown;
|
|
451
|
+
};
|
|
452
|
+
content: {
|
|
453
|
+
"application/json": {
|
|
454
|
+
code: string;
|
|
455
|
+
detail: string;
|
|
456
|
+
name: string;
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
/** @description Default Response */
|
|
461
|
+
"5XX": {
|
|
462
|
+
headers: {
|
|
463
|
+
[name: string]: unknown;
|
|
464
|
+
};
|
|
465
|
+
content: {
|
|
466
|
+
"application/json": {
|
|
467
|
+
code: string;
|
|
468
|
+
detail: string;
|
|
469
|
+
name: string;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
};
|
|
359
473
|
};
|
|
360
474
|
};
|
|
361
475
|
trace?: never;
|
|
@@ -367,30 +481,12 @@ export interface paths {
|
|
|
367
481
|
path?: never;
|
|
368
482
|
cookie?: never;
|
|
369
483
|
};
|
|
484
|
+
get?: never;
|
|
485
|
+
put?: never;
|
|
370
486
|
/** @description Get tracking code for a website */
|
|
371
|
-
|
|
487
|
+
post: {
|
|
372
488
|
parameters: {
|
|
373
|
-
query?:
|
|
374
|
-
site_ids?: number[];
|
|
375
|
-
/** @description The tracker url of the website */
|
|
376
|
-
tracker_url?: string;
|
|
377
|
-
/** @description Set cookieless if you want to track without cookies (GDPR compliance) */
|
|
378
|
-
cookieless?: boolean;
|
|
379
|
-
/** @description Bypass adblockers using custom tracker url */
|
|
380
|
-
bypass_adblockers?: boolean;
|
|
381
|
-
/** @description Whether to track page views automatically when the JavaScript tracking code loads */
|
|
382
|
-
track_page_view?: boolean;
|
|
383
|
-
/** @description Whether to enable automatic tracking of outlinks and downloads */
|
|
384
|
-
link_tracking?: boolean;
|
|
385
|
-
/** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
|
|
386
|
-
heart_beat_timer?: number;
|
|
387
|
-
/** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
|
|
388
|
-
browser_feature_detection?: boolean;
|
|
389
|
-
/** @description Whether to track bots and spiders. Default is false. */
|
|
390
|
-
track_bots?: boolean;
|
|
391
|
-
/** @description The custom user ID to track */
|
|
392
|
-
user_id?: string;
|
|
393
|
-
};
|
|
489
|
+
query?: never;
|
|
394
490
|
header?: never;
|
|
395
491
|
path: {
|
|
396
492
|
/** @description Website UUID */
|
|
@@ -398,7 +494,41 @@ export interface paths {
|
|
|
398
494
|
};
|
|
399
495
|
cookie?: never;
|
|
400
496
|
};
|
|
401
|
-
requestBody?:
|
|
497
|
+
requestBody?: {
|
|
498
|
+
content: {
|
|
499
|
+
"application/json": {
|
|
500
|
+
siteIds?: number[];
|
|
501
|
+
/** @description The tracker url of the website */
|
|
502
|
+
trackerUrl?: string;
|
|
503
|
+
/** @description Set cookieless if you want to track without cookies (GDPR compliance) */
|
|
504
|
+
cookieless?: boolean;
|
|
505
|
+
/** @description Bypass adblockers using custom tracker url */
|
|
506
|
+
bypassAdblockers?: boolean;
|
|
507
|
+
/** @description Whether to track page views automatically when the JavaScript tracking code loads */
|
|
508
|
+
trackPageView?: boolean;
|
|
509
|
+
/** @description Whether to enable automatic tracking of outlinks and downloads */
|
|
510
|
+
linkTracking?: boolean;
|
|
511
|
+
/** @description Set the heart beat timer (in seconds) to track how much time users spend on pages */
|
|
512
|
+
heartBeatTimer?: number;
|
|
513
|
+
/** @description Whether to detect browser features like cookies, Java, Flash for visitor segmentation */
|
|
514
|
+
browserFeatureDetection?: boolean;
|
|
515
|
+
/** @description Whether to track bots and spiders. Default is false. */
|
|
516
|
+
trackBots?: boolean;
|
|
517
|
+
/**
|
|
518
|
+
* @description Custom dimensions schema for website config
|
|
519
|
+
* @example {
|
|
520
|
+
* "dimension1": "value1",
|
|
521
|
+
* "dimension2": "value2"
|
|
522
|
+
* }
|
|
523
|
+
*/
|
|
524
|
+
customDimensions?: {
|
|
525
|
+
[key: string]: string;
|
|
526
|
+
};
|
|
527
|
+
/** @description The custom user ID to track */
|
|
528
|
+
userId?: string;
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
};
|
|
402
532
|
responses: {
|
|
403
533
|
/** @description Default Response */
|
|
404
534
|
200: {
|
|
@@ -408,15 +538,40 @@ export interface paths {
|
|
|
408
538
|
content: {
|
|
409
539
|
"application/json": {
|
|
410
540
|
data: {
|
|
541
|
+
/** @description The javascript tracking code, available when generating tracking code with params ?code=true */
|
|
411
542
|
script: string;
|
|
412
543
|
};
|
|
413
544
|
};
|
|
414
545
|
};
|
|
415
546
|
};
|
|
547
|
+
/** @description Default Response */
|
|
548
|
+
"4XX": {
|
|
549
|
+
headers: {
|
|
550
|
+
[name: string]: unknown;
|
|
551
|
+
};
|
|
552
|
+
content: {
|
|
553
|
+
"application/json": {
|
|
554
|
+
code: string;
|
|
555
|
+
detail: string;
|
|
556
|
+
name: string;
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
/** @description Default Response */
|
|
561
|
+
"5XX": {
|
|
562
|
+
headers: {
|
|
563
|
+
[name: string]: unknown;
|
|
564
|
+
};
|
|
565
|
+
content: {
|
|
566
|
+
"application/json": {
|
|
567
|
+
code: string;
|
|
568
|
+
detail: string;
|
|
569
|
+
name: string;
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
};
|
|
416
573
|
};
|
|
417
574
|
};
|
|
418
|
-
put?: never;
|
|
419
|
-
post?: never;
|
|
420
575
|
delete?: never;
|
|
421
576
|
options?: never;
|
|
422
577
|
head?: never;
|
|
@@ -471,7 +626,7 @@ export interface paths {
|
|
|
471
626
|
*/
|
|
472
627
|
value?: number;
|
|
473
628
|
};
|
|
474
|
-
|
|
629
|
+
metadataOverride?: {
|
|
475
630
|
/** @description The URL of the page */
|
|
476
631
|
url?: string;
|
|
477
632
|
/** @description The user agent of the user */
|
|
@@ -486,19 +641,13 @@ export interface paths {
|
|
|
486
641
|
contextOverride?: {
|
|
487
642
|
/** @description The user ID of the user, User ID is any non-empty unique string identifying the user (such as an email address or a username). */
|
|
488
643
|
userId?: string;
|
|
489
|
-
/**
|
|
490
|
-
* @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
|
|
491
|
-
* @example {
|
|
492
|
-
* "dimension1": "value1",
|
|
493
|
-
* "dimension2": "value2"
|
|
494
|
-
* }
|
|
495
|
-
*/
|
|
644
|
+
/** @description Define the custom dimensions for tracking events. Set a dimension to null to remove it for this event. */
|
|
496
645
|
customDimensions?: {
|
|
497
|
-
[key: string]: string;
|
|
646
|
+
[key: string]: string | null;
|
|
498
647
|
};
|
|
499
648
|
};
|
|
500
649
|
/** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
|
|
501
|
-
|
|
650
|
+
siteIds?: number[];
|
|
502
651
|
};
|
|
503
652
|
};
|
|
504
653
|
};
|
|
@@ -510,7 +659,49 @@ export interface paths {
|
|
|
510
659
|
};
|
|
511
660
|
content: {
|
|
512
661
|
"application/json": {
|
|
513
|
-
data:
|
|
662
|
+
data: {
|
|
663
|
+
/** @description The javascript tracking code, available when generating tracking code with params ?code=true */
|
|
664
|
+
script: string;
|
|
665
|
+
};
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
/** @description Default Response */
|
|
670
|
+
201: {
|
|
671
|
+
headers: {
|
|
672
|
+
[name: string]: unknown;
|
|
673
|
+
};
|
|
674
|
+
content: {
|
|
675
|
+
"application/json": {
|
|
676
|
+
data: {
|
|
677
|
+
[key: string]: unknown;
|
|
678
|
+
};
|
|
679
|
+
};
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
/** @description Default Response */
|
|
683
|
+
"4XX": {
|
|
684
|
+
headers: {
|
|
685
|
+
[name: string]: unknown;
|
|
686
|
+
};
|
|
687
|
+
content: {
|
|
688
|
+
"application/json": {
|
|
689
|
+
code: string;
|
|
690
|
+
detail: string;
|
|
691
|
+
name: string;
|
|
692
|
+
};
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
/** @description Default Response */
|
|
696
|
+
"5XX": {
|
|
697
|
+
headers: {
|
|
698
|
+
[name: string]: unknown;
|
|
699
|
+
};
|
|
700
|
+
content: {
|
|
701
|
+
"application/json": {
|
|
702
|
+
code: string;
|
|
703
|
+
detail: string;
|
|
704
|
+
name: string;
|
|
514
705
|
};
|
|
515
706
|
};
|
|
516
707
|
};
|
|
@@ -549,10 +740,10 @@ export interface paths {
|
|
|
549
740
|
content: {
|
|
550
741
|
"application/json": {
|
|
551
742
|
event: {
|
|
552
|
-
/** @description
|
|
553
|
-
|
|
743
|
+
/** @description The title of the page */
|
|
744
|
+
title: string;
|
|
554
745
|
};
|
|
555
|
-
|
|
746
|
+
metadataOverride?: {
|
|
556
747
|
/** @description The URL of the page */
|
|
557
748
|
url?: string;
|
|
558
749
|
/** @description The user agent of the user */
|
|
@@ -567,19 +758,13 @@ export interface paths {
|
|
|
567
758
|
contextOverride?: {
|
|
568
759
|
/** @description The user ID of the user, User ID is any non-empty unique string identifying the user (such as an email address or a username). */
|
|
569
760
|
userId?: string;
|
|
570
|
-
/**
|
|
571
|
-
* @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
|
|
572
|
-
* @example {
|
|
573
|
-
* "dimension1": "value1",
|
|
574
|
-
* "dimension2": "value2"
|
|
575
|
-
* }
|
|
576
|
-
*/
|
|
761
|
+
/** @description Define the custom dimensions for tracking events. Set a dimension to null to remove it for this event. */
|
|
577
762
|
customDimensions?: {
|
|
578
|
-
[key: string]: string;
|
|
763
|
+
[key: string]: string | null;
|
|
579
764
|
};
|
|
580
765
|
};
|
|
581
766
|
/** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
|
|
582
|
-
|
|
767
|
+
siteIds?: number[];
|
|
583
768
|
};
|
|
584
769
|
};
|
|
585
770
|
};
|
|
@@ -591,7 +776,49 @@ export interface paths {
|
|
|
591
776
|
};
|
|
592
777
|
content: {
|
|
593
778
|
"application/json": {
|
|
594
|
-
data:
|
|
779
|
+
data: {
|
|
780
|
+
/** @description The javascript tracking code, available when generating tracking code with params ?code=true */
|
|
781
|
+
script: string;
|
|
782
|
+
};
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
/** @description Default Response */
|
|
787
|
+
201: {
|
|
788
|
+
headers: {
|
|
789
|
+
[name: string]: unknown;
|
|
790
|
+
};
|
|
791
|
+
content: {
|
|
792
|
+
"application/json": {
|
|
793
|
+
data: {
|
|
794
|
+
[key: string]: unknown;
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
/** @description Default Response */
|
|
800
|
+
"4XX": {
|
|
801
|
+
headers: {
|
|
802
|
+
[name: string]: unknown;
|
|
803
|
+
};
|
|
804
|
+
content: {
|
|
805
|
+
"application/json": {
|
|
806
|
+
code: string;
|
|
807
|
+
detail: string;
|
|
808
|
+
name: string;
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
/** @description Default Response */
|
|
813
|
+
"5XX": {
|
|
814
|
+
headers: {
|
|
815
|
+
[name: string]: unknown;
|
|
816
|
+
};
|
|
817
|
+
content: {
|
|
818
|
+
"application/json": {
|
|
819
|
+
code: string;
|
|
820
|
+
detail: string;
|
|
821
|
+
name: string;
|
|
595
822
|
};
|
|
596
823
|
};
|
|
597
824
|
};
|
|
@@ -631,13 +858,13 @@ export interface paths {
|
|
|
631
858
|
"application/json": {
|
|
632
859
|
event: {
|
|
633
860
|
/** @description The search keyword,When specified, the request will not be tracked as a normal pageview but will instead be tracked as a Site Search request. */
|
|
634
|
-
|
|
861
|
+
query: string;
|
|
635
862
|
/** @description when search is specified, you can optionally specify a search category with this parameter. */
|
|
636
|
-
|
|
637
|
-
/** @description when search is specified, we also recommend setting
|
|
638
|
-
|
|
863
|
+
category?: string;
|
|
864
|
+
/** @description when search is specified, we also recommend setting count to the number of search results displayed on the results page. When keywords are tracked with &search_count=0 they will appear in the 'No Result Search Keyword' report. */
|
|
865
|
+
count?: number;
|
|
639
866
|
};
|
|
640
|
-
|
|
867
|
+
metadataOverride?: {
|
|
641
868
|
/** @description The URL of the page */
|
|
642
869
|
url?: string;
|
|
643
870
|
/** @description The user agent of the user */
|
|
@@ -652,19 +879,13 @@ export interface paths {
|
|
|
652
879
|
contextOverride?: {
|
|
653
880
|
/** @description The user ID of the user, User ID is any non-empty unique string identifying the user (such as an email address or a username). */
|
|
654
881
|
userId?: string;
|
|
655
|
-
/**
|
|
656
|
-
* @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
|
|
657
|
-
* @example {
|
|
658
|
-
* "dimension1": "value1",
|
|
659
|
-
* "dimension2": "value2"
|
|
660
|
-
* }
|
|
661
|
-
*/
|
|
882
|
+
/** @description Define the custom dimensions for tracking events. Set a dimension to null to remove it for this event. */
|
|
662
883
|
customDimensions?: {
|
|
663
|
-
[key: string]: string;
|
|
884
|
+
[key: string]: string | null;
|
|
664
885
|
};
|
|
665
886
|
};
|
|
666
887
|
/** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
|
|
667
|
-
|
|
888
|
+
siteIds?: number[];
|
|
668
889
|
};
|
|
669
890
|
};
|
|
670
891
|
};
|
|
@@ -676,7 +897,49 @@ export interface paths {
|
|
|
676
897
|
};
|
|
677
898
|
content: {
|
|
678
899
|
"application/json": {
|
|
679
|
-
data:
|
|
900
|
+
data: {
|
|
901
|
+
/** @description The javascript tracking code, available when generating tracking code with params ?code=true */
|
|
902
|
+
script: string;
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
};
|
|
907
|
+
/** @description Default Response */
|
|
908
|
+
201: {
|
|
909
|
+
headers: {
|
|
910
|
+
[name: string]: unknown;
|
|
911
|
+
};
|
|
912
|
+
content: {
|
|
913
|
+
"application/json": {
|
|
914
|
+
data: {
|
|
915
|
+
[key: string]: unknown;
|
|
916
|
+
};
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
};
|
|
920
|
+
/** @description Default Response */
|
|
921
|
+
"4XX": {
|
|
922
|
+
headers: {
|
|
923
|
+
[name: string]: unknown;
|
|
924
|
+
};
|
|
925
|
+
content: {
|
|
926
|
+
"application/json": {
|
|
927
|
+
code: string;
|
|
928
|
+
detail: string;
|
|
929
|
+
name: string;
|
|
930
|
+
};
|
|
931
|
+
};
|
|
932
|
+
};
|
|
933
|
+
/** @description Default Response */
|
|
934
|
+
"5XX": {
|
|
935
|
+
headers: {
|
|
936
|
+
[name: string]: unknown;
|
|
937
|
+
};
|
|
938
|
+
content: {
|
|
939
|
+
"application/json": {
|
|
940
|
+
code: string;
|
|
941
|
+
detail: string;
|
|
942
|
+
name: string;
|
|
680
943
|
};
|
|
681
944
|
};
|
|
682
945
|
};
|
|
@@ -720,7 +983,7 @@ export interface paths {
|
|
|
720
983
|
/** @description The URL of the link */
|
|
721
984
|
link: string;
|
|
722
985
|
};
|
|
723
|
-
|
|
986
|
+
metadataOverride?: {
|
|
724
987
|
/** @description The URL of the page */
|
|
725
988
|
url?: string;
|
|
726
989
|
/** @description The user agent of the user */
|
|
@@ -735,19 +998,13 @@ export interface paths {
|
|
|
735
998
|
contextOverride?: {
|
|
736
999
|
/** @description The user ID of the user, User ID is any non-empty unique string identifying the user (such as an email address or a username). */
|
|
737
1000
|
userId?: string;
|
|
738
|
-
/**
|
|
739
|
-
* @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
|
|
740
|
-
* @example {
|
|
741
|
-
* "dimension1": "value1",
|
|
742
|
-
* "dimension2": "value2"
|
|
743
|
-
* }
|
|
744
|
-
*/
|
|
1001
|
+
/** @description Define the custom dimensions for tracking events. Set a dimension to null to remove it for this event. */
|
|
745
1002
|
customDimensions?: {
|
|
746
|
-
[key: string]: string;
|
|
1003
|
+
[key: string]: string | null;
|
|
747
1004
|
};
|
|
748
1005
|
};
|
|
749
1006
|
/** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
|
|
750
|
-
|
|
1007
|
+
siteIds?: number[];
|
|
751
1008
|
};
|
|
752
1009
|
};
|
|
753
1010
|
};
|
|
@@ -759,7 +1016,49 @@ export interface paths {
|
|
|
759
1016
|
};
|
|
760
1017
|
content: {
|
|
761
1018
|
"application/json": {
|
|
762
|
-
data:
|
|
1019
|
+
data: {
|
|
1020
|
+
/** @description The javascript tracking code, available when generating tracking code with params ?code=true */
|
|
1021
|
+
script: string;
|
|
1022
|
+
};
|
|
1023
|
+
};
|
|
1024
|
+
};
|
|
1025
|
+
};
|
|
1026
|
+
/** @description Default Response */
|
|
1027
|
+
201: {
|
|
1028
|
+
headers: {
|
|
1029
|
+
[name: string]: unknown;
|
|
1030
|
+
};
|
|
1031
|
+
content: {
|
|
1032
|
+
"application/json": {
|
|
1033
|
+
data: {
|
|
1034
|
+
[key: string]: unknown;
|
|
1035
|
+
};
|
|
1036
|
+
};
|
|
1037
|
+
};
|
|
1038
|
+
};
|
|
1039
|
+
/** @description Default Response */
|
|
1040
|
+
"4XX": {
|
|
1041
|
+
headers: {
|
|
1042
|
+
[name: string]: unknown;
|
|
1043
|
+
};
|
|
1044
|
+
content: {
|
|
1045
|
+
"application/json": {
|
|
1046
|
+
code: string;
|
|
1047
|
+
detail: string;
|
|
1048
|
+
name: string;
|
|
1049
|
+
};
|
|
1050
|
+
};
|
|
1051
|
+
};
|
|
1052
|
+
/** @description Default Response */
|
|
1053
|
+
"5XX": {
|
|
1054
|
+
headers: {
|
|
1055
|
+
[name: string]: unknown;
|
|
1056
|
+
};
|
|
1057
|
+
content: {
|
|
1058
|
+
"application/json": {
|
|
1059
|
+
code: string;
|
|
1060
|
+
detail: string;
|
|
1061
|
+
name: string;
|
|
763
1062
|
};
|
|
764
1063
|
};
|
|
765
1064
|
};
|
|
@@ -799,13 +1098,13 @@ export interface paths {
|
|
|
799
1098
|
"application/json": {
|
|
800
1099
|
event: {
|
|
801
1100
|
/** @description The name of the content block */
|
|
802
|
-
|
|
1101
|
+
name: string;
|
|
803
1102
|
/** @description The piece of the content that was displayed (e.g. link to an image) */
|
|
804
|
-
|
|
1103
|
+
piece: string;
|
|
805
1104
|
/** @description The target of the content leads to (e.g. URL of some external website) */
|
|
806
|
-
|
|
1105
|
+
target: string;
|
|
807
1106
|
};
|
|
808
|
-
|
|
1107
|
+
metadataOverride?: {
|
|
809
1108
|
/** @description The URL of the page */
|
|
810
1109
|
url?: string;
|
|
811
1110
|
/** @description The user agent of the user */
|
|
@@ -820,19 +1119,13 @@ export interface paths {
|
|
|
820
1119
|
contextOverride?: {
|
|
821
1120
|
/** @description The user ID of the user, User ID is any non-empty unique string identifying the user (such as an email address or a username). */
|
|
822
1121
|
userId?: string;
|
|
823
|
-
/**
|
|
824
|
-
* @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
|
|
825
|
-
* @example {
|
|
826
|
-
* "dimension1": "value1",
|
|
827
|
-
* "dimension2": "value2"
|
|
828
|
-
* }
|
|
829
|
-
*/
|
|
1122
|
+
/** @description Define the custom dimensions for tracking events. Set a dimension to null to remove it for this event. */
|
|
830
1123
|
customDimensions?: {
|
|
831
|
-
[key: string]: string;
|
|
1124
|
+
[key: string]: string | null;
|
|
832
1125
|
};
|
|
833
1126
|
};
|
|
834
1127
|
/** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
|
|
835
|
-
|
|
1128
|
+
siteIds?: number[];
|
|
836
1129
|
};
|
|
837
1130
|
};
|
|
838
1131
|
};
|
|
@@ -844,7 +1137,49 @@ export interface paths {
|
|
|
844
1137
|
};
|
|
845
1138
|
content: {
|
|
846
1139
|
"application/json": {
|
|
847
|
-
data:
|
|
1140
|
+
data: {
|
|
1141
|
+
/** @description The javascript tracking code, available when generating tracking code with params ?code=true */
|
|
1142
|
+
script: string;
|
|
1143
|
+
};
|
|
1144
|
+
};
|
|
1145
|
+
};
|
|
1146
|
+
};
|
|
1147
|
+
/** @description Default Response */
|
|
1148
|
+
201: {
|
|
1149
|
+
headers: {
|
|
1150
|
+
[name: string]: unknown;
|
|
1151
|
+
};
|
|
1152
|
+
content: {
|
|
1153
|
+
"application/json": {
|
|
1154
|
+
data: {
|
|
1155
|
+
[key: string]: unknown;
|
|
1156
|
+
};
|
|
1157
|
+
};
|
|
1158
|
+
};
|
|
1159
|
+
};
|
|
1160
|
+
/** @description Default Response */
|
|
1161
|
+
"4XX": {
|
|
1162
|
+
headers: {
|
|
1163
|
+
[name: string]: unknown;
|
|
1164
|
+
};
|
|
1165
|
+
content: {
|
|
1166
|
+
"application/json": {
|
|
1167
|
+
code: string;
|
|
1168
|
+
detail: string;
|
|
1169
|
+
name: string;
|
|
1170
|
+
};
|
|
1171
|
+
};
|
|
1172
|
+
};
|
|
1173
|
+
/** @description Default Response */
|
|
1174
|
+
"5XX": {
|
|
1175
|
+
headers: {
|
|
1176
|
+
[name: string]: unknown;
|
|
1177
|
+
};
|
|
1178
|
+
content: {
|
|
1179
|
+
"application/json": {
|
|
1180
|
+
code: string;
|
|
1181
|
+
detail: string;
|
|
1182
|
+
name: string;
|
|
848
1183
|
};
|
|
849
1184
|
};
|
|
850
1185
|
};
|
|
@@ -884,15 +1219,15 @@ export interface paths {
|
|
|
884
1219
|
"application/json": {
|
|
885
1220
|
event: {
|
|
886
1221
|
/** @description The name of the content block */
|
|
887
|
-
|
|
1222
|
+
name: string;
|
|
888
1223
|
/** @description The piece of the content that was displayed (e.g. link to an image) */
|
|
889
|
-
|
|
1224
|
+
piece: string;
|
|
890
1225
|
/** @description The target of the content leads to (e.g. URL of some external website) */
|
|
891
|
-
|
|
1226
|
+
target: string;
|
|
892
1227
|
/** @description The interaction of the content, example: 'click' */
|
|
893
|
-
|
|
1228
|
+
interaction: string;
|
|
894
1229
|
};
|
|
895
|
-
|
|
1230
|
+
metadataOverride?: {
|
|
896
1231
|
/** @description The URL of the page */
|
|
897
1232
|
url?: string;
|
|
898
1233
|
/** @description The user agent of the user */
|
|
@@ -907,19 +1242,13 @@ export interface paths {
|
|
|
907
1242
|
contextOverride?: {
|
|
908
1243
|
/** @description The user ID of the user, User ID is any non-empty unique string identifying the user (such as an email address or a username). */
|
|
909
1244
|
userId?: string;
|
|
910
|
-
/**
|
|
911
|
-
* @description Custom dimensions example: { 'dimension1': 'value1', 'dimension2': 'value2' }
|
|
912
|
-
* @example {
|
|
913
|
-
* "dimension1": "value1",
|
|
914
|
-
* "dimension2": "value2"
|
|
915
|
-
* }
|
|
916
|
-
*/
|
|
1245
|
+
/** @description Define the custom dimensions for tracking events. Set a dimension to null to remove it for this event. */
|
|
917
1246
|
customDimensions?: {
|
|
918
|
-
[key: string]: string;
|
|
1247
|
+
[key: string]: string | null;
|
|
919
1248
|
};
|
|
920
1249
|
};
|
|
921
1250
|
/** @description Array of site IDs, if not provided, the tracking will be applied to all the website's site_ids */
|
|
922
|
-
|
|
1251
|
+
siteIds?: number[];
|
|
923
1252
|
};
|
|
924
1253
|
};
|
|
925
1254
|
};
|
|
@@ -931,7 +1260,49 @@ export interface paths {
|
|
|
931
1260
|
};
|
|
932
1261
|
content: {
|
|
933
1262
|
"application/json": {
|
|
934
|
-
data:
|
|
1263
|
+
data: {
|
|
1264
|
+
/** @description The javascript tracking code, available when generating tracking code with params ?code=true */
|
|
1265
|
+
script: string;
|
|
1266
|
+
};
|
|
1267
|
+
};
|
|
1268
|
+
};
|
|
1269
|
+
};
|
|
1270
|
+
/** @description Default Response */
|
|
1271
|
+
201: {
|
|
1272
|
+
headers: {
|
|
1273
|
+
[name: string]: unknown;
|
|
1274
|
+
};
|
|
1275
|
+
content: {
|
|
1276
|
+
"application/json": {
|
|
1277
|
+
data: {
|
|
1278
|
+
[key: string]: unknown;
|
|
1279
|
+
};
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
1282
|
+
};
|
|
1283
|
+
/** @description Default Response */
|
|
1284
|
+
"4XX": {
|
|
1285
|
+
headers: {
|
|
1286
|
+
[name: string]: unknown;
|
|
1287
|
+
};
|
|
1288
|
+
content: {
|
|
1289
|
+
"application/json": {
|
|
1290
|
+
code: string;
|
|
1291
|
+
detail: string;
|
|
1292
|
+
name: string;
|
|
1293
|
+
};
|
|
1294
|
+
};
|
|
1295
|
+
};
|
|
1296
|
+
/** @description Default Response */
|
|
1297
|
+
"5XX": {
|
|
1298
|
+
headers: {
|
|
1299
|
+
[name: string]: unknown;
|
|
1300
|
+
};
|
|
1301
|
+
content: {
|
|
1302
|
+
"application/json": {
|
|
1303
|
+
code: string;
|
|
1304
|
+
detail: string;
|
|
1305
|
+
name: string;
|
|
935
1306
|
};
|
|
936
1307
|
};
|
|
937
1308
|
};
|
|
@@ -1053,8 +1424,7 @@ export interface paths {
|
|
|
1053
1424
|
* @description The scopes to generate the token for
|
|
1054
1425
|
* @example [
|
|
1055
1426
|
* "analytics:website:read",
|
|
1056
|
-
* "analytics:website:write"
|
|
1057
|
-
* "analytics:website:tracking"
|
|
1427
|
+
* "analytics:website:write"
|
|
1058
1428
|
* ]
|
|
1059
1429
|
*/
|
|
1060
1430
|
scopes: string[];
|