@metarouter/ajs-starter-kit 1.0.74 → 1.0.76
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/actioniq/kit.etag.json +1 -1
- package/.dist/actioniq/metadata.json +4 -0
- package/.dist/acuity-ads/kit.etag.json +1 -1
- package/.dist/acuity-ads/playbook.etag.json +1 -1
- package/.dist/acuity-ads/playbook.json +38 -32
- package/.dist/amnet/kit.etag.json +1 -1
- package/.dist/amnet/playbook.etag.json +1 -1
- package/.dist/amnet/playbook.json +12 -12
- package/.dist/amplitude/kit.etag.json +1 -1
- package/.dist/amplitude/playbook.etag.json +1 -1
- package/.dist/amplitude/playbook.json +5 -5
- package/.dist/apps-flyer-android/kit.etag.json +1 -1
- package/.dist/apps-flyer-android/playbook.etag.json +1 -1
- package/.dist/apps-flyer-android/playbook.json +12 -14
- package/.dist/apps-flyer-ios/kit.etag.json +1 -1
- package/.dist/apps-flyer-ios/playbook.etag.json +1 -1
- package/.dist/apps-flyer-ios/playbook.json +12 -14
- package/.dist/bing-ads/kit.etag.json +1 -1
- package/.dist/bing-ads/playbook.etag.json +1 -1
- package/.dist/bing-ads/playbook.json +12 -16
- package/.dist/bloomreach/kit.etag.json +1 -1
- package/.dist/bloomreach/playbook.etag.json +1 -1
- package/.dist/bloomreach/playbook.json +2 -8
- package/.dist/braze/kit.etag.json +1 -1
- package/.dist/braze/playbook.etag.json +1 -1
- package/.dist/braze/playbook.json +13 -19
- package/.dist/convert/kit.etag.json +1 -1
- package/.dist/convert/playbook.etag.json +1 -1
- package/.dist/convert/playbook.json +1 -1
- package/.dist/criteo/kit.etag.json +1 -1
- package/.dist/criteo/playbook.etag.json +1 -1
- package/.dist/criteo/playbook.json +12 -14
- package/.dist/facebook-pixel/kit.etag.json +1 -1
- package/.dist/facebook-pixel/playbook.etag.json +1 -1
- package/.dist/facebook-pixel/playbook.json +12 -16
- package/.dist/google-ads/kit.etag.json +1 -1
- package/.dist/google-ads/playbook.etag.json +1 -1
- package/.dist/google-ads/playbook.json +3 -3
- package/.dist/google-cm360/kit.etag.json +1 -1
- package/.dist/google-cm360/playbook.etag.json +1 -1
- package/.dist/google-cm360/playbook.json +36 -17
- package/.dist/impact-radius/kit.etag.json +1 -1
- package/.dist/impact-radius/playbook.etag.json +1 -1
- package/.dist/impact-radius/playbook.json +12 -12
- package/.dist/in-market/kit.etag.json +1 -1
- package/.dist/in-market/playbook.etag.json +1 -1
- package/.dist/in-market/playbook.json +12 -10
- package/.dist/media-math/kit.etag.json +1 -1
- package/.dist/media-math/playbook.etag.json +1 -1
- package/.dist/media-math/playbook.json +12 -16
- package/.dist/pinterest/kit.etag.json +1 -1
- package/.dist/pinterest/playbook.etag.json +1 -1
- package/.dist/pinterest/playbook.json +12 -16
- package/.dist/podsights/kit.etag.json +1 -1
- package/.dist/podsights/playbook.etag.json +1 -1
- package/.dist/podsights/playbook.json +0 -11
- package/.dist/rev-jet/kit.etag.json +1 -1
- package/.dist/rev-jet/playbook.etag.json +1 -1
- package/.dist/rev-jet/playbook.json +54 -22
- package/.dist/roomvo/kit.etag.json +1 -1
- package/.dist/roomvo/playbook.etag.json +1 -1
- package/.dist/roomvo/playbook.json +13 -12
- package/.dist/salesforce-cdp/kit.etag.json +1 -1
- package/.dist/salesforce-cdp/playbook.etag.json +1 -1
- package/.dist/salesforce-cdp/playbook.json +12 -16
- package/.dist/snapchat/kit.etag.json +1 -1
- package/.dist/snapchat/playbook.etag.json +1 -1
- package/.dist/snapchat/playbook.json +12 -0
- package/.dist/thetradedesk-data-advertiser-firstparty/kit.etag.json +1 -1
- package/.dist/thetradedesk-data-advertiser-firstparty/playbook.etag.json +1 -1
- package/.dist/thetradedesk-data-advertiser-firstparty/playbook.json +1 -1
- package/.dist/verizon-media/kit.etag.json +1 -1
- package/.dist/verizon-media/playbook.etag.json +1 -1
- package/.dist/verizon-media/playbook.json +26 -15
- package/.dist/xandr/kit.etag.json +1 -1
- package/.dist/xandr/playbook.etag.json +1 -1
- package/.dist/xandr/playbook.json +12 -13
- package/index.js +0 -12
- package/package.json +1 -1
- package/.dist/google-double-click/connection.etag.json +0 -1
- package/.dist/google-double-click/connection.json +0 -6
- package/.dist/google-double-click/kit.etag.json +0 -1
- package/.dist/google-double-click/metadata.json +0 -24
- package/.dist/google-double-click/playbook.etag.json +0 -1
- package/.dist/google-double-click/playbook.json +0 -3
|
@@ -1,37 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "v1.0.0",
|
|
3
3
|
"params": [
|
|
4
|
-
{
|
|
5
|
-
"name": "ACTIVITY_ID",
|
|
6
|
-
"exampleValue": "floodlight-activity-id"
|
|
7
|
-
},
|
|
8
4
|
{
|
|
9
5
|
"name": "CONFIG_ID",
|
|
10
6
|
"exampleValue": "floodlight-configuration-id"
|
|
11
7
|
}
|
|
12
8
|
],
|
|
13
|
-
"
|
|
9
|
+
"default": {
|
|
14
10
|
"filters": [
|
|
15
11
|
{
|
|
16
12
|
"byEventNames": {
|
|
17
13
|
"action": "allow",
|
|
18
14
|
"events": [
|
|
19
|
-
"
|
|
20
|
-
"product_added",
|
|
21
|
-
"order_completed"
|
|
15
|
+
""
|
|
22
16
|
]
|
|
23
17
|
}
|
|
24
18
|
}
|
|
25
|
-
]
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"global": {
|
|
26
22
|
"enrichments": [
|
|
27
23
|
{
|
|
28
24
|
"staticString": "$$CONFIG_ID$$",
|
|
29
25
|
"outputKey": "floodlightConfigurationId"
|
|
30
26
|
},
|
|
31
|
-
{
|
|
32
|
-
"staticString": "$$ACTIVITY_ID$$",
|
|
33
|
-
"outputKey": "floodlightActivityId"
|
|
34
|
-
},
|
|
35
27
|
{
|
|
36
28
|
"staticString": "dfareporting#conversion",
|
|
37
29
|
"outputKey": "kind"
|
|
@@ -51,8 +43,16 @@
|
|
|
51
43
|
]
|
|
52
44
|
},
|
|
53
45
|
{
|
|
54
|
-
"inputKey": "
|
|
55
|
-
"outputKey": "gclid"
|
|
46
|
+
"inputKey": "input",
|
|
47
|
+
"outputKey": "gclid",
|
|
48
|
+
"transforms": [
|
|
49
|
+
{
|
|
50
|
+
"expression": {
|
|
51
|
+
"lang": "lua",
|
|
52
|
+
"body": "return SPLIT(input.context.providers.googleGtag.data.gclid, \".\", 3)[3]"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"inputKey": "messageId",
|
|
@@ -73,7 +73,21 @@
|
|
|
73
73
|
]
|
|
74
74
|
},
|
|
75
75
|
"eventSpecific": {
|
|
76
|
+
"page": {
|
|
77
|
+
"enrichments": [
|
|
78
|
+
{
|
|
79
|
+
"staticString": "ADD_FLOODLIGHT_ACTIVITY_ID_HERE",
|
|
80
|
+
"outputKey": "floodlightActivityId"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
76
84
|
"product_added": {
|
|
85
|
+
"enrichments": [
|
|
86
|
+
{
|
|
87
|
+
"staticString": "ADD_FLOODLIGHT_ACTIVITY_ID_HERE",
|
|
88
|
+
"outputKey": "floodlightActivityId"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
77
91
|
"mappings": [
|
|
78
92
|
{
|
|
79
93
|
"inputKey": "input",
|
|
@@ -99,6 +113,12 @@
|
|
|
99
113
|
]
|
|
100
114
|
},
|
|
101
115
|
"order_completed": {
|
|
116
|
+
"enrichments": [
|
|
117
|
+
{
|
|
118
|
+
"staticString": "ADD_FLOODLIGHT_ACTIVITY_ID_HERE",
|
|
119
|
+
"outputKey": "floodlightActivityId"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
102
122
|
"mappings": [
|
|
103
123
|
{
|
|
104
124
|
"inputKey": "properties.total",
|
|
@@ -118,6 +138,5 @@
|
|
|
118
138
|
}
|
|
119
139
|
]
|
|
120
140
|
}
|
|
121
|
-
}
|
|
122
|
-
"default": {}
|
|
141
|
+
}
|
|
123
142
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"2e36b6997003ee269d8f2704e64997c4"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"eb937a2c4396b8faaeb4ace734a9a7f6"
|
|
@@ -11,18 +11,6 @@
|
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"global": {
|
|
14
|
-
"filters": [
|
|
15
|
-
{
|
|
16
|
-
"byEventNames": {
|
|
17
|
-
"action": "allow",
|
|
18
|
-
"events": [
|
|
19
|
-
"page",
|
|
20
|
-
"screen",
|
|
21
|
-
"order_completed"
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
14
|
"enrichments": [
|
|
27
15
|
{
|
|
28
16
|
"staticString": "$$CAMPAIGN_ID$$",
|
|
@@ -156,5 +144,17 @@
|
|
|
156
144
|
}
|
|
157
145
|
]
|
|
158
146
|
}
|
|
147
|
+
},
|
|
148
|
+
"default": {
|
|
149
|
+
"filters": [
|
|
150
|
+
{
|
|
151
|
+
"byEventNames": {
|
|
152
|
+
"action": "allow",
|
|
153
|
+
"events": [
|
|
154
|
+
""
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
159
|
}
|
|
160
160
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"40e343014cd2152a561f1cd661655b16"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"614202bf595f582bad48b127246bd078"
|
|
@@ -7,16 +7,6 @@
|
|
|
7
7
|
}
|
|
8
8
|
],
|
|
9
9
|
"global": {
|
|
10
|
-
"filters": [
|
|
11
|
-
{
|
|
12
|
-
"byEventNames": {
|
|
13
|
-
"action": "allow",
|
|
14
|
-
"events": [
|
|
15
|
-
"page"
|
|
16
|
-
]
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
10
|
"enrichments": [
|
|
21
11
|
{
|
|
22
12
|
"staticString": "$$CHANNEL_PARTNER$$",
|
|
@@ -87,5 +77,17 @@
|
|
|
87
77
|
}
|
|
88
78
|
]
|
|
89
79
|
}
|
|
80
|
+
},
|
|
81
|
+
"default": {
|
|
82
|
+
"filters": [
|
|
83
|
+
{
|
|
84
|
+
"byEventNames": {
|
|
85
|
+
"action": "allow",
|
|
86
|
+
"events": [
|
|
87
|
+
""
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
]
|
|
90
92
|
}
|
|
91
93
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"c02a226c15621519b0ab2c93505070c1"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"fa088512adc54089d9295527f628f93c"
|
|
@@ -35,22 +35,6 @@
|
|
|
35
35
|
}
|
|
36
36
|
],
|
|
37
37
|
"global": {
|
|
38
|
-
"filters": [
|
|
39
|
-
{
|
|
40
|
-
"byEventNames": {
|
|
41
|
-
"action": "whitelist",
|
|
42
|
-
"events": [
|
|
43
|
-
"page",
|
|
44
|
-
"products_searched",
|
|
45
|
-
"product_viewed",
|
|
46
|
-
"product_list_viewed",
|
|
47
|
-
"product_added",
|
|
48
|
-
"cart_viewed",
|
|
49
|
-
"order_completed"
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
38
|
"enrichments": [
|
|
55
39
|
{
|
|
56
40
|
"staticString": "1.1",
|
|
@@ -491,5 +475,17 @@
|
|
|
491
475
|
}
|
|
492
476
|
]
|
|
493
477
|
}
|
|
478
|
+
},
|
|
479
|
+
"default": {
|
|
480
|
+
"filters": [
|
|
481
|
+
{
|
|
482
|
+
"byEventNames": {
|
|
483
|
+
"action": "allow",
|
|
484
|
+
"events": [
|
|
485
|
+
""
|
|
486
|
+
]
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
]
|
|
494
490
|
}
|
|
495
491
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"63e77a7f61dd37ff00e0580e65a9f933"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"0fe25a7c1d0834c40546a8513fce1c5c"
|
|
@@ -7,22 +7,6 @@
|
|
|
7
7
|
}
|
|
8
8
|
],
|
|
9
9
|
"global": {
|
|
10
|
-
"filters": [
|
|
11
|
-
{
|
|
12
|
-
"byEventNames": {
|
|
13
|
-
"action": "allow",
|
|
14
|
-
"events": [
|
|
15
|
-
"page",
|
|
16
|
-
"products_searched",
|
|
17
|
-
"product_list_viewed",
|
|
18
|
-
"product_viewed",
|
|
19
|
-
"product_added",
|
|
20
|
-
"cart_viewed",
|
|
21
|
-
"order_completed"
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
10
|
"enrichments": [
|
|
27
11
|
{
|
|
28
12
|
"staticString": "1",
|
|
@@ -280,5 +264,17 @@
|
|
|
280
264
|
}
|
|
281
265
|
]
|
|
282
266
|
}
|
|
267
|
+
},
|
|
268
|
+
"default": {
|
|
269
|
+
"filters": [
|
|
270
|
+
{
|
|
271
|
+
"byEventNames": {
|
|
272
|
+
"action": "allow",
|
|
273
|
+
"events": [
|
|
274
|
+
""
|
|
275
|
+
]
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
]
|
|
283
279
|
}
|
|
284
280
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"cf72daae7d03f77b6ee6dc8cf956bfe3"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"eca815504999c68edd59f339c2a6aba2"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"e93b2149123b026cb411b2c8a880ab42"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"00c31fc91c798478c28ba4884a344d99"
|
|
@@ -6,23 +6,19 @@
|
|
|
6
6
|
"exampleValue": "my-v10-value"
|
|
7
7
|
}
|
|
8
8
|
],
|
|
9
|
-
"
|
|
9
|
+
"default": {
|
|
10
10
|
"filters": [
|
|
11
11
|
{
|
|
12
12
|
"byEventNames": {
|
|
13
|
-
"action": "
|
|
13
|
+
"action": "allow",
|
|
14
14
|
"events": [
|
|
15
|
-
"
|
|
16
|
-
"products_searched",
|
|
17
|
-
"product_list_viewed",
|
|
18
|
-
"product_viewed",
|
|
19
|
-
"product_added",
|
|
20
|
-
"cart_viewed",
|
|
21
|
-
"order_completed"
|
|
15
|
+
""
|
|
22
16
|
]
|
|
23
17
|
}
|
|
24
18
|
}
|
|
25
|
-
]
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"global": {
|
|
26
22
|
"enrichments": [
|
|
27
23
|
{
|
|
28
24
|
"staticString": "$$V10$$",
|
|
@@ -66,23 +62,41 @@
|
|
|
66
62
|
"inputKey": "properties.referrer",
|
|
67
63
|
"defaultString": "",
|
|
68
64
|
"outputKey": "referrer"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"inputKey": "input",
|
|
72
|
-
"outputKey": "eventType",
|
|
73
|
-
"transforms": [
|
|
74
|
-
{
|
|
75
|
-
"expression": {
|
|
76
|
-
"lang": "lua",
|
|
77
|
-
"body": "if input.type == \"track\" then\n return input.event\nelse\n return input.type\nend"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
65
|
}
|
|
82
66
|
]
|
|
83
67
|
},
|
|
84
68
|
"eventSpecific": {
|
|
69
|
+
"page": {
|
|
70
|
+
"enrichments": [
|
|
71
|
+
{
|
|
72
|
+
"staticString": "Page",
|
|
73
|
+
"outputKey": "eventType"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"products_searched": {
|
|
78
|
+
"enrichments": [
|
|
79
|
+
{
|
|
80
|
+
"staticString": "Products Searched",
|
|
81
|
+
"outputKey": "eventType"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"product_list_viewed": {
|
|
86
|
+
"enrichments": [
|
|
87
|
+
{
|
|
88
|
+
"staticString": "Product List Viewed",
|
|
89
|
+
"outputKey": "eventType"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
85
93
|
"product_viewed": {
|
|
94
|
+
"enrichments": [
|
|
95
|
+
{
|
|
96
|
+
"staticString": "Product Viewed",
|
|
97
|
+
"outputKey": "eventType"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
86
100
|
"mappings": [
|
|
87
101
|
{
|
|
88
102
|
"inputKey": "properties.sku",
|
|
@@ -95,6 +109,12 @@
|
|
|
95
109
|
]
|
|
96
110
|
},
|
|
97
111
|
"product_added": {
|
|
112
|
+
"enrichments": [
|
|
113
|
+
{
|
|
114
|
+
"staticString": "Product Added",
|
|
115
|
+
"outputKey": "eventType"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
98
118
|
"mappings": [
|
|
99
119
|
{
|
|
100
120
|
"inputKey": "properties.sku",
|
|
@@ -107,6 +127,12 @@
|
|
|
107
127
|
]
|
|
108
128
|
},
|
|
109
129
|
"cart_viewed": {
|
|
130
|
+
"enrichments": [
|
|
131
|
+
{
|
|
132
|
+
"staticString": "Cart Viewed",
|
|
133
|
+
"outputKey": "eventType"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
110
136
|
"mappings": [
|
|
111
137
|
{
|
|
112
138
|
"inputKey": "input",
|
|
@@ -147,6 +173,12 @@
|
|
|
147
173
|
]
|
|
148
174
|
},
|
|
149
175
|
"order_completed": {
|
|
176
|
+
"enrichments": [
|
|
177
|
+
{
|
|
178
|
+
"staticString": "Order Completed",
|
|
179
|
+
"outputKey": "eventType"
|
|
180
|
+
}
|
|
181
|
+
],
|
|
150
182
|
"mappings": [
|
|
151
183
|
{
|
|
152
184
|
"inputKey": "properties.total",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"e67e06618a1e12c4169b87ad97cbb163"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"f002757d6eb92ad087718bce3011e485"
|
|
@@ -10,18 +10,7 @@
|
|
|
10
10
|
"exampleValue": "flooring"
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
|
-
"global": {
|
|
14
|
-
"filters": [
|
|
15
|
-
{
|
|
16
|
-
"byEventNames": {
|
|
17
|
-
"action": "allow",
|
|
18
|
-
"events": [
|
|
19
|
-
"order_completed"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
},
|
|
13
|
+
"global": {},
|
|
25
14
|
"eventSpecific": {
|
|
26
15
|
"order_completed": {
|
|
27
16
|
"filters": [
|
|
@@ -73,5 +62,17 @@
|
|
|
73
62
|
}
|
|
74
63
|
]
|
|
75
64
|
}
|
|
65
|
+
},
|
|
66
|
+
"default": {
|
|
67
|
+
"filters": [
|
|
68
|
+
{
|
|
69
|
+
"byEventNames": {
|
|
70
|
+
"action": "allow",
|
|
71
|
+
"events": [
|
|
72
|
+
""
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
]
|
|
76
77
|
}
|
|
77
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"a33ec885ab1d5bad6abb67a0c24c20df"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d480eaaa8e4715961a977ab3225ce1f6"
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "v0.0.1",
|
|
3
3
|
"global": {
|
|
4
|
-
"filters": [
|
|
5
|
-
{
|
|
6
|
-
"byEventNames": {
|
|
7
|
-
"action": "allow",
|
|
8
|
-
"events": [
|
|
9
|
-
"identify",
|
|
10
|
-
"page",
|
|
11
|
-
"order_completed",
|
|
12
|
-
"product_added",
|
|
13
|
-
"product_list_viewed",
|
|
14
|
-
"product_viewed",
|
|
15
|
-
"cart_viewed"
|
|
16
|
-
]
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
4
|
"mappings": [
|
|
21
5
|
{
|
|
22
6
|
"inputKey": "anonymousId",
|
|
@@ -405,5 +389,17 @@
|
|
|
405
389
|
}
|
|
406
390
|
]
|
|
407
391
|
}
|
|
392
|
+
},
|
|
393
|
+
"default": {
|
|
394
|
+
"filters": [
|
|
395
|
+
{
|
|
396
|
+
"byEventNames": {
|
|
397
|
+
"action": "allow",
|
|
398
|
+
"events": [
|
|
399
|
+
""
|
|
400
|
+
]
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
]
|
|
408
404
|
}
|
|
409
405
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"2e5843b4a8fdcc32abe3cd49f5245b9f"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"4f09fe75a5d28cfec4115ef6f11a66c4"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"7e25c96b1194971f91f413880709d94e"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"f150cdd49747c4ec593ceac3fd1a36df"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
{
|
|
33
33
|
"expression": {
|
|
34
34
|
"lang": "lua",
|
|
35
|
-
"body": "\n-- variables needed from input schema --\nevent = LOWER(input.event)\nevent_type = LOWER(input.type)\npage_title = LOWER(input.context.page.title)\ntimestamp = input.originalTimestamp\nproducts = input.properties.products\ntotal = input.properties.total\nsingle_product_name = LOWER(input.properties.name)\nsingle_product_sku = LOWER(input.properties.sku)\n-- END --\n\nif event == null\nthen\n segment_name = \"page view | \" .. event_type .. \" | \" .. page_title\n return {{\n Name = segment_name,\n TTLInMinutes = TO_ROUNDED_INT($$TTL_IN_MINUTES$$),\n TimestampUtc = timestamp\n }}\nelse\n segment_name = event\n if products == null\n then\n\n if event == \"
|
|
35
|
+
"body": "\n-- variables needed from input schema --\nevent = LOWER(input.event)\nevent_type = LOWER(input.type)\npage_title = LOWER(input.context.page.title)\ntimestamp = input.originalTimestamp\nproducts = input.properties.products\ntotal = input.properties.total\nsingle_product_name = LOWER(input.properties.name)\nsingle_product_sku = LOWER(input.properties.sku)\n-- END --\n\nif event == null\nthen\n segment_name = \"page view | \" .. event_type .. \" | \" .. page_title\n return {{\n Name = segment_name,\n TTLInMinutes = TO_ROUNDED_INT($$TTL_IN_MINUTES$$),\n TimestampUtc = timestamp\n }}\nelse\n segment_name = event\n if products == null\n then\n\n if event == \"product_added\" or segment_name == \"product_viewed\"\n then\n segment_name = event .. \" | \" .. single_product_name .. \" | \" .. single_product_sku\n end\n return {{\n Name = segment_name,\n TTLInMinutes = TO_ROUNDED_INT($$TTL_IN_MINUTES$$),\n TimestampUtc = timestamp\n }}\n\n else\n p = {}\n p = MAP(products, function(p)\n return {\n Name = LOWER(event .. \" | \" .. p.name .. \" | \" .. p.sku),\n TTLInMinutes = TO_ROUNDED_INT($$TTL_IN_MINUTES$$),\n TimestampUtc = timestamp\n }\n end\n )\n if total ~= null\n then\n\n -- function --\n function totalRounded(total, divisible)\n total = math.floor(total)\n if total <= 0\n then\n return \"= 0\"\n end\n total = math.floor((total + divisible) / divisible) * divisible\n return \"< \" .. total\n end\n -- END --\n\n table.insert(p, {\n Name = \"order total \" .. totalRounded(tonumber(total), 100),\n TTLInMinutes = TO_ROUNDED_INT($$TTL_IN_MINUTES$$),\n TimestampUtc = timestamp,\n })\n end\n return p\n end\nend"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"6508b608865bbb94a7673fefa128f064"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"93754562c7b3579a756c7adad94af2c5"
|