@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.
Files changed (38) hide show
  1. package/.dist/actioniq/kit.etag.json +1 -1
  2. package/.dist/actioniq/playbook.etag.json +1 -1
  3. package/.dist/actioniq/playbook.json +1 -1
  4. package/.dist/amperity/connection.etag.json +1 -0
  5. package/.dist/amperity/connection.json +38 -0
  6. package/.dist/amperity/kit.etag.json +1 -0
  7. package/.dist/amperity/metadata.json +20 -0
  8. package/.dist/amperity/playbook.etag.json +1 -0
  9. package/.dist/amperity/playbook.json +51 -0
  10. package/.dist/google-ad-words/kit.etag.json +1 -1
  11. package/.dist/google-ad-words/metadata.json +5 -1
  12. package/.dist/google-ads/connection.etag.json +1 -0
  13. package/.dist/google-ads/connection.json +72 -0
  14. package/.dist/google-ads/kit.etag.json +1 -0
  15. package/.dist/google-ads/metadata.json +20 -0
  16. package/.dist/google-ads/playbook.etag.json +1 -0
  17. package/.dist/google-ads/playbook.json +148 -0
  18. package/.dist/google-analytics-4/connection.etag.json +1 -1
  19. package/.dist/google-analytics-4/connection.json +5 -1
  20. package/.dist/google-analytics-4/kit.etag.json +1 -1
  21. package/.dist/google-analytics-4/playbook.etag.json +1 -1
  22. package/.dist/google-analytics-4/playbook.json +233 -45
  23. package/.dist/kafka/kit.etag.json +1 -1
  24. package/.dist/kafka/metadata.json +1 -1
  25. package/.dist/kochava/connection.etag.json +1 -0
  26. package/.dist/kochava/connection.json +12 -0
  27. package/.dist/kochava/kit.etag.json +1 -0
  28. package/.dist/kochava/metadata.json +20 -0
  29. package/.dist/kochava/playbook.etag.json +1 -0
  30. package/.dist/kochava/playbook.json +487 -0
  31. package/.dist/pinterest-capi/kit.etag.json +1 -1
  32. package/.dist/pinterest-capi/playbook.etag.json +1 -1
  33. package/.dist/pinterest-capi/playbook.json +179 -2
  34. package/.dist/roomvo/connection.etag.json +1 -1
  35. package/.dist/roomvo/connection.json +21 -4
  36. package/.dist/roomvo/kit.etag.json +1 -1
  37. package/index.js +24 -0
  38. 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": "events",
