@metarouter/ajs-starter-kit 1.0.66 → 1.0.68
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/playbook.etag.json +1 -1
- package/.dist/actioniq/playbook.json +1 -1
- package/.dist/amperity/connection.etag.json +1 -0
- package/.dist/amperity/connection.json +38 -0
- package/.dist/amperity/kit.etag.json +1 -0
- package/.dist/amperity/metadata.json +20 -0
- package/.dist/amperity/playbook.etag.json +1 -0
- package/.dist/amperity/playbook.json +51 -0
- package/.dist/google-ad-words/kit.etag.json +1 -1
- package/.dist/google-ad-words/metadata.json +5 -1
- package/.dist/google-ads/connection.etag.json +1 -0
- package/.dist/google-ads/connection.json +72 -0
- package/.dist/google-ads/kit.etag.json +1 -0
- package/.dist/google-ads/metadata.json +20 -0
- package/.dist/google-ads/playbook.etag.json +1 -0
- package/.dist/google-ads/playbook.json +148 -0
- package/.dist/google-analytics-4/connection.etag.json +1 -1
- package/.dist/google-analytics-4/connection.json +5 -1
- package/.dist/google-analytics-4/kit.etag.json +1 -1
- package/.dist/google-analytics-4/playbook.etag.json +1 -1
- package/.dist/google-analytics-4/playbook.json +233 -45
- package/.dist/kafka/kit.etag.json +1 -1
- package/.dist/kafka/metadata.json +1 -1
- package/.dist/kochava/connection.etag.json +1 -0
- package/.dist/kochava/connection.json +12 -0
- package/.dist/kochava/kit.etag.json +1 -0
- package/.dist/kochava/metadata.json +20 -0
- package/.dist/kochava/playbook.etag.json +1 -0
- package/.dist/kochava/playbook.json +487 -0
- package/.dist/pinterest-capi/kit.etag.json +1 -1
- package/.dist/pinterest-capi/playbook.etag.json +1 -1
- package/.dist/pinterest-capi/playbook.json +179 -2
- package/.dist/roomvo/connection.etag.json +1 -1
- package/.dist/roomvo/connection.json +21 -4
- package/.dist/roomvo/kit.etag.json +1 -1
- package/index.js +24 -0
- package/package.json +1 -1
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "v0.0.1",
|
|
3
3
|
"global": {
|
|
4
|
+
"enrichments": [
|
|
5
|
+
{
|
|
6
|
+
"outputKey": "event.params.data_source",
|
|
7
|
+
"staticString": "S2S"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
4
10
|
"mappings": [
|
|
5
11
|
{
|
|
6
12
|
"inputKey": "userId",
|
|
@@ -29,35 +35,65 @@
|
|
|
29
35
|
}
|
|
30
36
|
}
|
|
31
37
|
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"inputKey": "input",
|
|
41
|
+
"outputKey": "event.params.gclid",
|
|
42
|
+
"transforms": [
|
|
43
|
+
{
|
|
44
|
+
"expression": {
|
|
45
|
+
"body": "return DECODE_URL_QUERY(input.context.page.url).gclid",
|
|
46
|
+
"lang": "lua"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"inputKey": "input",
|
|
53
|
+
"outputKey": "event.params.dclid",
|
|
54
|
+
"transforms": [
|
|
55
|
+
{
|
|
56
|
+
"expression": {
|
|
57
|
+
"body": "return DECODE_URL_QUERY(input.context.page.url).dclid",
|
|
58
|
+
"lang": "lua"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
]
|
|
32
62
|
}
|
|
33
63
|
]
|
|
34
64
|
},
|
|
35
65
|
"eventSpecific": {
|
|
36
66
|
"page": {
|
|
67
|
+
"enrichments": [
|
|
68
|
+
{
|
|
69
|
+
"outputKey": "event.name",
|
|
70
|
+
"staticString": "page_view"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
37
73
|
"mappings": [
|
|
74
|
+
{
|
|
75
|
+
"inputKey": "properties.title",
|
|
76
|
+
"outputKey": "event.params.page_title"
|
|
77
|
+
},
|
|
38
78
|
{
|
|
39
79
|
"inputKey": "input",
|
|
40
|
-
"outputKey": "
|
|
80
|
+
"outputKey": "event.params.page_location",
|
|
41
81
|
"transforms": [
|
|
42
82
|
{
|
|
43
83
|
"expression": {
|
|
44
|
-
"body": "
|
|
84
|
+
"body": "return SPLIT(input.properties.url, \"?\", 1)[1] or \"\"",
|
|
45
85
|
"lang": "lua"
|
|
46
86
|
}
|
|
47
87
|
}
|
|
48
88
|
]
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
"products_searched": {
|
|
53
|
-
"mappings": [
|
|
89
|
+
},
|
|
54
90
|
{
|
|
55
91
|
"inputKey": "input",
|
|
56
|
-
"outputKey": "
|
|
92
|
+
"outputKey": "event.params.page_referrer",
|
|
57
93
|
"transforms": [
|
|
58
94
|
{
|
|
59
95
|
"expression": {
|
|
60
|
-
"body": "
|
|
96
|
+
"body": "return SPLIT(input.properties.referrer, \"?\", 1)[1] or \"\"",
|
|
61
97
|
"lang": "lua"
|
|
62
98
|
}
|
|
63
99
|
}
|
|
@@ -65,15 +101,43 @@
|
|
|
65
101
|
}
|
|
66
102
|
]
|
|
67
103
|
},
|
|
104
|
+
"products_searched": {
|
|
105
|
+
"enrichments": [
|
|
106
|
+
{
|
|
107
|
+
"outputKey": "event.name",
|
|
108
|
+
"staticString": "search"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"mappings": [
|
|
112
|
+
{
|
|
113
|
+
"inputKey": "properties.query",
|
|
114
|
+
"outputKey": "event.params.search_term"
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
},
|
|
68
118
|
"product_list_viewed": {
|
|
119
|
+
"enrichments": [
|
|
120
|
+
{
|
|
121
|
+
"outputKey": "event.name",
|
|
122
|
+
"staticString": "view_item_list"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
69
125
|
"mappings": [
|
|
126
|
+
{
|
|
127
|
+
"inputKey": "properties.list_id",
|
|
128
|
+
"outputKey": "event.params.item_list_id"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"inputKey": "properties.category",
|
|
132
|
+
"outputKey": "event.params.item_list_name"
|
|
133
|
+
},
|
|
70
134
|
{
|
|
71
135
|
"inputKey": "input",
|
|
72
|
-
"outputKey": "
|
|
136
|
+
"outputKey": "event.params.items",
|
|
73
137
|
"transforms": [
|
|
74
138
|
{
|
|
75
139
|
"expression": {
|
|
76
|
-
"body": "local
|
|
140
|
+
"body": "local items = {}\nfor index, product in pairs(input.properties.products) do\n local item = {}\n item.coupon = product.coupon\n item.item_brand = product.brand\n item.item_category = product.category\n item.item_id = product.product_id\n item.item_name = product.name\n item.item_price = product.price\n item.item_quantity = product.quantity\n items[index] = item\nend\nreturn items",
|
|
77
141
|
"lang": "lua"
|
|
78
142
|
}
|
|
79
143
|
}
|
|
@@ -82,46 +146,76 @@
|
|
|
82
146
|
]
|
|
83
147
|
},
|
|
84
148
|
"promotion_viewed": {
|
|
149
|
+
"enrichments": [
|
|
150
|
+
{
|
|
151
|
+
"outputKey": "event.name",
|
|
152
|
+
"staticString": "view_promotion"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
85
155
|
"mappings": [
|
|
86
156
|
{
|
|
87
|
-
"inputKey": "
|
|
88
|
-
"outputKey": "
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
157
|
+
"inputKey": "properties.promotion_id",
|
|
158
|
+
"outputKey": "event.params.promotion_id"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"inputKey": "properties.name",
|
|
162
|
+
"outputKey": "event.params.promotion_name"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"inputKey": "properties.creative",
|
|
166
|
+
"outputKey": "event.params.creative_name"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"inputKey": "properties.position",
|
|
170
|
+
"outputKey": "event.params.creative_slot"
|
|
97
171
|
}
|
|
98
172
|
]
|
|
99
173
|
},
|
|
100
174
|
"promotion_clicked": {
|
|
175
|
+
"enrichments": [
|
|
176
|
+
{
|
|
177
|
+
"outputKey": "event.name",
|
|
178
|
+
"staticString": "select_promotion"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
101
181
|
"mappings": [
|
|
102
182
|
{
|
|
103
|
-
"inputKey": "
|
|
104
|
-
"outputKey": "
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
183
|
+
"inputKey": "properties.promotion_id",
|
|
184
|
+
"outputKey": "event.params.promotion_id"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"inputKey": "properties.name",
|
|
188
|
+
"outputKey": "event.params.promotion_name"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"inputKey": "properties.creative",
|
|
192
|
+
"outputKey": "event.params.creative_name"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"inputKey": "properties.position",
|
|
196
|
+
"outputKey": "event.params.creative_slot"
|
|
113
197
|
}
|
|
114
198
|
]
|
|
115
199
|
},
|
|
116
200
|
"product_clicked": {
|
|
201
|
+
"enrichments": [
|
|
202
|
+
{
|
|
203
|
+
"outputKey": "event.name",
|
|
204
|
+
"staticString": "select_item"
|
|
205
|
+
}
|
|
206
|
+
],
|
|
117
207
|
"mappings": [
|
|
208
|
+
{
|
|
209
|
+
"inputKey": "properties.currency",
|
|
210
|
+
"outputKey": "event.params.currency"
|
|
211
|
+
},
|
|
118
212
|
{
|
|
119
213
|
"inputKey": "input",
|
|
120
|
-
"outputKey": "
|
|
214
|
+
"outputKey": "event.params.items",
|
|
121
215
|
"transforms": [
|
|
122
216
|
{
|
|
123
217
|
"expression": {
|
|
124
|
-
"body": "
|
|
218
|
+
"body": "return {{\n coupon = input.properties.coupon,\n item_brand = input.properties.brand,\n item_category = input.properties.category,\n item_id = input.properties.product_id,\n item_name = input.properties.name,\n item_price = input.properties.price,\n item_quantity = input.properties.quantity\n}}",
|
|
125
219
|
"lang": "lua"
|
|
126
220
|
}
|
|
127
221
|
}
|
|
@@ -130,14 +224,28 @@
|
|
|
130
224
|
]
|
|
131
225
|
},
|
|
132
226
|
"product_viewed": {
|
|
227
|
+
"enrichments": [
|
|
228
|
+
{
|
|
229
|
+
"outputKey": "event.name",
|
|
230
|
+
"staticString": "view_item"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
133
233
|
"mappings": [
|
|
234
|
+
{
|
|
235
|
+
"inputKey": "properties.currency",
|
|
236
|
+
"outputKey": "event.params.currency"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"inputKey": "properties.value",
|
|
240
|
+
"outputKey": "event.params.value"
|
|
241
|
+
},
|
|
134
242
|
{
|
|
135
243
|
"inputKey": "input",
|
|
136
|
-
"outputKey": "
|
|
244
|
+
"outputKey": "event.params.items",
|
|
137
245
|
"transforms": [
|
|
138
246
|
{
|
|
139
247
|
"expression": {
|
|
140
|
-
"body": "
|
|
248
|
+
"body": "return {{\n coupon = input.properties.coupon,\n item_brand = input.properties.brand,\n item_category = input.properties.category,\n item_id = input.properties.product_id,\n item_name = input.properties.name,\n item_price = input.properties.price,\n item_quantity = input.properties.quantity\n}}",
|
|
141
249
|
"lang": "lua"
|
|
142
250
|
}
|
|
143
251
|
}
|
|
@@ -146,14 +254,28 @@
|
|
|
146
254
|
]
|
|
147
255
|
},
|
|
148
256
|
"product_added": {
|
|
257
|
+
"enrichments": [
|
|
258
|
+
{
|
|
259
|
+
"outputKey": "event.name",
|
|
260
|
+
"staticString": "add_to_cart"
|
|
261
|
+
}
|
|
262
|
+
],
|
|
149
263
|
"mappings": [
|
|
264
|
+
{
|
|
265
|
+
"inputKey": "properties.currency",
|
|
266
|
+
"outputKey": "event.params.currency"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"inputKey": "properties.value",
|
|
270
|
+
"outputKey": "event.params.value"
|
|
271
|
+
},
|
|
150
272
|
{
|
|
151
273
|
"inputKey": "input",
|
|
152
|
-
"outputKey": "
|
|
274
|
+
"outputKey": "event.params.items",
|
|
153
275
|
"transforms": [
|
|
154
276
|
{
|
|
155
277
|
"expression": {
|
|
156
|
-
"body": "
|
|
278
|
+
"body": "return {{\n coupon = input.properties.coupon,\n item_brand = input.properties.brand,\n item_category = input.properties.category,\n item_id = input.properties.product_id,\n item_name = input.properties.name,\n item_price = input.properties.price,\n item_quantity = input.properties.quantity\n}}",
|
|
157
279
|
"lang": "lua"
|
|
158
280
|
}
|
|
159
281
|
}
|
|
@@ -162,14 +284,28 @@
|
|
|
162
284
|
]
|
|
163
285
|
},
|
|
164
286
|
"product_removed": {
|
|
287
|
+
"enrichments": [
|
|
288
|
+
{
|
|
289
|
+
"outputKey": "event.name",
|
|
290
|
+
"staticString": "remove_from_cart"
|
|
291
|
+
}
|
|
292
|
+
],
|
|
165
293
|
"mappings": [
|
|
294
|
+
{
|
|
295
|
+
"inputKey": "properties.currency",
|
|
296
|
+
"outputKey": "event.params.currency"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"inputKey": "properties.value",
|
|
300
|
+
"outputKey": "event.params.value"
|
|
301
|
+
},
|
|
166
302
|
{
|
|
167
303
|
"inputKey": "input",
|
|
168
|
-
"outputKey": "
|
|
304
|
+
"outputKey": "event.params.items",
|
|
169
305
|
"transforms": [
|
|
170
306
|
{
|
|
171
307
|
"expression": {
|
|
172
|
-
"body": "
|
|
308
|
+
"body": "return {{\n coupon = input.properties.coupon,\n item_brand = input.properties.brand,\n item_category = input.properties.category,\n item_id = input.properties.product_id,\n item_name = input.properties.name,\n item_price = input.properties.price,\n item_quantity = input.properties.quantity\n}}",
|
|
173
309
|
"lang": "lua"
|
|
174
310
|
}
|
|
175
311
|
}
|
|
@@ -178,14 +314,36 @@
|
|
|
178
314
|
]
|
|
179
315
|
},
|
|
180
316
|
"cart_viewed": {
|
|
317
|
+
"enrichments": [
|
|
318
|
+
{
|
|
319
|
+
"outputKey": "event.name",
|
|
320
|
+
"staticString": "view_cart"
|
|
321
|
+
}
|
|
322
|
+
],
|
|
181
323
|
"mappings": [
|
|
324
|
+
{
|
|
325
|
+
"inputKey": "properties.currency",
|
|
326
|
+
"outputKey": "event.params.currency"
|
|
327
|
+
},
|
|
182
328
|
{
|
|
183
329
|
"inputKey": "input",
|
|
184
|
-
"outputKey": "
|
|
330
|
+
"outputKey": "event.params.value",
|
|
185
331
|
"transforms": [
|
|
186
332
|
{
|
|
187
333
|
"expression": {
|
|
188
|
-
"body": "
|
|
334
|
+
"body": "return SUM(MAP(input.properties.products, function (product) return product.price * (product.quantity or 1) end))",
|
|
335
|
+
"lang": "lua"
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
]
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"inputKey": "input",
|
|
342
|
+
"outputKey": "event.params.items",
|
|
343
|
+
"transforms": [
|
|
344
|
+
{
|
|
345
|
+
"expression": {
|
|
346
|
+
"body": "local items = {}\nfor index, product in pairs(input.properties.products) do\n local item = {}\n item.coupon = product.coupon\n item.item_brand = product.brand\n item.item_category = product.category\n item.item_id = product.product_id\n item.item_name = product.name\n item.item_price = product.price\n item.item_quantity = product.quantity\n items[index] = item\nend\nreturn items",
|
|
189
347
|
"lang": "lua"
|
|
190
348
|
}
|
|
191
349
|
}
|
|
@@ -194,14 +352,44 @@
|
|
|
194
352
|
]
|
|
195
353
|
},
|
|
196
354
|
"order_completed": {
|
|
355
|
+
"enrichments": [
|
|
356
|
+
{
|
|
357
|
+
"outputKey": "event.name",
|
|
358
|
+
"staticString": "purchase"
|
|
359
|
+
}
|
|
360
|
+
],
|
|
197
361
|
"mappings": [
|
|
362
|
+
{
|
|
363
|
+
"inputKey": "properties.coupon",
|
|
364
|
+
"outputKey": "event.params.coupon"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"inputKey": "properties.currency",
|
|
368
|
+
"outputKey": "event.params.currency"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"inputKey": "properties.shipping",
|
|
372
|
+
"outputKey": "event.params.shipping"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"inputKey": "properties.tax",
|
|
376
|
+
"outputKey": "event.params.tax"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"inputKey": "properties.checkout_id",
|
|
380
|
+
"outputKey": "event.params.transaction_id"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"inputKey": "properties.total",
|
|
384
|
+
"outputKey": "event.params.value"
|
|
385
|
+
},
|
|
198
386
|
{
|
|
199
387
|
"inputKey": "input",
|
|
200
|
-
"outputKey": "
|
|
388
|
+
"outputKey": "event.params.items",
|
|
201
389
|
"transforms": [
|
|
202
390
|
{
|
|
203
391
|
"expression": {
|
|
204
|
-
"body": "local
|
|
392
|
+
"body": "local items = {}\nfor index, product in pairs(input.properties.products) do\n local item = {}\n item.coupon = product.coupon\n item.item_brand = product.brand\n item.item_category = product.category\n item.item_id = product.product_id\n item.item_name = product.name\n item.item_price = product.price\n item.item_quantity = product.quantity\n items[index] = item\nend\nreturn items",
|
|
205
393
|
"lang": "lua"
|
|
206
394
|
}
|
|
207
395
|
}
|
|
@@ -214,11 +402,11 @@
|
|
|
214
402
|
"mappings": [
|
|
215
403
|
{
|
|
216
404
|
"inputKey": "input",
|
|
217
|
-
"outputKey": "
|
|
405
|
+
"outputKey": "event",
|
|
218
406
|
"transforms": [
|
|
219
407
|
{
|
|
220
408
|
"expression": {
|
|
221
|
-
"body": "local event_details = {}\
|
|
409
|
+
"body": "if input.event ~= nil then\n local event_details = {}\n event_details.name = REPLACE(LOWER(input.event), \" \", \"_\")\n local params = input.properties\n local gclid = DECODE_URL_QUERY(input.context.page.url).gclid\n if gclid then params.gclid = gclid end\n local dclid = DECODE_URL_QUERY(input.context.page.url).dclid\n if dclid then params.dclid = dclid end\n params.data_source = 'S2S'\n event_details.params = params\n return event_details\nend",
|
|
222
410
|
"lang": "lua"
|
|
223
411
|
}
|
|
224
412
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"22e1334e9a85f7464cd8cd854cf03395"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"d2efd4a8bf22b5a0400ebd29bc491588"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"3453d59506fd2a770493f366eb472f62"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"isDraft": false,
|
|
3
|
+
"isBeta": true,
|
|
4
|
+
"friendlyName": "Kochava",
|
|
5
|
+
"description": "Kochava offers mobile app attribution and mobile app analytics for full app performance through the funnel.",
|
|
6
|
+
"logo": "https://cdn.metarouter.io/logo.svg",
|
|
7
|
+
"color": "#ff0000",
|
|
8
|
+
"eventSource": {
|
|
9
|
+
"isAndroidApp": true,
|
|
10
|
+
"isIosApp": true,
|
|
11
|
+
"isWebApp": false
|
|
12
|
+
},
|
|
13
|
+
"inputSchema": "analytics_js",
|
|
14
|
+
"releaseNotes": [
|
|
15
|
+
{
|
|
16
|
+
"date": "2023-08-16T00:00:00.000Z",
|
|
17
|
+
"note": "Kochava initial release."
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"31c16d5c1398bc0634d1a843b03be464"
|