@oursprivacy/platform-sdk 1.67.0 → 1.69.0
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/CHANGELOG.md +14 -0
- package/client.d.mts +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/analytics.d.mts +10 -0
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +10 -0
- package/resources/analytics.d.ts.map +1 -1
- package/resources/dashboards.d.mts +696 -34
- package/resources/dashboards.d.mts.map +1 -1
- package/resources/dashboards.d.ts +696 -34
- package/resources/dashboards.d.ts.map +1 -1
- package/resources/destinations.d.mts +7 -7
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +7 -7
- package/resources/destinations.d.ts.map +1 -1
- package/resources/funnels.d.mts +255 -9
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +255 -9
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +10 -7
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +10 -7
- package/resources/funnels.mjs.map +1 -1
- package/resources/index.d.mts +3 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/insights.d.mts +178 -57
- package/resources/insights.d.mts.map +1 -1
- package/resources/insights.d.ts +178 -57
- package/resources/insights.d.ts.map +1 -1
- package/resources/insights.js +9 -7
- package/resources/insights.js.map +1 -1
- package/resources/insights.mjs +9 -7
- package/resources/insights.mjs.map +1 -1
- package/resources/journey-flows.d.mts +242 -18
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +242 -18
- package/resources/journey-flows.d.ts.map +1 -1
- package/resources/journey-flows.js +18 -12
- package/resources/journey-flows.js.map +1 -1
- package/resources/journey-flows.mjs +18 -12
- package/resources/journey-flows.mjs.map +1 -1
- package/resources/query-events.d.mts +324 -0
- package/resources/query-events.d.mts.map +1 -0
- package/resources/query-events.d.ts +324 -0
- package/resources/query-events.d.ts.map +1 -0
- package/resources/query-events.js +64 -0
- package/resources/query-events.js.map +1 -0
- package/resources/query-events.mjs +60 -0
- package/resources/query-events.mjs.map +1 -0
- package/resources/query-visitors.d.mts +127 -0
- package/resources/query-visitors.d.mts.map +1 -0
- package/resources/query-visitors.d.ts +127 -0
- package/resources/query-visitors.d.ts.map +1 -0
- package/resources/query-visitors.js +35 -0
- package/resources/query-visitors.js.map +1 -0
- package/resources/query-visitors.mjs +31 -0
- package/resources/query-visitors.mjs.map +1 -0
- package/resources/report-branding.d.mts +112 -28
- package/resources/report-branding.d.mts.map +1 -1
- package/resources/report-branding.d.ts +112 -28
- package/resources/report-branding.d.ts.map +1 -1
- package/resources/report-branding.js +29 -15
- package/resources/report-branding.js.map +1 -1
- package/resources/report-branding.mjs +29 -15
- package/resources/report-branding.mjs.map +1 -1
- package/resources/sources.d.mts +6 -6
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +6 -6
- package/resources/sources.d.ts.map +1 -1
- package/resources/test-events.d.mts +28 -0
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +28 -0
- package/resources/test-events.d.ts.map +1 -1
- package/resources/web-analytics.d.mts +25 -1
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +25 -1
- package/resources/web-analytics.d.ts.map +1 -1
- package/src/client.ts +54 -0
- package/src/resources/analytics.ts +12 -0
- package/src/resources/dashboards.ts +939 -47
- package/src/resources/destinations.ts +23 -2
- package/src/resources/funnels.ts +334 -9
- package/src/resources/index.ts +24 -0
- package/src/resources/insights.ts +224 -57
- package/src/resources/journey-flows.ts +300 -22
- package/src/resources/query-events.ts +459 -0
- package/src/resources/query-visitors.ts +190 -0
- package/src/resources/report-branding.ts +132 -27
- package/src/resources/sources.ts +12 -0
- package/src/resources/test-events.ts +33 -0
- package/src/resources/web-analytics.ts +41 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -104,7 +104,7 @@ export interface DashboardListResponse {
|
|
|
104
104
|
name: string;
|
|
105
105
|
/**
|
|
106
106
|
* Complete UTC date context. Replaces the saved context on PATCH. Funnel and
|
|
107
|
-
* Journey tiles support up to
|
|
107
|
+
* Journey tiles support up to 93 inclusive days; Insights retain their native
|
|
108
108
|
* range limit.
|
|
109
109
|
*/
|
|
110
110
|
reportContext: DashboardListResponse.ReportContext;
|
|
@@ -136,7 +136,7 @@ export interface DashboardListResponse {
|
|
|
136
136
|
export declare namespace DashboardListResponse {
|
|
137
137
|
/**
|
|
138
138
|
* Complete UTC date context. Replaces the saved context on PATCH. Funnel and
|
|
139
|
-
* Journey tiles support up to
|
|
139
|
+
* Journey tiles support up to 93 inclusive days; Insights retain their native
|
|
140
140
|
* range limit.
|
|
141
141
|
*/
|
|
142
142
|
interface ReportContext {
|
|
@@ -297,7 +297,7 @@ export interface DashboardCreateResponse {
|
|
|
297
297
|
name: string;
|
|
298
298
|
/**
|
|
299
299
|
* Complete UTC date context. Replaces the saved context on PATCH. Funnel and
|
|
300
|
-
* Journey tiles support up to
|
|
300
|
+
* Journey tiles support up to 93 inclusive days; Insights retain their native
|
|
301
301
|
* range limit.
|
|
302
302
|
*/
|
|
303
303
|
reportContext: DashboardCreateResponse.ReportContext;
|
|
@@ -329,7 +329,7 @@ export interface DashboardCreateResponse {
|
|
|
329
329
|
export declare namespace DashboardCreateResponse {
|
|
330
330
|
/**
|
|
331
331
|
* Complete UTC date context. Replaces the saved context on PATCH. Funnel and
|
|
332
|
-
* Journey tiles support up to
|
|
332
|
+
* Journey tiles support up to 93 inclusive days; Insights retain their native
|
|
333
333
|
* range limit.
|
|
334
334
|
*/
|
|
335
335
|
interface ReportContext {
|
|
@@ -490,7 +490,7 @@ export interface DashboardRetrieveResponse {
|
|
|
490
490
|
name: string;
|
|
491
491
|
/**
|
|
492
492
|
* Complete UTC date context. Replaces the saved context on PATCH. Funnel and
|
|
493
|
-
* Journey tiles support up to
|
|
493
|
+
* Journey tiles support up to 93 inclusive days; Insights retain their native
|
|
494
494
|
* range limit.
|
|
495
495
|
*/
|
|
496
496
|
reportContext: DashboardRetrieveResponse.ReportContext;
|
|
@@ -522,7 +522,7 @@ export interface DashboardRetrieveResponse {
|
|
|
522
522
|
export declare namespace DashboardRetrieveResponse {
|
|
523
523
|
/**
|
|
524
524
|
* Complete UTC date context. Replaces the saved context on PATCH. Funnel and
|
|
525
|
-
* Journey tiles support up to
|
|
525
|
+
* Journey tiles support up to 93 inclusive days; Insights retain their native
|
|
526
526
|
* range limit.
|
|
527
527
|
*/
|
|
528
528
|
interface ReportContext {
|
|
@@ -683,7 +683,7 @@ export interface DashboardUpdateResponse {
|
|
|
683
683
|
name: string;
|
|
684
684
|
/**
|
|
685
685
|
* Complete UTC date context. Replaces the saved context on PATCH. Funnel and
|
|
686
|
-
* Journey tiles support up to
|
|
686
|
+
* Journey tiles support up to 93 inclusive days; Insights retain their native
|
|
687
687
|
* range limit.
|
|
688
688
|
*/
|
|
689
689
|
reportContext: DashboardUpdateResponse.ReportContext;
|
|
@@ -715,7 +715,7 @@ export interface DashboardUpdateResponse {
|
|
|
715
715
|
export declare namespace DashboardUpdateResponse {
|
|
716
716
|
/**
|
|
717
717
|
* Complete UTC date context. Replaces the saved context on PATCH. Funnel and
|
|
718
|
-
* Journey tiles support up to
|
|
718
|
+
* Journey tiles support up to 93 inclusive days; Insights retain their native
|
|
719
719
|
* range limit.
|
|
720
720
|
*/
|
|
721
721
|
interface ReportContext {
|
|
@@ -881,7 +881,7 @@ export interface DashboardDuplicateResponse {
|
|
|
881
881
|
name: string;
|
|
882
882
|
/**
|
|
883
883
|
* Complete UTC date context. Replaces the saved context on PATCH. Funnel and
|
|
884
|
-
* Journey tiles support up to
|
|
884
|
+
* Journey tiles support up to 93 inclusive days; Insights retain their native
|
|
885
885
|
* range limit.
|
|
886
886
|
*/
|
|
887
887
|
reportContext: DashboardDuplicateResponse.ReportContext;
|
|
@@ -913,7 +913,7 @@ export interface DashboardDuplicateResponse {
|
|
|
913
913
|
export declare namespace DashboardDuplicateResponse {
|
|
914
914
|
/**
|
|
915
915
|
* Complete UTC date context. Replaces the saved context on PATCH. Funnel and
|
|
916
|
-
* Journey tiles support up to
|
|
916
|
+
* Journey tiles support up to 93 inclusive days; Insights retain their native
|
|
917
917
|
* range limit.
|
|
918
918
|
*/
|
|
919
919
|
interface ReportContext {
|
|
@@ -1083,9 +1083,10 @@ export declare namespace DashboardPreviewResponse {
|
|
|
1083
1083
|
createdAt: string;
|
|
1084
1084
|
createdByUserId: string;
|
|
1085
1085
|
/**
|
|
1086
|
-
* Version 1 Insight definition: one to ten metrics and
|
|
1087
|
-
* interval. Sum and average require a numeric event
|
|
1088
|
-
*
|
|
1086
|
+
* Version 1 Insight definition: one to ten metrics and an hour, day, week, or
|
|
1087
|
+
* month interval (up to 366 buckets). Sum and average require a numeric event
|
|
1088
|
+
* property. Metrics select eventNames or allEvents. includeBots defaults to false.
|
|
1089
|
+
* Filters use the analytics property catalog.
|
|
1089
1090
|
*/
|
|
1090
1091
|
definition: Report.Definition;
|
|
1091
1092
|
/**
|
|
@@ -1112,16 +1113,21 @@ export declare namespace DashboardPreviewResponse {
|
|
|
1112
1113
|
}
|
|
1113
1114
|
namespace Report {
|
|
1114
1115
|
/**
|
|
1115
|
-
* Version 1 Insight definition: one to ten metrics and
|
|
1116
|
-
* interval. Sum and average require a numeric event
|
|
1117
|
-
*
|
|
1116
|
+
* Version 1 Insight definition: one to ten metrics and an hour, day, week, or
|
|
1117
|
+
* month interval (up to 366 buckets). Sum and average require a numeric event
|
|
1118
|
+
* property. Metrics select eventNames or allEvents. includeBots defaults to false.
|
|
1119
|
+
* Filters use the analytics property catalog.
|
|
1118
1120
|
*/
|
|
1119
1121
|
interface Definition {
|
|
1120
|
-
interval: 'day' | 'week' | 'month';
|
|
1122
|
+
interval: 'hour' | 'day' | 'week' | 'month';
|
|
1121
1123
|
kind: 'insight';
|
|
1122
1124
|
metrics: Array<Definition.Metric>;
|
|
1123
1125
|
version: 1;
|
|
1124
1126
|
filter?: Definition.Filter;
|
|
1127
|
+
/**
|
|
1128
|
+
* Include bot events and sessions; test events remain excluded. Defaults to false.
|
|
1129
|
+
*/
|
|
1130
|
+
includeBots?: boolean;
|
|
1125
1131
|
}
|
|
1126
1132
|
namespace Definition {
|
|
1127
1133
|
interface Metric {
|
|
@@ -1133,6 +1139,10 @@ export declare namespace DashboardPreviewResponse {
|
|
|
1133
1139
|
aggregation: 'event_count' | 'unique_visitors' | 'sum' | 'average';
|
|
1134
1140
|
eventNames: Array<string>;
|
|
1135
1141
|
name: string;
|
|
1142
|
+
/**
|
|
1143
|
+
* Count every event name. Requires an empty eventNames array.
|
|
1144
|
+
*/
|
|
1145
|
+
allEvents?: boolean;
|
|
1136
1146
|
filter?: Metric.Filter;
|
|
1137
1147
|
property?: Metric.Property;
|
|
1138
1148
|
}
|
|
@@ -1254,13 +1264,29 @@ export declare namespace DashboardPreviewResponse {
|
|
|
1254
1264
|
cumulative: boolean;
|
|
1255
1265
|
executedAt: string;
|
|
1256
1266
|
from: string;
|
|
1257
|
-
interval: 'day' | 'week' | 'month';
|
|
1267
|
+
interval: 'hour' | 'day' | 'week' | 'month';
|
|
1258
1268
|
sourceCompleteness: 'unknown';
|
|
1259
1269
|
timeZone: 'UTC';
|
|
1260
1270
|
to: string;
|
|
1271
|
+
breakdown?: Scope.Breakdown | null;
|
|
1261
1272
|
comparison?: Scope.Comparison | null;
|
|
1262
1273
|
}
|
|
1263
1274
|
namespace Scope {
|
|
1275
|
+
interface Breakdown {
|
|
1276
|
+
atAnchorId: string | null;
|
|
1277
|
+
limit: number;
|
|
1278
|
+
property: Breakdown.Property;
|
|
1279
|
+
stepNumber: number | null;
|
|
1280
|
+
truncated: boolean;
|
|
1281
|
+
valueCount: number;
|
|
1282
|
+
}
|
|
1283
|
+
namespace Breakdown {
|
|
1284
|
+
interface Property {
|
|
1285
|
+
property: string;
|
|
1286
|
+
type: 'string' | 'number' | 'boolean';
|
|
1287
|
+
path?: Array<string>;
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1264
1290
|
interface Comparison {
|
|
1265
1291
|
from: string;
|
|
1266
1292
|
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
@@ -1276,6 +1302,7 @@ export declare namespace DashboardPreviewResponse {
|
|
|
1276
1302
|
metricId: string;
|
|
1277
1303
|
points: Array<Series.Point>;
|
|
1278
1304
|
rangeValue: number | null;
|
|
1305
|
+
segment?: Series.Segment | null;
|
|
1279
1306
|
}
|
|
1280
1307
|
namespace Series {
|
|
1281
1308
|
interface BreakdownValue {
|
|
@@ -1290,6 +1317,13 @@ export declare namespace DashboardPreviewResponse {
|
|
|
1290
1317
|
raw: number | null;
|
|
1291
1318
|
smoothed: number | null;
|
|
1292
1319
|
}
|
|
1320
|
+
interface Segment {
|
|
1321
|
+
key: string;
|
|
1322
|
+
kind: 'value' | 'other' | 'not_set';
|
|
1323
|
+
label: string;
|
|
1324
|
+
rank: number;
|
|
1325
|
+
value: string | null;
|
|
1326
|
+
}
|
|
1293
1327
|
}
|
|
1294
1328
|
}
|
|
1295
1329
|
}
|
|
@@ -1450,6 +1484,14 @@ export declare namespace DashboardPreviewResponse {
|
|
|
1450
1484
|
* events.
|
|
1451
1485
|
*/
|
|
1452
1486
|
totalVisitors: number;
|
|
1487
|
+
/**
|
|
1488
|
+
* Per-segment results when `breakdown` was requested; null otherwise.
|
|
1489
|
+
*/
|
|
1490
|
+
breakdown?: Result.Breakdown | null;
|
|
1491
|
+
/**
|
|
1492
|
+
* Results for the compared dates when `comparison` was requested; null otherwise.
|
|
1493
|
+
*/
|
|
1494
|
+
comparison?: Result.Comparison | null;
|
|
1453
1495
|
/**
|
|
1454
1496
|
* Average time from first step to last step in seconds. Null when no completions.
|
|
1455
1497
|
*/
|
|
@@ -1498,6 +1540,218 @@ export declare namespace DashboardPreviewResponse {
|
|
|
1498
1540
|
*/
|
|
1499
1541
|
avgTimeToNextStep?: number | null;
|
|
1500
1542
|
}
|
|
1543
|
+
/**
|
|
1544
|
+
* Per-segment results when `breakdown` was requested; null otherwise.
|
|
1545
|
+
*/
|
|
1546
|
+
interface Breakdown {
|
|
1547
|
+
scope: Breakdown.Scope;
|
|
1548
|
+
/**
|
|
1549
|
+
* Segments in rank order.
|
|
1550
|
+
*/
|
|
1551
|
+
segments: Array<Breakdown.Segment>;
|
|
1552
|
+
}
|
|
1553
|
+
namespace Breakdown {
|
|
1554
|
+
interface Scope {
|
|
1555
|
+
atAnchorId: string | null;
|
|
1556
|
+
limit: number;
|
|
1557
|
+
property: Scope.Property;
|
|
1558
|
+
stepNumber: number | null;
|
|
1559
|
+
truncated: boolean;
|
|
1560
|
+
/**
|
|
1561
|
+
* Distinct values seen.
|
|
1562
|
+
*/
|
|
1563
|
+
valueCount: number;
|
|
1564
|
+
}
|
|
1565
|
+
namespace Scope {
|
|
1566
|
+
interface Property {
|
|
1567
|
+
property: string;
|
|
1568
|
+
type: 'string' | 'number' | 'boolean';
|
|
1569
|
+
path?: Array<string>;
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
interface Segment {
|
|
1573
|
+
/**
|
|
1574
|
+
* Ratio of last-step to first-step volume in this segment, as a percentage.
|
|
1575
|
+
*/
|
|
1576
|
+
overallConversionRate: number;
|
|
1577
|
+
segment: Segment.Segment;
|
|
1578
|
+
/**
|
|
1579
|
+
* Per-step results for this segment.
|
|
1580
|
+
*/
|
|
1581
|
+
steps: Array<Segment.Step>;
|
|
1582
|
+
/**
|
|
1583
|
+
* First-step volume in this segment.
|
|
1584
|
+
*/
|
|
1585
|
+
totalVisitors: number;
|
|
1586
|
+
/**
|
|
1587
|
+
* Average time from first step to last step in seconds. Null when no completions.
|
|
1588
|
+
*/
|
|
1589
|
+
overallAvgTimeToConversion?: number | null;
|
|
1590
|
+
}
|
|
1591
|
+
namespace Segment {
|
|
1592
|
+
interface Segment {
|
|
1593
|
+
/**
|
|
1594
|
+
* Segment key: v:<value>, $other, or $none.
|
|
1595
|
+
*/
|
|
1596
|
+
key: string;
|
|
1597
|
+
kind: 'value' | 'other' | 'not_set';
|
|
1598
|
+
label: string;
|
|
1599
|
+
rank: number;
|
|
1600
|
+
/**
|
|
1601
|
+
* Null for other and not_set.
|
|
1602
|
+
*/
|
|
1603
|
+
value: string | null;
|
|
1604
|
+
}
|
|
1605
|
+
interface Step {
|
|
1606
|
+
conversionCount: number;
|
|
1607
|
+
/**
|
|
1608
|
+
* Step ratio as a percentage. Event-counting ratios may exceed 100%.
|
|
1609
|
+
*/
|
|
1610
|
+
conversionRate: number;
|
|
1611
|
+
/**
|
|
1612
|
+
* Drop-off percentage for participant counting; zero when the previous step volume
|
|
1613
|
+
* is zero. Not a participant loss measure for event counting.
|
|
1614
|
+
*/
|
|
1615
|
+
dropOffRate: number;
|
|
1616
|
+
dropOffSessionIds: Array<string>;
|
|
1617
|
+
dropOffVisitorIds: Array<string>;
|
|
1618
|
+
/**
|
|
1619
|
+
* Ratio to first-step volume as a percentage. Event-counting ratios may exceed
|
|
1620
|
+
* 100%.
|
|
1621
|
+
*/
|
|
1622
|
+
overallConversionRate: number;
|
|
1623
|
+
sessionIds: Array<string>;
|
|
1624
|
+
stepNumber: number;
|
|
1625
|
+
/**
|
|
1626
|
+
* Step volume using the saved counting method: unique people, sessions, or events.
|
|
1627
|
+
*/
|
|
1628
|
+
visitorCount: number;
|
|
1629
|
+
visitorIds: Array<string>;
|
|
1630
|
+
/**
|
|
1631
|
+
* Average incoming hop time from the previous step to this step, in seconds.
|
|
1632
|
+
*/
|
|
1633
|
+
avgTimeToNextStep?: number | null;
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
/**
|
|
1638
|
+
* Results for the compared dates when `comparison` was requested; null otherwise.
|
|
1639
|
+
*/
|
|
1640
|
+
interface Comparison {
|
|
1641
|
+
overallConversionRate: number;
|
|
1642
|
+
scope: Comparison.Scope;
|
|
1643
|
+
/**
|
|
1644
|
+
* Same keys and order as `breakdown.segments`.
|
|
1645
|
+
*/
|
|
1646
|
+
segments: Array<Comparison.Segment>;
|
|
1647
|
+
/**
|
|
1648
|
+
* Per-step results for the compared dates. Sample ID arrays are empty.
|
|
1649
|
+
*/
|
|
1650
|
+
steps: Array<Comparison.Step>;
|
|
1651
|
+
totalVisitors: number;
|
|
1652
|
+
overallAvgTimeToConversion?: number | null;
|
|
1653
|
+
}
|
|
1654
|
+
namespace Comparison {
|
|
1655
|
+
interface Scope {
|
|
1656
|
+
from: string;
|
|
1657
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
1658
|
+
to: string;
|
|
1659
|
+
}
|
|
1660
|
+
interface Segment {
|
|
1661
|
+
/**
|
|
1662
|
+
* Ratio of last-step to first-step volume in this segment, as a percentage.
|
|
1663
|
+
*/
|
|
1664
|
+
overallConversionRate: number;
|
|
1665
|
+
segment: Segment.Segment;
|
|
1666
|
+
/**
|
|
1667
|
+
* Per-step results for this segment.
|
|
1668
|
+
*/
|
|
1669
|
+
steps: Array<Segment.Step>;
|
|
1670
|
+
/**
|
|
1671
|
+
* First-step volume in this segment.
|
|
1672
|
+
*/
|
|
1673
|
+
totalVisitors: number;
|
|
1674
|
+
/**
|
|
1675
|
+
* Average time from first step to last step in seconds. Null when no completions.
|
|
1676
|
+
*/
|
|
1677
|
+
overallAvgTimeToConversion?: number | null;
|
|
1678
|
+
}
|
|
1679
|
+
namespace Segment {
|
|
1680
|
+
interface Segment {
|
|
1681
|
+
/**
|
|
1682
|
+
* Segment key: v:<value>, $other, or $none.
|
|
1683
|
+
*/
|
|
1684
|
+
key: string;
|
|
1685
|
+
kind: 'value' | 'other' | 'not_set';
|
|
1686
|
+
label: string;
|
|
1687
|
+
rank: number;
|
|
1688
|
+
/**
|
|
1689
|
+
* Null for other and not_set.
|
|
1690
|
+
*/
|
|
1691
|
+
value: string | null;
|
|
1692
|
+
}
|
|
1693
|
+
interface Step {
|
|
1694
|
+
conversionCount: number;
|
|
1695
|
+
/**
|
|
1696
|
+
* Step ratio as a percentage. Event-counting ratios may exceed 100%.
|
|
1697
|
+
*/
|
|
1698
|
+
conversionRate: number;
|
|
1699
|
+
/**
|
|
1700
|
+
* Drop-off percentage for participant counting; zero when the previous step volume
|
|
1701
|
+
* is zero. Not a participant loss measure for event counting.
|
|
1702
|
+
*/
|
|
1703
|
+
dropOffRate: number;
|
|
1704
|
+
dropOffSessionIds: Array<string>;
|
|
1705
|
+
dropOffVisitorIds: Array<string>;
|
|
1706
|
+
/**
|
|
1707
|
+
* Ratio to first-step volume as a percentage. Event-counting ratios may exceed
|
|
1708
|
+
* 100%.
|
|
1709
|
+
*/
|
|
1710
|
+
overallConversionRate: number;
|
|
1711
|
+
sessionIds: Array<string>;
|
|
1712
|
+
stepNumber: number;
|
|
1713
|
+
/**
|
|
1714
|
+
* Step volume using the saved counting method: unique people, sessions, or events.
|
|
1715
|
+
*/
|
|
1716
|
+
visitorCount: number;
|
|
1717
|
+
visitorIds: Array<string>;
|
|
1718
|
+
/**
|
|
1719
|
+
* Average incoming hop time from the previous step to this step, in seconds.
|
|
1720
|
+
*/
|
|
1721
|
+
avgTimeToNextStep?: number | null;
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
interface Step {
|
|
1725
|
+
conversionCount: number;
|
|
1726
|
+
/**
|
|
1727
|
+
* Step ratio as a percentage. Event-counting ratios may exceed 100%.
|
|
1728
|
+
*/
|
|
1729
|
+
conversionRate: number;
|
|
1730
|
+
/**
|
|
1731
|
+
* Drop-off percentage for participant counting; zero when the previous step volume
|
|
1732
|
+
* is zero. Not a participant loss measure for event counting.
|
|
1733
|
+
*/
|
|
1734
|
+
dropOffRate: number;
|
|
1735
|
+
dropOffSessionIds: Array<string>;
|
|
1736
|
+
dropOffVisitorIds: Array<string>;
|
|
1737
|
+
/**
|
|
1738
|
+
* Ratio to first-step volume as a percentage. Event-counting ratios may exceed
|
|
1739
|
+
* 100%.
|
|
1740
|
+
*/
|
|
1741
|
+
overallConversionRate: number;
|
|
1742
|
+
sessionIds: Array<string>;
|
|
1743
|
+
stepNumber: number;
|
|
1744
|
+
/**
|
|
1745
|
+
* Step volume using the saved counting method: unique people, sessions, or events.
|
|
1746
|
+
*/
|
|
1747
|
+
visitorCount: number;
|
|
1748
|
+
visitorIds: Array<string>;
|
|
1749
|
+
/**
|
|
1750
|
+
* Average incoming hop time from the previous step to this step, in seconds.
|
|
1751
|
+
*/
|
|
1752
|
+
avgTimeToNextStep?: number | null;
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1501
1755
|
}
|
|
1502
1756
|
}
|
|
1503
1757
|
interface UnionMember2 {
|
|
@@ -2158,6 +2412,14 @@ export declare namespace DashboardPreviewResponse {
|
|
|
2158
2412
|
excludeBots: boolean;
|
|
2159
2413
|
reentry: 'FIRST' | 'BEST';
|
|
2160
2414
|
sourceIds: Array<string>;
|
|
2415
|
+
/**
|
|
2416
|
+
* The requested breakdown; null without one.
|
|
2417
|
+
*/
|
|
2418
|
+
breakdown?: EffectiveContext.Breakdown | null;
|
|
2419
|
+
/**
|
|
2420
|
+
* The compared dates; null without a comparison.
|
|
2421
|
+
*/
|
|
2422
|
+
comparison?: EffectiveContext.Comparison | null;
|
|
2161
2423
|
}
|
|
2162
2424
|
namespace EffectiveContext {
|
|
2163
2425
|
interface Comparison {
|
|
@@ -2253,14 +2515,41 @@ export declare namespace DashboardPreviewResponse {
|
|
|
2253
2515
|
timeZone: string;
|
|
2254
2516
|
to: string;
|
|
2255
2517
|
}
|
|
2518
|
+
/**
|
|
2519
|
+
* The requested breakdown; null without one.
|
|
2520
|
+
*/
|
|
2521
|
+
interface Breakdown {
|
|
2522
|
+
atAnchorId: string | null;
|
|
2523
|
+
limit: number;
|
|
2524
|
+
property: Breakdown.Property;
|
|
2525
|
+
stepNumber: number | null;
|
|
2526
|
+
truncated: boolean;
|
|
2527
|
+
/**
|
|
2528
|
+
* Distinct values seen.
|
|
2529
|
+
*/
|
|
2530
|
+
valueCount: number;
|
|
2531
|
+
}
|
|
2532
|
+
namespace Breakdown {
|
|
2533
|
+
interface Property {
|
|
2534
|
+
property: string;
|
|
2535
|
+
type: 'string' | 'number' | 'boolean';
|
|
2536
|
+
path?: Array<string>;
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
/**
|
|
2540
|
+
* The compared dates; null without a comparison.
|
|
2541
|
+
*/
|
|
2542
|
+
interface Comparison {
|
|
2543
|
+
from: string;
|
|
2544
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
2545
|
+
to: string;
|
|
2546
|
+
}
|
|
2256
2547
|
}
|
|
2257
2548
|
interface Execution {
|
|
2258
|
-
cacheHit: boolean;
|
|
2259
2549
|
generatedAt: string;
|
|
2260
2550
|
queryId: string;
|
|
2261
2551
|
sampled: boolean;
|
|
2262
2552
|
warnings: Array<Execution.Warning>;
|
|
2263
|
-
cacheAgeMs?: number | null;
|
|
2264
2553
|
}
|
|
2265
2554
|
namespace Execution {
|
|
2266
2555
|
interface Warning {
|
|
@@ -2304,12 +2593,23 @@ export declare namespace DashboardPreviewResponse {
|
|
|
2304
2593
|
}
|
|
2305
2594
|
}
|
|
2306
2595
|
interface Series {
|
|
2596
|
+
/**
|
|
2597
|
+
* Period: '' for the selected dates, or the comparison kind (previous_period,
|
|
2598
|
+
* previous_year, custom).
|
|
2599
|
+
*/
|
|
2307
2600
|
id: string;
|
|
2308
2601
|
label: string;
|
|
2309
2602
|
segments: Array<Series.Segment>;
|
|
2603
|
+
/**
|
|
2604
|
+
* The compared dates on a comparison series; null on the selected dates.
|
|
2605
|
+
*/
|
|
2606
|
+
comparison?: Series.Comparison | null;
|
|
2310
2607
|
}
|
|
2311
2608
|
namespace Series {
|
|
2312
2609
|
interface Segment {
|
|
2610
|
+
/**
|
|
2611
|
+
* '' for All traffic (always first), otherwise the breakdown segment key.
|
|
2612
|
+
*/
|
|
2313
2613
|
id: string;
|
|
2314
2614
|
columns: Array<Segment.Column>;
|
|
2315
2615
|
completedCount: string;
|
|
@@ -2323,6 +2623,10 @@ export declare namespace DashboardPreviewResponse {
|
|
|
2323
2623
|
topPaths: Array<Segment.TopPath>;
|
|
2324
2624
|
totalPathCount: string;
|
|
2325
2625
|
unfocusedEntryCount: string;
|
|
2626
|
+
/**
|
|
2627
|
+
* The breakdown segment; null on All traffic.
|
|
2628
|
+
*/
|
|
2629
|
+
breakdown?: Segment.Breakdown | null;
|
|
2326
2630
|
observationIncompleteCount?: string | null;
|
|
2327
2631
|
timedOutCount?: string | null;
|
|
2328
2632
|
}
|
|
@@ -2368,6 +2672,9 @@ export declare namespace DashboardPreviewResponse {
|
|
|
2368
2672
|
anchorId: string | null;
|
|
2369
2673
|
count: string;
|
|
2370
2674
|
denominator: string;
|
|
2675
|
+
/**
|
|
2676
|
+
* Stable across segments and periods; id is not.
|
|
2677
|
+
*/
|
|
2371
2678
|
key: string;
|
|
2372
2679
|
kind: 'ANCHOR' | 'EVENT' | 'PAGE' | 'TERMINAL' | 'OMITTED_STEPS' | 'OTHER_EVENTS';
|
|
2373
2680
|
matcher: Node.UnionMember0 | null | Node.UnionMember1;
|
|
@@ -2623,6 +2930,30 @@ export declare namespace DashboardPreviewResponse {
|
|
|
2623
2930
|
}
|
|
2624
2931
|
}
|
|
2625
2932
|
}
|
|
2933
|
+
/**
|
|
2934
|
+
* The breakdown segment; null on All traffic.
|
|
2935
|
+
*/
|
|
2936
|
+
interface Breakdown {
|
|
2937
|
+
/**
|
|
2938
|
+
* Segment key: v:<value>, $other, or $none.
|
|
2939
|
+
*/
|
|
2940
|
+
key: string;
|
|
2941
|
+
kind: 'value' | 'other' | 'not_set';
|
|
2942
|
+
label: string;
|
|
2943
|
+
rank: number;
|
|
2944
|
+
/**
|
|
2945
|
+
* Null for other and not_set.
|
|
2946
|
+
*/
|
|
2947
|
+
value: string | null;
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
/**
|
|
2951
|
+
* The compared dates on a comparison series; null on the selected dates.
|
|
2952
|
+
*/
|
|
2953
|
+
interface Comparison {
|
|
2954
|
+
from: string;
|
|
2955
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
2956
|
+
to: string;
|
|
2626
2957
|
}
|
|
2627
2958
|
}
|
|
2628
2959
|
interface Timing {
|
|
@@ -2660,9 +2991,10 @@ export declare namespace DashboardResultsResponse {
|
|
|
2660
2991
|
createdAt: string;
|
|
2661
2992
|
createdByUserId: string;
|
|
2662
2993
|
/**
|
|
2663
|
-
* Version 1 Insight definition: one to ten metrics and
|
|
2664
|
-
* interval. Sum and average require a numeric event
|
|
2665
|
-
*
|
|
2994
|
+
* Version 1 Insight definition: one to ten metrics and an hour, day, week, or
|
|
2995
|
+
* month interval (up to 366 buckets). Sum and average require a numeric event
|
|
2996
|
+
* property. Metrics select eventNames or allEvents. includeBots defaults to false.
|
|
2997
|
+
* Filters use the analytics property catalog.
|
|
2666
2998
|
*/
|
|
2667
2999
|
definition: Report.Definition;
|
|
2668
3000
|
/**
|
|
@@ -2689,16 +3021,21 @@ export declare namespace DashboardResultsResponse {
|
|
|
2689
3021
|
}
|
|
2690
3022
|
namespace Report {
|
|
2691
3023
|
/**
|
|
2692
|
-
* Version 1 Insight definition: one to ten metrics and
|
|
2693
|
-
* interval. Sum and average require a numeric event
|
|
2694
|
-
*
|
|
3024
|
+
* Version 1 Insight definition: one to ten metrics and an hour, day, week, or
|
|
3025
|
+
* month interval (up to 366 buckets). Sum and average require a numeric event
|
|
3026
|
+
* property. Metrics select eventNames or allEvents. includeBots defaults to false.
|
|
3027
|
+
* Filters use the analytics property catalog.
|
|
2695
3028
|
*/
|
|
2696
3029
|
interface Definition {
|
|
2697
|
-
interval: 'day' | 'week' | 'month';
|
|
3030
|
+
interval: 'hour' | 'day' | 'week' | 'month';
|
|
2698
3031
|
kind: 'insight';
|
|
2699
3032
|
metrics: Array<Definition.Metric>;
|
|
2700
3033
|
version: 1;
|
|
2701
3034
|
filter?: Definition.Filter;
|
|
3035
|
+
/**
|
|
3036
|
+
* Include bot events and sessions; test events remain excluded. Defaults to false.
|
|
3037
|
+
*/
|
|
3038
|
+
includeBots?: boolean;
|
|
2702
3039
|
}
|
|
2703
3040
|
namespace Definition {
|
|
2704
3041
|
interface Metric {
|
|
@@ -2710,6 +3047,10 @@ export declare namespace DashboardResultsResponse {
|
|
|
2710
3047
|
aggregation: 'event_count' | 'unique_visitors' | 'sum' | 'average';
|
|
2711
3048
|
eventNames: Array<string>;
|
|
2712
3049
|
name: string;
|
|
3050
|
+
/**
|
|
3051
|
+
* Count every event name. Requires an empty eventNames array.
|
|
3052
|
+
*/
|
|
3053
|
+
allEvents?: boolean;
|
|
2713
3054
|
filter?: Metric.Filter;
|
|
2714
3055
|
property?: Metric.Property;
|
|
2715
3056
|
}
|
|
@@ -2831,13 +3172,29 @@ export declare namespace DashboardResultsResponse {
|
|
|
2831
3172
|
cumulative: boolean;
|
|
2832
3173
|
executedAt: string;
|
|
2833
3174
|
from: string;
|
|
2834
|
-
interval: 'day' | 'week' | 'month';
|
|
3175
|
+
interval: 'hour' | 'day' | 'week' | 'month';
|
|
2835
3176
|
sourceCompleteness: 'unknown';
|
|
2836
3177
|
timeZone: 'UTC';
|
|
2837
3178
|
to: string;
|
|
3179
|
+
breakdown?: Scope.Breakdown | null;
|
|
2838
3180
|
comparison?: Scope.Comparison | null;
|
|
2839
3181
|
}
|
|
2840
3182
|
namespace Scope {
|
|
3183
|
+
interface Breakdown {
|
|
3184
|
+
atAnchorId: string | null;
|
|
3185
|
+
limit: number;
|
|
3186
|
+
property: Breakdown.Property;
|
|
3187
|
+
stepNumber: number | null;
|
|
3188
|
+
truncated: boolean;
|
|
3189
|
+
valueCount: number;
|
|
3190
|
+
}
|
|
3191
|
+
namespace Breakdown {
|
|
3192
|
+
interface Property {
|
|
3193
|
+
property: string;
|
|
3194
|
+
type: 'string' | 'number' | 'boolean';
|
|
3195
|
+
path?: Array<string>;
|
|
3196
|
+
}
|
|
3197
|
+
}
|
|
2841
3198
|
interface Comparison {
|
|
2842
3199
|
from: string;
|
|
2843
3200
|
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
@@ -2853,6 +3210,7 @@ export declare namespace DashboardResultsResponse {
|
|
|
2853
3210
|
metricId: string;
|
|
2854
3211
|
points: Array<Series.Point>;
|
|
2855
3212
|
rangeValue: number | null;
|
|
3213
|
+
segment?: Series.Segment | null;
|
|
2856
3214
|
}
|
|
2857
3215
|
namespace Series {
|
|
2858
3216
|
interface BreakdownValue {
|
|
@@ -2867,6 +3225,13 @@ export declare namespace DashboardResultsResponse {
|
|
|
2867
3225
|
raw: number | null;
|
|
2868
3226
|
smoothed: number | null;
|
|
2869
3227
|
}
|
|
3228
|
+
interface Segment {
|
|
3229
|
+
key: string;
|
|
3230
|
+
kind: 'value' | 'other' | 'not_set';
|
|
3231
|
+
label: string;
|
|
3232
|
+
rank: number;
|
|
3233
|
+
value: string | null;
|
|
3234
|
+
}
|
|
2870
3235
|
}
|
|
2871
3236
|
}
|
|
2872
3237
|
}
|
|
@@ -3027,6 +3392,14 @@ export declare namespace DashboardResultsResponse {
|
|
|
3027
3392
|
* events.
|
|
3028
3393
|
*/
|
|
3029
3394
|
totalVisitors: number;
|
|
3395
|
+
/**
|
|
3396
|
+
* Per-segment results when `breakdown` was requested; null otherwise.
|
|
3397
|
+
*/
|
|
3398
|
+
breakdown?: Result.Breakdown | null;
|
|
3399
|
+
/**
|
|
3400
|
+
* Results for the compared dates when `comparison` was requested; null otherwise.
|
|
3401
|
+
*/
|
|
3402
|
+
comparison?: Result.Comparison | null;
|
|
3030
3403
|
/**
|
|
3031
3404
|
* Average time from first step to last step in seconds. Null when no completions.
|
|
3032
3405
|
*/
|
|
@@ -3075,6 +3448,218 @@ export declare namespace DashboardResultsResponse {
|
|
|
3075
3448
|
*/
|
|
3076
3449
|
avgTimeToNextStep?: number | null;
|
|
3077
3450
|
}
|
|
3451
|
+
/**
|
|
3452
|
+
* Per-segment results when `breakdown` was requested; null otherwise.
|
|
3453
|
+
*/
|
|
3454
|
+
interface Breakdown {
|
|
3455
|
+
scope: Breakdown.Scope;
|
|
3456
|
+
/**
|
|
3457
|
+
* Segments in rank order.
|
|
3458
|
+
*/
|
|
3459
|
+
segments: Array<Breakdown.Segment>;
|
|
3460
|
+
}
|
|
3461
|
+
namespace Breakdown {
|
|
3462
|
+
interface Scope {
|
|
3463
|
+
atAnchorId: string | null;
|
|
3464
|
+
limit: number;
|
|
3465
|
+
property: Scope.Property;
|
|
3466
|
+
stepNumber: number | null;
|
|
3467
|
+
truncated: boolean;
|
|
3468
|
+
/**
|
|
3469
|
+
* Distinct values seen.
|
|
3470
|
+
*/
|
|
3471
|
+
valueCount: number;
|
|
3472
|
+
}
|
|
3473
|
+
namespace Scope {
|
|
3474
|
+
interface Property {
|
|
3475
|
+
property: string;
|
|
3476
|
+
type: 'string' | 'number' | 'boolean';
|
|
3477
|
+
path?: Array<string>;
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
interface Segment {
|
|
3481
|
+
/**
|
|
3482
|
+
* Ratio of last-step to first-step volume in this segment, as a percentage.
|
|
3483
|
+
*/
|
|
3484
|
+
overallConversionRate: number;
|
|
3485
|
+
segment: Segment.Segment;
|
|
3486
|
+
/**
|
|
3487
|
+
* Per-step results for this segment.
|
|
3488
|
+
*/
|
|
3489
|
+
steps: Array<Segment.Step>;
|
|
3490
|
+
/**
|
|
3491
|
+
* First-step volume in this segment.
|
|
3492
|
+
*/
|
|
3493
|
+
totalVisitors: number;
|
|
3494
|
+
/**
|
|
3495
|
+
* Average time from first step to last step in seconds. Null when no completions.
|
|
3496
|
+
*/
|
|
3497
|
+
overallAvgTimeToConversion?: number | null;
|
|
3498
|
+
}
|
|
3499
|
+
namespace Segment {
|
|
3500
|
+
interface Segment {
|
|
3501
|
+
/**
|
|
3502
|
+
* Segment key: v:<value>, $other, or $none.
|
|
3503
|
+
*/
|
|
3504
|
+
key: string;
|
|
3505
|
+
kind: 'value' | 'other' | 'not_set';
|
|
3506
|
+
label: string;
|
|
3507
|
+
rank: number;
|
|
3508
|
+
/**
|
|
3509
|
+
* Null for other and not_set.
|
|
3510
|
+
*/
|
|
3511
|
+
value: string | null;
|
|
3512
|
+
}
|
|
3513
|
+
interface Step {
|
|
3514
|
+
conversionCount: number;
|
|
3515
|
+
/**
|
|
3516
|
+
* Step ratio as a percentage. Event-counting ratios may exceed 100%.
|
|
3517
|
+
*/
|
|
3518
|
+
conversionRate: number;
|
|
3519
|
+
/**
|
|
3520
|
+
* Drop-off percentage for participant counting; zero when the previous step volume
|
|
3521
|
+
* is zero. Not a participant loss measure for event counting.
|
|
3522
|
+
*/
|
|
3523
|
+
dropOffRate: number;
|
|
3524
|
+
dropOffSessionIds: Array<string>;
|
|
3525
|
+
dropOffVisitorIds: Array<string>;
|
|
3526
|
+
/**
|
|
3527
|
+
* Ratio to first-step volume as a percentage. Event-counting ratios may exceed
|
|
3528
|
+
* 100%.
|
|
3529
|
+
*/
|
|
3530
|
+
overallConversionRate: number;
|
|
3531
|
+
sessionIds: Array<string>;
|
|
3532
|
+
stepNumber: number;
|
|
3533
|
+
/**
|
|
3534
|
+
* Step volume using the saved counting method: unique people, sessions, or events.
|
|
3535
|
+
*/
|
|
3536
|
+
visitorCount: number;
|
|
3537
|
+
visitorIds: Array<string>;
|
|
3538
|
+
/**
|
|
3539
|
+
* Average incoming hop time from the previous step to this step, in seconds.
|
|
3540
|
+
*/
|
|
3541
|
+
avgTimeToNextStep?: number | null;
|
|
3542
|
+
}
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
/**
|
|
3546
|
+
* Results for the compared dates when `comparison` was requested; null otherwise.
|
|
3547
|
+
*/
|
|
3548
|
+
interface Comparison {
|
|
3549
|
+
overallConversionRate: number;
|
|
3550
|
+
scope: Comparison.Scope;
|
|
3551
|
+
/**
|
|
3552
|
+
* Same keys and order as `breakdown.segments`.
|
|
3553
|
+
*/
|
|
3554
|
+
segments: Array<Comparison.Segment>;
|
|
3555
|
+
/**
|
|
3556
|
+
* Per-step results for the compared dates. Sample ID arrays are empty.
|
|
3557
|
+
*/
|
|
3558
|
+
steps: Array<Comparison.Step>;
|
|
3559
|
+
totalVisitors: number;
|
|
3560
|
+
overallAvgTimeToConversion?: number | null;
|
|
3561
|
+
}
|
|
3562
|
+
namespace Comparison {
|
|
3563
|
+
interface Scope {
|
|
3564
|
+
from: string;
|
|
3565
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
3566
|
+
to: string;
|
|
3567
|
+
}
|
|
3568
|
+
interface Segment {
|
|
3569
|
+
/**
|
|
3570
|
+
* Ratio of last-step to first-step volume in this segment, as a percentage.
|
|
3571
|
+
*/
|
|
3572
|
+
overallConversionRate: number;
|
|
3573
|
+
segment: Segment.Segment;
|
|
3574
|
+
/**
|
|
3575
|
+
* Per-step results for this segment.
|
|
3576
|
+
*/
|
|
3577
|
+
steps: Array<Segment.Step>;
|
|
3578
|
+
/**
|
|
3579
|
+
* First-step volume in this segment.
|
|
3580
|
+
*/
|
|
3581
|
+
totalVisitors: number;
|
|
3582
|
+
/**
|
|
3583
|
+
* Average time from first step to last step in seconds. Null when no completions.
|
|
3584
|
+
*/
|
|
3585
|
+
overallAvgTimeToConversion?: number | null;
|
|
3586
|
+
}
|
|
3587
|
+
namespace Segment {
|
|
3588
|
+
interface Segment {
|
|
3589
|
+
/**
|
|
3590
|
+
* Segment key: v:<value>, $other, or $none.
|
|
3591
|
+
*/
|
|
3592
|
+
key: string;
|
|
3593
|
+
kind: 'value' | 'other' | 'not_set';
|
|
3594
|
+
label: string;
|
|
3595
|
+
rank: number;
|
|
3596
|
+
/**
|
|
3597
|
+
* Null for other and not_set.
|
|
3598
|
+
*/
|
|
3599
|
+
value: string | null;
|
|
3600
|
+
}
|
|
3601
|
+
interface Step {
|
|
3602
|
+
conversionCount: number;
|
|
3603
|
+
/**
|
|
3604
|
+
* Step ratio as a percentage. Event-counting ratios may exceed 100%.
|
|
3605
|
+
*/
|
|
3606
|
+
conversionRate: number;
|
|
3607
|
+
/**
|
|
3608
|
+
* Drop-off percentage for participant counting; zero when the previous step volume
|
|
3609
|
+
* is zero. Not a participant loss measure for event counting.
|
|
3610
|
+
*/
|
|
3611
|
+
dropOffRate: number;
|
|
3612
|
+
dropOffSessionIds: Array<string>;
|
|
3613
|
+
dropOffVisitorIds: Array<string>;
|
|
3614
|
+
/**
|
|
3615
|
+
* Ratio to first-step volume as a percentage. Event-counting ratios may exceed
|
|
3616
|
+
* 100%.
|
|
3617
|
+
*/
|
|
3618
|
+
overallConversionRate: number;
|
|
3619
|
+
sessionIds: Array<string>;
|
|
3620
|
+
stepNumber: number;
|
|
3621
|
+
/**
|
|
3622
|
+
* Step volume using the saved counting method: unique people, sessions, or events.
|
|
3623
|
+
*/
|
|
3624
|
+
visitorCount: number;
|
|
3625
|
+
visitorIds: Array<string>;
|
|
3626
|
+
/**
|
|
3627
|
+
* Average incoming hop time from the previous step to this step, in seconds.
|
|
3628
|
+
*/
|
|
3629
|
+
avgTimeToNextStep?: number | null;
|
|
3630
|
+
}
|
|
3631
|
+
}
|
|
3632
|
+
interface Step {
|
|
3633
|
+
conversionCount: number;
|
|
3634
|
+
/**
|
|
3635
|
+
* Step ratio as a percentage. Event-counting ratios may exceed 100%.
|
|
3636
|
+
*/
|
|
3637
|
+
conversionRate: number;
|
|
3638
|
+
/**
|
|
3639
|
+
* Drop-off percentage for participant counting; zero when the previous step volume
|
|
3640
|
+
* is zero. Not a participant loss measure for event counting.
|
|
3641
|
+
*/
|
|
3642
|
+
dropOffRate: number;
|
|
3643
|
+
dropOffSessionIds: Array<string>;
|
|
3644
|
+
dropOffVisitorIds: Array<string>;
|
|
3645
|
+
/**
|
|
3646
|
+
* Ratio to first-step volume as a percentage. Event-counting ratios may exceed
|
|
3647
|
+
* 100%.
|
|
3648
|
+
*/
|
|
3649
|
+
overallConversionRate: number;
|
|
3650
|
+
sessionIds: Array<string>;
|
|
3651
|
+
stepNumber: number;
|
|
3652
|
+
/**
|
|
3653
|
+
* Step volume using the saved counting method: unique people, sessions, or events.
|
|
3654
|
+
*/
|
|
3655
|
+
visitorCount: number;
|
|
3656
|
+
visitorIds: Array<string>;
|
|
3657
|
+
/**
|
|
3658
|
+
* Average incoming hop time from the previous step to this step, in seconds.
|
|
3659
|
+
*/
|
|
3660
|
+
avgTimeToNextStep?: number | null;
|
|
3661
|
+
}
|
|
3662
|
+
}
|
|
3078
3663
|
}
|
|
3079
3664
|
}
|
|
3080
3665
|
interface UnionMember2 {
|
|
@@ -3735,6 +4320,14 @@ export declare namespace DashboardResultsResponse {
|
|
|
3735
4320
|
excludeBots: boolean;
|
|
3736
4321
|
reentry: 'FIRST' | 'BEST';
|
|
3737
4322
|
sourceIds: Array<string>;
|
|
4323
|
+
/**
|
|
4324
|
+
* The requested breakdown; null without one.
|
|
4325
|
+
*/
|
|
4326
|
+
breakdown?: EffectiveContext.Breakdown | null;
|
|
4327
|
+
/**
|
|
4328
|
+
* The compared dates; null without a comparison.
|
|
4329
|
+
*/
|
|
4330
|
+
comparison?: EffectiveContext.Comparison | null;
|
|
3738
4331
|
}
|
|
3739
4332
|
namespace EffectiveContext {
|
|
3740
4333
|
interface Comparison {
|
|
@@ -3830,14 +4423,41 @@ export declare namespace DashboardResultsResponse {
|
|
|
3830
4423
|
timeZone: string;
|
|
3831
4424
|
to: string;
|
|
3832
4425
|
}
|
|
4426
|
+
/**
|
|
4427
|
+
* The requested breakdown; null without one.
|
|
4428
|
+
*/
|
|
4429
|
+
interface Breakdown {
|
|
4430
|
+
atAnchorId: string | null;
|
|
4431
|
+
limit: number;
|
|
4432
|
+
property: Breakdown.Property;
|
|
4433
|
+
stepNumber: number | null;
|
|
4434
|
+
truncated: boolean;
|
|
4435
|
+
/**
|
|
4436
|
+
* Distinct values seen.
|
|
4437
|
+
*/
|
|
4438
|
+
valueCount: number;
|
|
4439
|
+
}
|
|
4440
|
+
namespace Breakdown {
|
|
4441
|
+
interface Property {
|
|
4442
|
+
property: string;
|
|
4443
|
+
type: 'string' | 'number' | 'boolean';
|
|
4444
|
+
path?: Array<string>;
|
|
4445
|
+
}
|
|
4446
|
+
}
|
|
4447
|
+
/**
|
|
4448
|
+
* The compared dates; null without a comparison.
|
|
4449
|
+
*/
|
|
4450
|
+
interface Comparison {
|
|
4451
|
+
from: string;
|
|
4452
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
4453
|
+
to: string;
|
|
4454
|
+
}
|
|
3833
4455
|
}
|
|
3834
4456
|
interface Execution {
|
|
3835
|
-
cacheHit: boolean;
|
|
3836
4457
|
generatedAt: string;
|
|
3837
4458
|
queryId: string;
|
|
3838
4459
|
sampled: boolean;
|
|
3839
4460
|
warnings: Array<Execution.Warning>;
|
|
3840
|
-
cacheAgeMs?: number | null;
|
|
3841
4461
|
}
|
|
3842
4462
|
namespace Execution {
|
|
3843
4463
|
interface Warning {
|
|
@@ -3881,12 +4501,23 @@ export declare namespace DashboardResultsResponse {
|
|
|
3881
4501
|
}
|
|
3882
4502
|
}
|
|
3883
4503
|
interface Series {
|
|
4504
|
+
/**
|
|
4505
|
+
* Period: '' for the selected dates, or the comparison kind (previous_period,
|
|
4506
|
+
* previous_year, custom).
|
|
4507
|
+
*/
|
|
3884
4508
|
id: string;
|
|
3885
4509
|
label: string;
|
|
3886
4510
|
segments: Array<Series.Segment>;
|
|
4511
|
+
/**
|
|
4512
|
+
* The compared dates on a comparison series; null on the selected dates.
|
|
4513
|
+
*/
|
|
4514
|
+
comparison?: Series.Comparison | null;
|
|
3887
4515
|
}
|
|
3888
4516
|
namespace Series {
|
|
3889
4517
|
interface Segment {
|
|
4518
|
+
/**
|
|
4519
|
+
* '' for All traffic (always first), otherwise the breakdown segment key.
|
|
4520
|
+
*/
|
|
3890
4521
|
id: string;
|
|
3891
4522
|
columns: Array<Segment.Column>;
|
|
3892
4523
|
completedCount: string;
|
|
@@ -3900,6 +4531,10 @@ export declare namespace DashboardResultsResponse {
|
|
|
3900
4531
|
topPaths: Array<Segment.TopPath>;
|
|
3901
4532
|
totalPathCount: string;
|
|
3902
4533
|
unfocusedEntryCount: string;
|
|
4534
|
+
/**
|
|
4535
|
+
* The breakdown segment; null on All traffic.
|
|
4536
|
+
*/
|
|
4537
|
+
breakdown?: Segment.Breakdown | null;
|
|
3903
4538
|
observationIncompleteCount?: string | null;
|
|
3904
4539
|
timedOutCount?: string | null;
|
|
3905
4540
|
}
|
|
@@ -3945,6 +4580,9 @@ export declare namespace DashboardResultsResponse {
|
|
|
3945
4580
|
anchorId: string | null;
|
|
3946
4581
|
count: string;
|
|
3947
4582
|
denominator: string;
|
|
4583
|
+
/**
|
|
4584
|
+
* Stable across segments and periods; id is not.
|
|
4585
|
+
*/
|
|
3948
4586
|
key: string;
|
|
3949
4587
|
kind: 'ANCHOR' | 'EVENT' | 'PAGE' | 'TERMINAL' | 'OMITTED_STEPS' | 'OTHER_EVENTS';
|
|
3950
4588
|
matcher: Node.UnionMember0 | null | Node.UnionMember1;
|
|
@@ -4200,6 +4838,30 @@ export declare namespace DashboardResultsResponse {
|
|
|
4200
4838
|
}
|
|
4201
4839
|
}
|
|
4202
4840
|
}
|
|
4841
|
+
/**
|
|
4842
|
+
* The breakdown segment; null on All traffic.
|
|
4843
|
+
*/
|
|
4844
|
+
interface Breakdown {
|
|
4845
|
+
/**
|
|
4846
|
+
* Segment key: v:<value>, $other, or $none.
|
|
4847
|
+
*/
|
|
4848
|
+
key: string;
|
|
4849
|
+
kind: 'value' | 'other' | 'not_set';
|
|
4850
|
+
label: string;
|
|
4851
|
+
rank: number;
|
|
4852
|
+
/**
|
|
4853
|
+
* Null for other and not_set.
|
|
4854
|
+
*/
|
|
4855
|
+
value: string | null;
|
|
4856
|
+
}
|
|
4857
|
+
}
|
|
4858
|
+
/**
|
|
4859
|
+
* The compared dates on a comparison series; null on the selected dates.
|
|
4860
|
+
*/
|
|
4861
|
+
interface Comparison {
|
|
4862
|
+
from: string;
|
|
4863
|
+
kind: 'previous_period' | 'previous_year' | 'custom';
|
|
4864
|
+
to: string;
|
|
4203
4865
|
}
|
|
4204
4866
|
}
|
|
4205
4867
|
interface Timing {
|
|
@@ -4327,7 +4989,7 @@ export interface DashboardCreateParams {
|
|
|
4327
4989
|
name: string;
|
|
4328
4990
|
/**
|
|
4329
4991
|
* Complete UTC date context. Replaces the saved context on PATCH. Funnel and
|
|
4330
|
-
* Journey tiles support up to
|
|
4992
|
+
* Journey tiles support up to 93 inclusive days; Insights retain their native
|
|
4331
4993
|
* range limit.
|
|
4332
4994
|
*/
|
|
4333
4995
|
reportContext: DashboardCreateParams.ReportContext;
|
|
@@ -4356,7 +5018,7 @@ export interface DashboardCreateParams {
|
|
|
4356
5018
|
export declare namespace DashboardCreateParams {
|
|
4357
5019
|
/**
|
|
4358
5020
|
* Complete UTC date context. Replaces the saved context on PATCH. Funnel and
|
|
4359
|
-
* Journey tiles support up to
|
|
5021
|
+
* Journey tiles support up to 93 inclusive days; Insights retain their native
|
|
4360
5022
|
* range limit.
|
|
4361
5023
|
*/
|
|
4362
5024
|
interface ReportContext {
|
|
@@ -4528,7 +5190,7 @@ export interface DashboardUpdateParams {
|
|
|
4528
5190
|
name?: string;
|
|
4529
5191
|
/**
|
|
4530
5192
|
* Complete UTC date context. Replaces the saved context on PATCH. Funnel and
|
|
4531
|
-
* Journey tiles support up to
|
|
5193
|
+
* Journey tiles support up to 93 inclusive days; Insights retain their native
|
|
4532
5194
|
* range limit.
|
|
4533
5195
|
*/
|
|
4534
5196
|
reportContext?: DashboardUpdateParams.ReportContext;
|
|
@@ -4610,7 +5272,7 @@ export declare namespace DashboardUpdateParams {
|
|
|
4610
5272
|
}
|
|
4611
5273
|
/**
|
|
4612
5274
|
* Complete UTC date context. Replaces the saved context on PATCH. Funnel and
|
|
4613
|
-
* Journey tiles support up to
|
|
5275
|
+
* Journey tiles support up to 93 inclusive days; Insights retain their native
|
|
4614
5276
|
* range limit.
|
|
4615
5277
|
*/
|
|
4616
5278
|
interface ReportContext {
|