80
+ "outputKey": "event.params.page_location",
41
81
  "transforms": [
42
82
  {
43
83
  "expression": {
44
- "body": "local event_details = {}\nevent_details.name = 'page_view'\nlocal params = {}\nparams.page_title = input.properties.title\nparams.page_location = SPLIT(input.properties.url, \"?\", 1)[1] or \"\"\nparams.page_referrer = SPLIT(input.properties.referrer, \"?\", 1)[1] or \"\"\nparams.page_type = input.properties.pageType\nparams.page_sub_category = input.properties.subCategory2\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
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": "events",
92
+ "outputKey": "event.params.page_referrer",
57
93
  "transforms": [
58
94
  {
59
95
  "expression": {
60
- "body": "local event_details = {}\nevent_details.name = 'search'\nlocal params = {}\nparams.search_term = input.properties.query\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
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": "events",
136
+ "outputKey": "event.params.items",
73
137
  "transforms": [
74
138
  {
75
139
  "expression": {
76
- "body": "local event_details = {}\nevent_details.name = 'view_item_list'\nlocal params = {}\nparams.item_list_id = input.properties.list_id\nparams.item_list_name = input.properties.category\nparams.items = input.properties.products\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
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": "input",
88
- "outputKey": "events",
89
- "transforms": [
90
- {
91
- "expression": {
92
- "body": "local event_details = {}\nevent_details.name = 'view_promotion'\nlocal params = {}\nparams.promotion_id = input.properties.promotion_id\nparams.creative_name = input.properties.creative\nparams.promotion_name = input.properties.name\nparams.creative_slot = input.properties.position\nparams.items = input.properties.items\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
93
- "lang": "lua"
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": "input",
104
- "outputKey": "events",
105
- "transforms": [
106
- {
107
- "expression": {
108
- "body": "local event_details = {}\nevent_details.name = 'select_promotion'\nlocal params = {}\nparams.promotion_id = input.properties.promotion_id\nparams.creative_name = input.properties.creative\nparams.promotion_name = input.properties.name\nparams.creative_slot = input.properties.position\nparams.items = input.properties.items\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
109
- "lang": "lua"
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": "events",
214
+ "outputKey": "event.params.items",
121
215
  "transforms": [
122
216
  {
123
217
  "expression": {
124
- "body": "local event_details = {}\nevent_details.name = 'select_item'\nlocal params = {}\nparams.items = {}\nlocal item = {}\nitem.item_id = input.properties.product_id\nitem.item_name = input.properties.name\nitem.coupon = input.properties.coupon\nitem.currency = input.properties.currency\nitem.item_brand = input.properties.brand\nitem.item_category = input.properties.category\nitem.item_price = input.properties.price\nitem.item_quantity = input.properties.quantity\nparams.items[1] = item\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
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": "events",
244
+ "outputKey": "event.params.items",
137
245
  "transforms": [
138
246
  {
139
247
  "expression": {
140
- "body": "local event_details = {}\nevent_details.name = 'view_item'\nlocal params = {}\nparams.items = {}\nlocal item = {}\nitem.item_id = input.properties.product_id\nitem.item_name = input.properties.name\nitem.coupon = input.properties.coupon\nitem.currency = input.properties.currency\nitem.item_brand = input.properties.brand\nitem.item_category = input.properties.category\nitem.item_price = input.properties.price\nitem.item_quantity = input.properties.quantity\nparams.items[1] = item\nparams.currency = input.properties.currency\nparams.value = input.properties.value\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
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": "events",
274
+ "outputKey": "event.params.items",
153
275
  "transforms": [
154
276
  {
155
277
  "expression": {
156
- "body": "local event_details = {}\nevent_details.name = 'add_to_cart'\nlocal params = {}\nparams.items = {}\nlocal item = {}\nitem.item_id = input.properties.product_id\nitem.item_name = input.properties.name\nitem.coupon = input.properties.coupon\nitem.currency = input.properties.currency\nitem.item_brand = input.properties.brand\nitem.item_category = input.properties.category\nitem.item_price = input.properties.price\nitem.item_quantity = input.properties.quantity\nparams.items[1] = item\nparams.currency = input.properties.currency\nparams.value = input.properties.value\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
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": "events",
304
+ "outputKey": "event.params.items",
169
305
  "transforms": [
170
306
  {
171
307
  "expression": {
172
- "body": "local event_details = {}\nevent_details.name = 'remove_from_cart'\nlocal params = {}\nparams.items = {}\nlocal item = {}\nitem.item_id = input.properties.product_id\nitem.item_name = input.properties.name\nitem.coupon = input.properties.coupon\nitem.currency = input.properties.currency\nitem.item_brand = input.properties.brand\nitem.item_category = input.properties.category\nitem.item_price = input.properties.price\nitem.item_quantity = input.properties.quantity\nparams.items[1] = item\nparams.currency = input.properties.currency\nparams.value = input.properties.value\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
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": "events",
330
+ "outputKey": "event.params.value",
185
331
  "transforms": [
186
332
  {
187
333
  "expression": {
188
- "body": "local event_details = {}\nevent_details.name = 'view_cart'\nlocal params = {}\nparams.currency = input.properties.currency\nparams.value = 0\nparams.items = {}\nfor inputIndex, product in pairs(input.properties.products) do\n local item = {}\n item.item_id = product.product_id\n item.item_name = product.name\n item.coupon = product.coupon\n item.item_brand = product.brand\n item.item_category = product.category\n item.item_price = product.price\n item.item_quantity = product.quantity\n params.items[inputIndex] = item\n params.value = params.value + (product.price * product.quantity)\nend\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
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": "events",
388
+ "outputKey": "event.params.items",
201
389
  "transforms": [
202
390
  {
203
391
  "expression": {
204
- "body": "local event_details = {}\nevent_details.name = 'purchase'\nlocal params = {}\nparams.currency = input.properties.currency\nparams.transaction_id = input.properties.checkout_id\nparams.value = input.properties.total\nparams.coupon = input.properties.coupon\nparams.shipping = input.properties.shipping\nparams.tax = input.properties.tax\nparams.items = {}\nfor inputIndex, product in pairs(input.properties.products) do\n local item = {}\n item.item_id = product.product_id\n item.item_name = product.name\n item.coupon = product.coupon\n item.item_brand = product.brand\n item.item_category = product.category\n item.item_price = product.price\n item.item_quantity = product.quantity\n params.items[inputIndex] = item\nend\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { event_details }",
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": "events",
405
+ "outputKey": "event",
218
406
  "transforms": [
219
407
  {
220
408
  "expression": {
221
- "body": "local event_details = {}\nevent_details.name = input.event\nlocal params = input.properties\nlocal gclid = DECODE_URL_QUERY(input.context.page.url).gclid\nif gclid then params.gclid = gclid end\nlocal dclid = DECODE_URL_QUERY(input.context.page.url).dclid\nif dclid then params.dclid = dclid end\nparams.data_source = 'S2S'\nevent_details.params = params\nreturn { 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
- "7c6f01f2c5075a293f91d3103f2cf3ec"
1
+ "22e1334e9a85f7464cd8cd854cf03395"
@@ -30,7 +30,7 @@
30
30
  },
31
31
  {
32
32
  "date": "2023-07-10T00:00:00.000Z",
33
- "note": "Moving from Draft to Beta mode"
33
+ "note": "Migrate from _Draft_ to _Beta_"
34
34
  }
35
35
  ]
36
36
  }
@@ -0,0 +1 @@
1
+ "d2efd4a8bf22b5a0400ebd29bc491588"
@@ -0,0 +1,12 @@
1
+ {
2
+ "default": {
3
+ "endpoint": "http://control.kochava.com/track/json",
4
+ "method": "POST"
5
+ },
6
+ "eventSpecific": {
7
+ "identify": {
8
+ "endpoint": "http://control.kochava.com/v1/cpi/identityLink.php",
9
+ "method": "POST"
10
+ }
11
+ }
12
+ }
@@ -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"