@walkeros/cli 4.8.1-next-1792019907609 → 4.8.2
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 +62 -6
- package/dist/cli.js +3663 -3665
- package/dist/examples/event.json +1 -1
- package/dist/examples/flow-complete.json +89 -127
- package/dist/examples/flow-complete.md +7 -7
- package/dist/examples/flow-order-complete.json +1 -1
- package/dist/examples/flow.json +1 -1
- package/dist/examples/index.d.ts +34 -4
- package/dist/examples/index.js +108 -134
- package/dist/examples/index.js.map +1 -1
- package/dist/index.d.ts +22 -182
- package/dist/index.js +418 -865
- package/dist/index.js.map +1 -1
- package/dist/validate.d.ts +1 -1
- package/dist/validate.js +80 -79
- package/dist/validate.js.map +1 -1
- package/examples/event.json +1 -1
- package/examples/flow-complete.json +89 -127
- package/examples/flow-complete.md +7 -7
- package/examples/flow-order-complete.json +1 -1
- package/examples/flow.json +1 -1
- package/package.json +30 -30
- package/src/telemetry/flow.json +42 -34
package/dist/examples/index.js
CHANGED
|
@@ -163,13 +163,13 @@ var flow_complete_default = {
|
|
|
163
163
|
properties: {
|
|
164
164
|
data: {
|
|
165
165
|
type: "object",
|
|
166
|
-
required: ["id", "
|
|
166
|
+
required: ["id", "value", "currency"],
|
|
167
167
|
properties: {
|
|
168
168
|
id: {
|
|
169
169
|
type: "string",
|
|
170
170
|
minLength: 1
|
|
171
171
|
},
|
|
172
|
-
|
|
172
|
+
value: {
|
|
173
173
|
type: "number",
|
|
174
174
|
minimum: 0
|
|
175
175
|
},
|
|
@@ -264,25 +264,25 @@ var flow_complete_default = {
|
|
|
264
264
|
bundle: {
|
|
265
265
|
packages: {
|
|
266
266
|
"@walkeros/collector": {
|
|
267
|
-
version: "4.8.
|
|
267
|
+
version: "4.8.2"
|
|
268
268
|
},
|
|
269
269
|
"@walkeros/web-source-cmp-usercentrics": {
|
|
270
|
-
version: "4.8.
|
|
270
|
+
version: "4.8.2"
|
|
271
271
|
},
|
|
272
272
|
"@walkeros/web-source-session": {
|
|
273
|
-
version: "4.8.
|
|
273
|
+
version: "4.8.2"
|
|
274
274
|
},
|
|
275
275
|
"@walkeros/web-source-datalayer": {
|
|
276
|
-
version: "4.8.
|
|
276
|
+
version: "4.8.2"
|
|
277
277
|
},
|
|
278
278
|
"@walkeros/web-source-browser": {
|
|
279
|
-
version: "4.8.
|
|
279
|
+
version: "4.8.2"
|
|
280
280
|
},
|
|
281
281
|
"@walkeros/web-destination-gtag": {
|
|
282
|
-
version: "4.8.
|
|
282
|
+
version: "4.8.2"
|
|
283
283
|
},
|
|
284
284
|
"@walkeros/web-destination-api": {
|
|
285
|
-
version: "4.8.
|
|
285
|
+
version: "4.8.2"
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
288
|
env: {
|
|
@@ -538,15 +538,13 @@ var flow_complete_default = {
|
|
|
538
538
|
dataLayer: {
|
|
539
539
|
add_to_cart: {
|
|
540
540
|
name: "product add",
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
value: 1
|
|
549
|
-
}
|
|
541
|
+
policy: {
|
|
542
|
+
"data.id": "data.items.0.item_id",
|
|
543
|
+
"data.name": "data.items.0.item_name",
|
|
544
|
+
"data.price": "data.items.0.price",
|
|
545
|
+
"data.quantity": {
|
|
546
|
+
key: "data.items.0.quantity",
|
|
547
|
+
value: 1
|
|
550
548
|
}
|
|
551
549
|
}
|
|
552
550
|
}
|
|
@@ -759,7 +757,7 @@ var flow_complete_default = {
|
|
|
759
757
|
action: "complete",
|
|
760
758
|
data: {
|
|
761
759
|
id: "ORD-100",
|
|
762
|
-
|
|
760
|
+
value: 149.8,
|
|
763
761
|
currency: "EUR",
|
|
764
762
|
coupon: "WELCOME10"
|
|
765
763
|
},
|
|
@@ -813,7 +811,7 @@ var flow_complete_default = {
|
|
|
813
811
|
action: "complete",
|
|
814
812
|
data: {
|
|
815
813
|
id: "ORD-100",
|
|
816
|
-
|
|
814
|
+
value: 149.8,
|
|
817
815
|
currency: "EUR",
|
|
818
816
|
coupon: "WELCOME10"
|
|
819
817
|
},
|
|
@@ -989,12 +987,12 @@ var flow_complete_default = {
|
|
|
989
987
|
order: {
|
|
990
988
|
complete: {
|
|
991
989
|
name: "purchase",
|
|
992
|
-
condition: "$code:(event) => event.data && event.data.
|
|
990
|
+
condition: "$code:(event) => event.data && event.data.value > 0",
|
|
993
991
|
data: {
|
|
994
992
|
map: {
|
|
995
993
|
transaction_id: "data.id",
|
|
996
994
|
value: {
|
|
997
|
-
fn: "$code:(event) => Math.round(Number(event.data.
|
|
995
|
+
fn: "$code:(event) => Math.round(Number(event.data.value) * 100) / 100"
|
|
998
996
|
},
|
|
999
997
|
currency: [
|
|
1000
998
|
"data.currency",
|
|
@@ -1036,12 +1034,12 @@ var flow_complete_default = {
|
|
|
1036
1034
|
public: true,
|
|
1037
1035
|
mapping: {
|
|
1038
1036
|
name: "purchase",
|
|
1039
|
-
condition: "$code:(event) => event.data && event.data.
|
|
1037
|
+
condition: "$code:(event) => event.data && event.data.value > 0",
|
|
1040
1038
|
data: {
|
|
1041
1039
|
map: {
|
|
1042
1040
|
transaction_id: "data.id",
|
|
1043
1041
|
value: {
|
|
1044
|
-
fn: "$code:(event) => Math.round(Number(event.data.
|
|
1042
|
+
fn: "$code:(event) => Math.round(Number(event.data.value) * 100) / 100"
|
|
1045
1043
|
},
|
|
1046
1044
|
currency: [
|
|
1047
1045
|
"data.currency",
|
|
@@ -1079,7 +1077,7 @@ var flow_complete_default = {
|
|
|
1079
1077
|
action: "complete",
|
|
1080
1078
|
data: {
|
|
1081
1079
|
id: "ORD-100",
|
|
1082
|
-
|
|
1080
|
+
value: 149.8,
|
|
1083
1081
|
currency: "EUR",
|
|
1084
1082
|
coupon: "WELCOME10"
|
|
1085
1083
|
},
|
|
@@ -1173,12 +1171,12 @@ var flow_complete_default = {
|
|
|
1173
1171
|
description: "The coupon condition leaves the parameter out when the order has none.",
|
|
1174
1172
|
mapping: {
|
|
1175
1173
|
name: "purchase",
|
|
1176
|
-
condition: "$code:(event) => event.data && event.data.
|
|
1174
|
+
condition: "$code:(event) => event.data && event.data.value > 0",
|
|
1177
1175
|
data: {
|
|
1178
1176
|
map: {
|
|
1179
1177
|
transaction_id: "data.id",
|
|
1180
1178
|
value: {
|
|
1181
|
-
fn: "$code:(event) => Math.round(Number(event.data.
|
|
1179
|
+
fn: "$code:(event) => Math.round(Number(event.data.value) * 100) / 100"
|
|
1182
1180
|
},
|
|
1183
1181
|
currency: [
|
|
1184
1182
|
"data.currency",
|
|
@@ -1216,7 +1214,7 @@ var flow_complete_default = {
|
|
|
1216
1214
|
action: "complete",
|
|
1217
1215
|
data: {
|
|
1218
1216
|
id: "ORD-101",
|
|
1219
|
-
|
|
1217
|
+
value: 129.9,
|
|
1220
1218
|
currency: "EUR"
|
|
1221
1219
|
},
|
|
1222
1220
|
id: "ev-order-complete",
|
|
@@ -1649,7 +1647,7 @@ var flow_complete_default = {
|
|
|
1649
1647
|
action: "complete",
|
|
1650
1648
|
data: {
|
|
1651
1649
|
id: "ORD-100",
|
|
1652
|
-
|
|
1650
|
+
value: 149.8,
|
|
1653
1651
|
currency: "EUR",
|
|
1654
1652
|
coupon: "WELCOME10"
|
|
1655
1653
|
},
|
|
@@ -1700,7 +1698,7 @@ var flow_complete_default = {
|
|
|
1700
1698
|
[
|
|
1701
1699
|
"sendWeb",
|
|
1702
1700
|
"http://localhost:8080/collect",
|
|
1703
|
-
'[{"name":"order complete","data":{"id":"ORD-100","
|
|
1701
|
+
'[{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR","coupon":"WELCOME10"},"context":{},"globals":{"site":"shop","language":"en","pageGroup":"checkout"},"custom":{},"user":{"device":"d3v1c3","session":"s3ss10n","id":"cust-42","email":"jane@example.com"},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Trail Runner","price":129.9,"quantity":1}},{"entity":"product","data":{"id":"SKU-2","name":"Running Socks","price":9.95,"quantity":2}}],"consent":{"functional":true,"marketing":true},"id":"ev-order-complete","trigger":"load","entity":"order","action":"complete","timestamp":1700000000000,"source":{"type":"browser","platform":"web","url":"https://www.example.com/checkout/thanks","count":1,"release":{"web":"4.6.1"}}}]',
|
|
1704
1702
|
{
|
|
1705
1703
|
transport: "beacon"
|
|
1706
1704
|
}
|
|
@@ -1716,7 +1714,7 @@ var flow_complete_default = {
|
|
|
1716
1714
|
action: "complete",
|
|
1717
1715
|
data: {
|
|
1718
1716
|
id: "ORD-100",
|
|
1719
|
-
|
|
1717
|
+
value: 149.8,
|
|
1720
1718
|
currency: "EUR",
|
|
1721
1719
|
coupon: "WELCOME10"
|
|
1722
1720
|
},
|
|
@@ -1766,7 +1764,7 @@ var flow_complete_default = {
|
|
|
1766
1764
|
[
|
|
1767
1765
|
"sendWeb",
|
|
1768
1766
|
"http://localhost:8080/collect",
|
|
1769
|
-
'[{"name":"order complete","data":{"id":"ORD-100","
|
|
1767
|
+
'[{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR","coupon":"WELCOME10"},"context":{},"globals":{"site":"shop","language":"en","pageGroup":"checkout"},"custom":{},"user":{"device":"d3v1c3","session":"s3ss10n","id":"cust-42"},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Trail Runner","price":129.9,"quantity":1}},{"entity":"product","data":{"id":"SKU-2","name":"Running Socks","price":9.95,"quantity":2}}],"consent":{"functional":true},"id":"ev-order-complete","trigger":"load","entity":"order","action":"complete","timestamp":1700000000000,"source":{"type":"browser","platform":"web","url":"https://www.example.com/checkout/thanks","count":1,"release":{"web":"4.6.1"}}}]',
|
|
1770
1768
|
{
|
|
1771
1769
|
transport: "beacon"
|
|
1772
1770
|
}
|
|
@@ -1788,40 +1786,40 @@ var flow_complete_default = {
|
|
|
1788
1786
|
bundle: {
|
|
1789
1787
|
packages: {
|
|
1790
1788
|
"@walkeros/collector": {
|
|
1791
|
-
version: "4.8.
|
|
1789
|
+
version: "4.8.2"
|
|
1792
1790
|
},
|
|
1793
1791
|
"@walkeros/server-source-express": {
|
|
1794
|
-
version: "4.8.
|
|
1792
|
+
version: "4.8.2"
|
|
1795
1793
|
},
|
|
1796
1794
|
"@walkeros/transformer-ga4": {
|
|
1797
|
-
version: "4.8.
|
|
1795
|
+
version: "4.8.2"
|
|
1798
1796
|
},
|
|
1799
1797
|
"@walkeros/transformer-validate": {
|
|
1800
|
-
version: "4.8.
|
|
1798
|
+
version: "4.8.2"
|
|
1801
1799
|
},
|
|
1802
1800
|
"@walkeros/server-transformer-bot": {
|
|
1803
|
-
version: "4.8.
|
|
1801
|
+
version: "4.8.2"
|
|
1804
1802
|
},
|
|
1805
1803
|
"@walkeros/server-transformer-fingerprint": {
|
|
1806
|
-
version: "4.8.
|
|
1804
|
+
version: "4.8.2"
|
|
1807
1805
|
},
|
|
1808
1806
|
"@walkeros/server-transformer-file": {
|
|
1809
|
-
version: "4.8.
|
|
1807
|
+
version: "4.8.2"
|
|
1810
1808
|
},
|
|
1811
1809
|
"@walkeros/server-store-fs": {
|
|
1812
|
-
version: "4.8.
|
|
1810
|
+
version: "4.8.2"
|
|
1813
1811
|
},
|
|
1814
1812
|
"@walkeros/server-destination-gcp": {
|
|
1815
|
-
version: "4.8.
|
|
1813
|
+
version: "4.8.2"
|
|
1816
1814
|
},
|
|
1817
1815
|
"@walkeros/server-destination-meta": {
|
|
1818
|
-
version: "4.8.
|
|
1816
|
+
version: "4.8.2"
|
|
1819
1817
|
},
|
|
1820
1818
|
"@walkeros/server-destination-piwikpro": {
|
|
1821
|
-
version: "4.8.
|
|
1819
|
+
version: "4.8.2"
|
|
1822
1820
|
},
|
|
1823
1821
|
"@walkeros/server-destination-datamanager": {
|
|
1824
|
-
version: "4.8.
|
|
1822
|
+
version: "4.8.2"
|
|
1825
1823
|
}
|
|
1826
1824
|
}
|
|
1827
1825
|
}
|
|
@@ -1989,7 +1987,7 @@ var flow_complete_default = {
|
|
|
1989
1987
|
action: "complete",
|
|
1990
1988
|
data: {
|
|
1991
1989
|
id: "ORD-100",
|
|
1992
|
-
|
|
1990
|
+
value: 149.8,
|
|
1993
1991
|
currency: "EUR",
|
|
1994
1992
|
coupon: "WELCOME10"
|
|
1995
1993
|
},
|
|
@@ -2046,7 +2044,7 @@ var flow_complete_default = {
|
|
|
2046
2044
|
action: "complete",
|
|
2047
2045
|
data: {
|
|
2048
2046
|
id: "ORD-100",
|
|
2049
|
-
|
|
2047
|
+
value: 149.8,
|
|
2050
2048
|
currency: "EUR",
|
|
2051
2049
|
coupon: "WELCOME10"
|
|
2052
2050
|
},
|
|
@@ -2140,7 +2138,7 @@ var flow_complete_default = {
|
|
|
2140
2138
|
data: {
|
|
2141
2139
|
id: "SUB-77",
|
|
2142
2140
|
currency: "EUR",
|
|
2143
|
-
|
|
2141
|
+
value: 59.9
|
|
2144
2142
|
},
|
|
2145
2143
|
user: {
|
|
2146
2144
|
device: "cid-9",
|
|
@@ -2430,42 +2428,6 @@ var flow_complete_default = {
|
|
|
2430
2428
|
},
|
|
2431
2429
|
next: {
|
|
2432
2430
|
stop: true
|
|
2433
|
-
},
|
|
2434
|
-
examples: {
|
|
2435
|
-
walkerJs: {
|
|
2436
|
-
title: "Serve walker.js first party",
|
|
2437
|
-
description: "GET /walker.js is answered from the assets store with the configured headers; the step returns false and its next stops, so a script request never becomes an event. Proven over HTTP in the flow test.",
|
|
2438
|
-
public: true,
|
|
2439
|
-
in: {
|
|
2440
|
-
name: "page view",
|
|
2441
|
-
entity: "page",
|
|
2442
|
-
action: "view",
|
|
2443
|
-
data: {
|
|
2444
|
-
domain: "www.example.com",
|
|
2445
|
-
title: "Trail Runner",
|
|
2446
|
-
id: "/product/trail-runner"
|
|
2447
|
-
},
|
|
2448
|
-
id: "ev-page-view",
|
|
2449
|
-
trigger: "load",
|
|
2450
|
-
timestamp: 17e11,
|
|
2451
|
-
consent: {
|
|
2452
|
-
functional: true,
|
|
2453
|
-
marketing: true
|
|
2454
|
-
},
|
|
2455
|
-
globals: {
|
|
2456
|
-
language: "en",
|
|
2457
|
-
pageGroup: "product"
|
|
2458
|
-
},
|
|
2459
|
-
user: {
|
|
2460
|
-
device: "d3v1c3",
|
|
2461
|
-
session: "s3ss10n"
|
|
2462
|
-
},
|
|
2463
|
-
source: {
|
|
2464
|
-
type: "express",
|
|
2465
|
-
platform: "server"
|
|
2466
|
-
}
|
|
2467
|
-
}
|
|
2468
|
-
}
|
|
2469
2431
|
}
|
|
2470
2432
|
},
|
|
2471
2433
|
dedup: {
|
|
@@ -2490,7 +2452,7 @@ var flow_complete_default = {
|
|
|
2490
2452
|
action: "complete",
|
|
2491
2453
|
data: {
|
|
2492
2454
|
id: "ORD-100",
|
|
2493
|
-
|
|
2455
|
+
value: 149.8,
|
|
2494
2456
|
currency: "EUR",
|
|
2495
2457
|
coupon: "WELCOME10"
|
|
2496
2458
|
},
|
|
@@ -2547,7 +2509,7 @@ var flow_complete_default = {
|
|
|
2547
2509
|
action: "complete",
|
|
2548
2510
|
data: {
|
|
2549
2511
|
id: "ORD-100",
|
|
2550
|
-
|
|
2512
|
+
value: 149.8,
|
|
2551
2513
|
currency: "EUR",
|
|
2552
2514
|
coupon: "WELCOME10"
|
|
2553
2515
|
},
|
|
@@ -2620,7 +2582,7 @@ var flow_complete_default = {
|
|
|
2620
2582
|
action: "complete",
|
|
2621
2583
|
data: {
|
|
2622
2584
|
id: "ORD-100",
|
|
2623
|
-
|
|
2585
|
+
value: 149.8,
|
|
2624
2586
|
currency: "EUR",
|
|
2625
2587
|
coupon: "WELCOME10"
|
|
2626
2588
|
},
|
|
@@ -2677,7 +2639,7 @@ var flow_complete_default = {
|
|
|
2677
2639
|
action: "complete",
|
|
2678
2640
|
data: {
|
|
2679
2641
|
id: "ORD-100",
|
|
2680
|
-
|
|
2642
|
+
value: 149.8,
|
|
2681
2643
|
currency: "EUR",
|
|
2682
2644
|
coupon: "WELCOME10"
|
|
2683
2645
|
},
|
|
@@ -2744,7 +2706,7 @@ var flow_complete_default = {
|
|
|
2744
2706
|
action: "complete",
|
|
2745
2707
|
data: {
|
|
2746
2708
|
id: "ORD-100",
|
|
2747
|
-
|
|
2709
|
+
value: 149.8,
|
|
2748
2710
|
currency: "EUR",
|
|
2749
2711
|
coupon: "WELCOME10"
|
|
2750
2712
|
},
|
|
@@ -2801,7 +2763,7 @@ var flow_complete_default = {
|
|
|
2801
2763
|
action: "complete",
|
|
2802
2764
|
data: {
|
|
2803
2765
|
id: "ORD-100",
|
|
2804
|
-
|
|
2766
|
+
value: 149.8,
|
|
2805
2767
|
currency: "EUR",
|
|
2806
2768
|
coupon: "WELCOME10"
|
|
2807
2769
|
},
|
|
@@ -2863,7 +2825,7 @@ var flow_complete_default = {
|
|
|
2863
2825
|
action: "complete",
|
|
2864
2826
|
data: {
|
|
2865
2827
|
id: "ORD-100",
|
|
2866
|
-
|
|
2828
|
+
value: 149.8,
|
|
2867
2829
|
currency: "EUR",
|
|
2868
2830
|
coupon: "WELCOME10"
|
|
2869
2831
|
},
|
|
@@ -2920,7 +2882,7 @@ var flow_complete_default = {
|
|
|
2920
2882
|
action: "complete",
|
|
2921
2883
|
data: {
|
|
2922
2884
|
id: "ORD-100",
|
|
2923
|
-
|
|
2885
|
+
value: 149.8,
|
|
2924
2886
|
currency: "EUR",
|
|
2925
2887
|
coupon: "WELCOME10"
|
|
2926
2888
|
},
|
|
@@ -3014,7 +2976,7 @@ var flow_complete_default = {
|
|
|
3014
2976
|
action: "complete",
|
|
3015
2977
|
data: {
|
|
3016
2978
|
id: "ORD-100",
|
|
3017
|
-
|
|
2979
|
+
value: 149.8,
|
|
3018
2980
|
currency: "EUR",
|
|
3019
2981
|
coupon: "WELCOME10"
|
|
3020
2982
|
},
|
|
@@ -3074,7 +3036,7 @@ var flow_complete_default = {
|
|
|
3074
3036
|
action: "complete",
|
|
3075
3037
|
data: {
|
|
3076
3038
|
id: "ORD-100",
|
|
3077
|
-
|
|
3039
|
+
value: 149.8,
|
|
3078
3040
|
currency: "EUR",
|
|
3079
3041
|
coupon: "WELCOME10"
|
|
3080
3042
|
},
|
|
@@ -3157,7 +3119,7 @@ var flow_complete_default = {
|
|
|
3157
3119
|
action: "complete",
|
|
3158
3120
|
data: {
|
|
3159
3121
|
id: "ORD-100",
|
|
3160
|
-
|
|
3122
|
+
value: 149.8,
|
|
3161
3123
|
currency: "EUR",
|
|
3162
3124
|
coupon: "WELCOME10"
|
|
3163
3125
|
},
|
|
@@ -3217,7 +3179,7 @@ var flow_complete_default = {
|
|
|
3217
3179
|
action: "complete",
|
|
3218
3180
|
data: {
|
|
3219
3181
|
id: "ORD-100",
|
|
3220
|
-
|
|
3182
|
+
value: 149.8,
|
|
3221
3183
|
currency: "EUR",
|
|
3222
3184
|
coupon: "WELCOME10"
|
|
3223
3185
|
},
|
|
@@ -3388,7 +3350,7 @@ var flow_complete_default = {
|
|
|
3388
3350
|
action: "complete",
|
|
3389
3351
|
data: {
|
|
3390
3352
|
id: "ORD-100",
|
|
3391
|
-
|
|
3353
|
+
value: 149.8,
|
|
3392
3354
|
currency: "EUR",
|
|
3393
3355
|
coupon: "WELCOME10"
|
|
3394
3356
|
},
|
|
@@ -3448,7 +3410,7 @@ var flow_complete_default = {
|
|
|
3448
3410
|
action: "complete",
|
|
3449
3411
|
data: {
|
|
3450
3412
|
id: "ORD-100",
|
|
3451
|
-
|
|
3413
|
+
value: 149.8,
|
|
3452
3414
|
currency: "EUR",
|
|
3453
3415
|
coupon: "WELCOME10"
|
|
3454
3416
|
},
|
|
@@ -3523,7 +3485,7 @@ var flow_complete_default = {
|
|
|
3523
3485
|
action: "complete",
|
|
3524
3486
|
data: {
|
|
3525
3487
|
id: "ORD-100",
|
|
3526
|
-
|
|
3488
|
+
value: 149.8,
|
|
3527
3489
|
currency: "EUR",
|
|
3528
3490
|
coupon: "WELCOME10"
|
|
3529
3491
|
},
|
|
@@ -3584,7 +3546,7 @@ var flow_complete_default = {
|
|
|
3584
3546
|
action: "complete",
|
|
3585
3547
|
data: {
|
|
3586
3548
|
id: "ORD-100",
|
|
3587
|
-
|
|
3549
|
+
value: 149.8,
|
|
3588
3550
|
currency: "EUR",
|
|
3589
3551
|
coupon: "WELCOME10"
|
|
3590
3552
|
},
|
|
@@ -3649,7 +3611,7 @@ var flow_complete_default = {
|
|
|
3649
3611
|
action: "complete",
|
|
3650
3612
|
data: {
|
|
3651
3613
|
id: "ORD-100",
|
|
3652
|
-
|
|
3614
|
+
value: 149.8,
|
|
3653
3615
|
currency: "EUR",
|
|
3654
3616
|
coupon: "WELCOME10"
|
|
3655
3617
|
},
|
|
@@ -3708,7 +3670,7 @@ var flow_complete_default = {
|
|
|
3708
3670
|
action: "complete",
|
|
3709
3671
|
data: {
|
|
3710
3672
|
id: "ORD-100",
|
|
3711
|
-
|
|
3673
|
+
value: 149.8,
|
|
3712
3674
|
currency: "EUR",
|
|
3713
3675
|
coupon: "WELCOME10"
|
|
3714
3676
|
},
|
|
@@ -3798,7 +3760,7 @@ var flow_complete_default = {
|
|
|
3798
3760
|
action: "complete",
|
|
3799
3761
|
data: {
|
|
3800
3762
|
id: "ORD-100",
|
|
3801
|
-
|
|
3763
|
+
value: 149.8,
|
|
3802
3764
|
currency: "EUR",
|
|
3803
3765
|
coupon: "WELCOME10"
|
|
3804
3766
|
},
|
|
@@ -3860,7 +3822,7 @@ var flow_complete_default = {
|
|
|
3860
3822
|
action: "complete",
|
|
3861
3823
|
data: {
|
|
3862
3824
|
id: "ORD-100",
|
|
3863
|
-
|
|
3825
|
+
value: 149.8,
|
|
3864
3826
|
currency: "EUR",
|
|
3865
3827
|
coupon: "WELCOME10"
|
|
3866
3828
|
},
|
|
@@ -3965,7 +3927,7 @@ var flow_complete_default = {
|
|
|
3965
3927
|
action: "complete",
|
|
3966
3928
|
data: {
|
|
3967
3929
|
id: "ORD-100",
|
|
3968
|
-
|
|
3930
|
+
value: 149.8,
|
|
3969
3931
|
currency: "EUR",
|
|
3970
3932
|
coupon: "WELCOME10"
|
|
3971
3933
|
},
|
|
@@ -4028,7 +3990,7 @@ var flow_complete_default = {
|
|
|
4028
3990
|
action: "complete",
|
|
4029
3991
|
data: {
|
|
4030
3992
|
id: "ORD-100",
|
|
4031
|
-
|
|
3993
|
+
value: 149.8,
|
|
4032
3994
|
currency: "EUR",
|
|
4033
3995
|
coupon: "WELCOME10"
|
|
4034
3996
|
},
|
|
@@ -4109,7 +4071,7 @@ var flow_complete_default = {
|
|
|
4109
4071
|
action: "complete",
|
|
4110
4072
|
data: {
|
|
4111
4073
|
id: "ORD-100",
|
|
4112
|
-
|
|
4074
|
+
value: 149.8,
|
|
4113
4075
|
currency: "EUR",
|
|
4114
4076
|
coupon: "WELCOME10"
|
|
4115
4077
|
},
|
|
@@ -4172,7 +4134,7 @@ var flow_complete_default = {
|
|
|
4172
4134
|
action: "complete",
|
|
4173
4135
|
data: {
|
|
4174
4136
|
id: "ORD-100",
|
|
4175
|
-
|
|
4137
|
+
value: 149.8,
|
|
4176
4138
|
currency: "EUR",
|
|
4177
4139
|
coupon: "WELCOME10"
|
|
4178
4140
|
},
|
|
@@ -4277,7 +4239,7 @@ var flow_complete_default = {
|
|
|
4277
4239
|
action: "complete",
|
|
4278
4240
|
data: {
|
|
4279
4241
|
id: "ORD-100",
|
|
4280
|
-
|
|
4242
|
+
value: 149.8,
|
|
4281
4243
|
currency: "EUR",
|
|
4282
4244
|
coupon: "WELCOME10"
|
|
4283
4245
|
},
|
|
@@ -4334,7 +4296,7 @@ var flow_complete_default = {
|
|
|
4334
4296
|
[
|
|
4335
4297
|
"PubSub.topic.publishMessage",
|
|
4336
4298
|
{
|
|
4337
|
-
data: '{"name":"order complete","data":{"id":"ORD-100","
|
|
4299
|
+
data: '{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR","coupon":"WELCOME10"},"context":{},"globals":{"language":"en","pageGroup":"checkout"},"custom":{},"user":{"device":"d3v1c3","session":"s3ss10n","id":"cust-42","email":"4cdea64501d6109d0a25750a7ce1d5c87e5fc927c61b674f191b73e28b582c93","hash":"7f1b2860213c9d3d","botScore":0,"botCategory":"human","ltv":420,"segment":"loyal"},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Trail Runner","price":129.9,"quantity":1}},{"entity":"product","data":{"id":"SKU-2","name":"Running Socks","price":9.95,"quantity":2}}],"consent":{"functional":true,"marketing":true},"id":"ev-order-complete","trigger":"load","entity":"order","action":"complete","timestamp":1700000000000,"timing":0,"source":{"type":"express","platform":"server","url":"https://www.example.com/checkout/thanks","valid":true,"count":1,"release":{"server":"4.6.1"}}}'
|
|
4338
4300
|
}
|
|
4339
4301
|
]
|
|
4340
4302
|
]
|
|
@@ -4384,7 +4346,7 @@ var flow_complete_default = {
|
|
|
4384
4346
|
},
|
|
4385
4347
|
data: {
|
|
4386
4348
|
map: {
|
|
4387
|
-
value: "data.
|
|
4349
|
+
value: "data.value",
|
|
4388
4350
|
currency: [
|
|
4389
4351
|
"data.currency",
|
|
4390
4352
|
{
|
|
@@ -4434,7 +4396,7 @@ var flow_complete_default = {
|
|
|
4434
4396
|
},
|
|
4435
4397
|
data: {
|
|
4436
4398
|
map: {
|
|
4437
|
-
value: "data.
|
|
4399
|
+
value: "data.value",
|
|
4438
4400
|
currency: [
|
|
4439
4401
|
"data.currency",
|
|
4440
4402
|
{
|
|
@@ -4451,7 +4413,7 @@ var flow_complete_default = {
|
|
|
4451
4413
|
action: "complete",
|
|
4452
4414
|
data: {
|
|
4453
4415
|
id: "ORD-100",
|
|
4454
|
-
|
|
4416
|
+
value: 149.8,
|
|
4455
4417
|
currency: "EUR",
|
|
4456
4418
|
coupon: "WELCOME10"
|
|
4457
4419
|
},
|
|
@@ -4593,7 +4555,7 @@ var flow_complete_default = {
|
|
|
4593
4555
|
name: "ecommerceOrder",
|
|
4594
4556
|
settings: {
|
|
4595
4557
|
goalId: "$env.PIWIK_ORDER_GOAL:6a0f4c1e-3b2d-4e8f-a7c9-1d2e3f4a5b6c",
|
|
4596
|
-
goalValue: "data.
|
|
4558
|
+
goalValue: "data.value"
|
|
4597
4559
|
},
|
|
4598
4560
|
data: {
|
|
4599
4561
|
set: [
|
|
@@ -4616,7 +4578,7 @@ var flow_complete_default = {
|
|
|
4616
4578
|
{
|
|
4617
4579
|
map: {
|
|
4618
4580
|
orderId: "data.id",
|
|
4619
|
-
grandTotal: "data.
|
|
4581
|
+
grandTotal: "data.value"
|
|
4620
4582
|
}
|
|
4621
4583
|
}
|
|
4622
4584
|
]
|
|
@@ -4639,7 +4601,7 @@ var flow_complete_default = {
|
|
|
4639
4601
|
name: "ecommerceOrder",
|
|
4640
4602
|
settings: {
|
|
4641
4603
|
goalId: "$env.PIWIK_ORDER_GOAL:6a0f4c1e-3b2d-4e8f-a7c9-1d2e3f4a5b6c",
|
|
4642
|
-
goalValue: "data.
|
|
4604
|
+
goalValue: "data.value"
|
|
4643
4605
|
},
|
|
4644
4606
|
data: {
|
|
4645
4607
|
set: [
|
|
@@ -4662,7 +4624,7 @@ var flow_complete_default = {
|
|
|
4662
4624
|
{
|
|
4663
4625
|
map: {
|
|
4664
4626
|
orderId: "data.id",
|
|
4665
|
-
grandTotal: "data.
|
|
4627
|
+
grandTotal: "data.value"
|
|
4666
4628
|
}
|
|
4667
4629
|
}
|
|
4668
4630
|
]
|
|
@@ -4674,7 +4636,7 @@ var flow_complete_default = {
|
|
|
4674
4636
|
action: "complete",
|
|
4675
4637
|
data: {
|
|
4676
4638
|
id: "ORD-100",
|
|
4677
|
-
|
|
4639
|
+
value: 149.8,
|
|
4678
4640
|
currency: "EUR",
|
|
4679
4641
|
coupon: "WELCOME10"
|
|
4680
4642
|
},
|
|
@@ -4766,7 +4728,7 @@ var flow_complete_default = {
|
|
|
4766
4728
|
data: {
|
|
4767
4729
|
map: {
|
|
4768
4730
|
transactionId: "data.id",
|
|
4769
|
-
conversionValue: "data.
|
|
4731
|
+
conversionValue: "data.value",
|
|
4770
4732
|
currency: [
|
|
4771
4733
|
"data.currency",
|
|
4772
4734
|
{
|
|
@@ -4800,7 +4762,7 @@ var flow_complete_default = {
|
|
|
4800
4762
|
data: {
|
|
4801
4763
|
map: {
|
|
4802
4764
|
transactionId: "data.id",
|
|
4803
|
-
conversionValue: "data.
|
|
4765
|
+
conversionValue: "data.value",
|
|
4804
4766
|
currency: [
|
|
4805
4767
|
"data.currency",
|
|
4806
4768
|
{
|
|
@@ -4817,7 +4779,7 @@ var flow_complete_default = {
|
|
|
4817
4779
|
action: "complete",
|
|
4818
4780
|
data: {
|
|
4819
4781
|
id: "ORD-100",
|
|
4820
|
-
|
|
4782
|
+
value: 149.8,
|
|
4821
4783
|
currency: "EUR",
|
|
4822
4784
|
coupon: "WELCOME10",
|
|
4823
4785
|
session: {
|
|
@@ -4898,13 +4860,13 @@ var flow_complete_default = {
|
|
|
4898
4860
|
bundle: {
|
|
4899
4861
|
packages: {
|
|
4900
4862
|
"@walkeros/collector": {
|
|
4901
|
-
version: "4.8.
|
|
4863
|
+
version: "4.8.2"
|
|
4902
4864
|
},
|
|
4903
4865
|
"@walkeros/server-source-gcp": {
|
|
4904
|
-
version: "4.8.
|
|
4866
|
+
version: "4.8.2"
|
|
4905
4867
|
},
|
|
4906
4868
|
"@walkeros/server-destination-gcp": {
|
|
4907
|
-
version: "4.8.
|
|
4869
|
+
version: "4.8.2"
|
|
4908
4870
|
}
|
|
4909
4871
|
}
|
|
4910
4872
|
}
|
|
@@ -4936,7 +4898,7 @@ var flow_complete_default = {
|
|
|
4936
4898
|
public: true,
|
|
4937
4899
|
in: {
|
|
4938
4900
|
id: "msg-1",
|
|
4939
|
-
dataString: '{"name":"order complete","entity":"order","action":"complete","data":{"id":"ORD-100","
|
|
4901
|
+
dataString: '{"name":"order complete","entity":"order","action":"complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR","coupon":"WELCOME10"},"id":"ev-order-complete","trigger":"load","timestamp":1700000000000,"consent":{"functional":true,"marketing":true},"globals":{"language":"en","pageGroup":"checkout"},"user":{"device":"d3v1c3","session":"s3ss10n","id":"cust-42","email":"31b4ae339b671c9e81adbe27e74b38f09a4756300de6b81998c83a3964cbb849","hash":"5f1c0a9e7d3b2c41","botScore":0,"botCategory":"human","ltv":420,"segment":"loyal"},"source":{"type":"express","platform":"server","url":"https://www.example.com/checkout/thanks","valid":true},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Trail Runner","price":129.9,"quantity":1}},{"entity":"product","data":{"id":"SKU-2","name":"Running Socks","price":9.95,"quantity":2}}]}',
|
|
4940
4902
|
attributes: {}
|
|
4941
4903
|
},
|
|
4942
4904
|
out: [
|
|
@@ -4948,7 +4910,7 @@ var flow_complete_default = {
|
|
|
4948
4910
|
action: "complete",
|
|
4949
4911
|
data: {
|
|
4950
4912
|
id: "ORD-100",
|
|
4951
|
-
|
|
4913
|
+
value: 149.8,
|
|
4952
4914
|
currency: "EUR",
|
|
4953
4915
|
coupon: "WELCOME10"
|
|
4954
4916
|
},
|
|
@@ -5040,7 +5002,7 @@ var flow_complete_default = {
|
|
|
5040
5002
|
action: "complete",
|
|
5041
5003
|
data: {
|
|
5042
5004
|
id: "ORD-100",
|
|
5043
|
-
|
|
5005
|
+
value: 149.8,
|
|
5044
5006
|
currency: "EUR",
|
|
5045
5007
|
coupon: "WELCOME10"
|
|
5046
5008
|
},
|
|
@@ -5098,7 +5060,7 @@ var flow_complete_default = {
|
|
|
5098
5060
|
[
|
|
5099
5061
|
{
|
|
5100
5062
|
name: "order complete",
|
|
5101
|
-
data: '{"id":"ORD-100","
|
|
5063
|
+
data: '{"id":"ORD-100","value":149.8,"currency":"EUR","coupon":"WELCOME10"}',
|
|
5102
5064
|
context: null,
|
|
5103
5065
|
globals: '{"language":"en","pageGroup":"checkout"}',
|
|
5104
5066
|
custom: null,
|
|
@@ -5555,7 +5517,7 @@ var teaching = {
|
|
|
5555
5517
|
note: "examples are the contract of a step: this in gives this out, checked by simulation.",
|
|
5556
5518
|
docs: [{ page: "getting-started/flow/step-examples" }],
|
|
5557
5519
|
cli: [
|
|
5558
|
-
`walkeros push ${FILE} -f web -e '{"name":"order complete","data":{"id":"ORD-100","
|
|
5520
|
+
`walkeros push ${FILE} -f web -e '{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR"}}' --simulate destination.ga4`
|
|
5559
5521
|
]
|
|
5560
5522
|
},
|
|
5561
5523
|
"example-title": {
|
|
@@ -5679,7 +5641,7 @@ var teaching = {
|
|
|
5679
5641
|
chapter: "mapping",
|
|
5680
5642
|
level: "intermediate",
|
|
5681
5643
|
useCases: [],
|
|
5682
|
-
note: "fn computes a value from the event, here the
|
|
5644
|
+
note: "fn computes a value from the event, here the order value rounded to cents. fn and key are alternatives: next to a key, fn never runs.",
|
|
5683
5645
|
docs: []
|
|
5684
5646
|
},
|
|
5685
5647
|
"value-loop": {
|
|
@@ -5729,7 +5691,7 @@ var teaching = {
|
|
|
5729
5691
|
chapter: "mapping",
|
|
5730
5692
|
level: "intermediate",
|
|
5731
5693
|
useCases: [],
|
|
5732
|
-
note: "A rule condition skips the rule, here for orders without a
|
|
5694
|
+
note: "A rule condition skips the rule, here for orders without a value.",
|
|
5733
5695
|
docs: []
|
|
5734
5696
|
},
|
|
5735
5697
|
"rule-settings": {
|
|
@@ -6551,7 +6513,6 @@ var teaching = {
|
|
|
6551
6513
|
useCases: ["script-serving"],
|
|
6552
6514
|
note: "walker.js is served first party from the server flow.",
|
|
6553
6515
|
docs: [{ page: "transformers/file" }],
|
|
6554
|
-
example: { step: "file", name: "walkerJs" },
|
|
6555
6516
|
cli: [
|
|
6556
6517
|
`walkeros bundle ${FILE} -f web -o packages/cli/examples/shared/walker.js`
|
|
6557
6518
|
]
|
|
@@ -6852,7 +6813,12 @@ var flowCompleteCoverage = {
|
|
|
6852
6813
|
code: {
|
|
6853
6814
|
push: "code-push",
|
|
6854
6815
|
type: "code-type",
|
|
6855
|
-
init: { excluded: "the inline pageGroup step needs no setup" }
|
|
6816
|
+
init: { excluded: "the inline pageGroup step needs no setup" },
|
|
6817
|
+
pushBatch: {
|
|
6818
|
+
excluded: "the inline pageGroup step is a transformer; batching is a destination concern"
|
|
6819
|
+
},
|
|
6820
|
+
on: { excluded: "the inline pageGroup step reacts to no collector event" },
|
|
6821
|
+
destroy: { excluded: "the inline pageGroup step holds nothing to release" }
|
|
6856
6822
|
},
|
|
6857
6823
|
source: {
|
|
6858
6824
|
package: "step-package",
|
|
@@ -6926,7 +6892,9 @@ var flowCompleteCoverage = {
|
|
|
6926
6892
|
trigger: "example-trigger",
|
|
6927
6893
|
mapping: "example-mapping",
|
|
6928
6894
|
out: "example-out",
|
|
6929
|
-
command: "example-command"
|
|
6895
|
+
command: "example-command",
|
|
6896
|
+
outcome: RUNTIME("outcome (a failure example, public: false)"),
|
|
6897
|
+
respond: RUNTIME("respond (a failure example, public: false)")
|
|
6930
6898
|
},
|
|
6931
6899
|
sourceConfig: {
|
|
6932
6900
|
settings: "step-settings",
|
|
@@ -6991,6 +6959,9 @@ var flowCompleteCoverage = {
|
|
|
6991
6959
|
state: "state-set",
|
|
6992
6960
|
init: RUNTIME("init"),
|
|
6993
6961
|
disabled: RUNTIME("disabled"),
|
|
6962
|
+
timeout: {
|
|
6963
|
+
excluded: "the transformers here initialize at once; the default 10 s applies"
|
|
6964
|
+
},
|
|
6994
6965
|
mock: RUNTIME("mock"),
|
|
6995
6966
|
chainMocks: RUNTIME("chainMocks"),
|
|
6996
6967
|
mapping: "ga4-consent-map"
|
|
@@ -7018,6 +6989,9 @@ var flowCompleteCoverage = {
|
|
|
7018
6989
|
queueMax: {
|
|
7019
6990
|
excluded: "the default bound fits; dlqMax is the knob this file turns"
|
|
7020
6991
|
},
|
|
6992
|
+
consentDenied: {
|
|
6993
|
+
excluded: "walkeros bundle sets it for server flows; this web example keeps the default queue"
|
|
6994
|
+
},
|
|
7021
6995
|
name: RUNTIME("name"),
|
|
7022
6996
|
release: {
|
|
7023
6997
|
excluded: "set by walkeros bundle --release, never written by hand"
|
|
@@ -7160,7 +7134,7 @@ var flowCompleteCli = [
|
|
|
7160
7134
|
chapter: "chains-routing"
|
|
7161
7135
|
},
|
|
7162
7136
|
{
|
|
7163
|
-
command: `walkeros push ${FILE} -f web -e '{"name":"order complete","data":{"id":"ORD-100","
|
|
7137
|
+
command: `walkeros push ${FILE} -f web -e '{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR"}}' --simulate destination.ga4`,
|
|
7164
7138
|
chapter: "mapping"
|
|
7165
7139
|
},
|
|
7166
7140
|
{
|