@metarouter/ajs-starter-kit 1.0.31 → 1.0.34

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 (104) hide show
  1. package/.dist/actioniq/endpoint_schema.etag.json +1 -1
  2. package/.dist/actioniq/endpoint_schema.json +15 -3
  3. package/.dist/actioniq/kit.etag.json +1 -1
  4. package/.dist/actioniq/metadata.json +4 -0
  5. package/.dist/acuity-ads/endpoint_schema.etag.json +1 -1
  6. package/.dist/acuity-ads/endpoint_schema.json +1 -2
  7. package/.dist/acuity-ads/kit.etag.json +1 -1
  8. package/.dist/adobe/endpoint_schema.etag.json +1 -1
  9. package/.dist/adobe/endpoint_schema.json +1 -2
  10. package/.dist/adobe/kit.etag.json +1 -1
  11. package/.dist/amnet/endpoint_schema.etag.json +1 -1
  12. package/.dist/amnet/endpoint_schema.json +1 -2
  13. package/.dist/amnet/kit.etag.json +1 -1
  14. package/.dist/amobee/endpoint_schema.etag.json +1 -1
  15. package/.dist/amobee/endpoint_schema.json +1 -2
  16. package/.dist/amobee/kit.etag.json +1 -1
  17. package/.dist/amplitude/endpoint_schema.etag.json +1 -1
  18. package/.dist/amplitude/endpoint_schema.json +13 -4
  19. package/.dist/amplitude/kit.etag.json +1 -1
  20. package/.dist/amplitude/metadata.json +4 -0
  21. package/.dist/amplitude/playbook.etag.json +1 -1
  22. package/.dist/amplitude/playbook.json +769 -89
  23. package/.dist/apps-flyer-android/endpoint_schema.etag.json +1 -1
  24. package/.dist/apps-flyer-android/endpoint_schema.json +0 -1
  25. package/.dist/apps-flyer-android/kit.etag.json +1 -1
  26. package/.dist/apps-flyer-ios/endpoint_schema.etag.json +1 -1
  27. package/.dist/apps-flyer-ios/endpoint_schema.json +0 -1
  28. package/.dist/apps-flyer-ios/kit.etag.json +1 -1
  29. package/.dist/bing-ads/endpoint_schema.etag.json +1 -1
  30. package/.dist/bing-ads/endpoint_schema.json +1 -2
  31. package/.dist/bing-ads/kit.etag.json +1 -1
  32. package/.dist/blueshift/endpoint_schema.etag.json +1 -1
  33. package/.dist/blueshift/endpoint_schema.json +6 -2
  34. package/.dist/blueshift/kit.etag.json +1 -1
  35. package/.dist/blueshift/metadata.json +4 -0
  36. package/.dist/braze/endpoint_schema.etag.json +1 -1
  37. package/.dist/braze/endpoint_schema.json +40 -2
  38. package/.dist/braze/kit.etag.json +1 -1
  39. package/.dist/braze/metadata.json +4 -0
  40. package/.dist/braze/playbook.etag.json +1 -1
  41. package/.dist/braze/playbook.json +217 -22
  42. package/.dist/connection-schemas.json +12 -0
  43. package/.dist/criteo/endpoint_schema.etag.json +1 -1
  44. package/.dist/criteo/endpoint_schema.json +1 -2
  45. package/.dist/criteo/kit.etag.json +1 -1
  46. package/.dist/facebook-pixel/endpoint_schema.etag.json +1 -1
  47. package/.dist/facebook-pixel/endpoint_schema.json +6 -2
  48. package/.dist/facebook-pixel/kit.etag.json +1 -1
  49. package/.dist/facebook-pixel/metadata.json +8 -0
  50. package/.dist/facebook-pixel/playbook.etag.json +1 -1
  51. package/.dist/facebook-pixel/playbook.json +321 -24
  52. package/.dist/google-ad-words/endpoint_schema.etag.json +1 -1
  53. package/.dist/google-ad-words/endpoint_schema.json +1 -2
  54. package/.dist/google-ad-words/kit.etag.json +1 -1
  55. package/.dist/google-analytics/endpoint_schema.etag.json +1 -1
  56. package/.dist/google-analytics/endpoint_schema.json +1 -2
  57. package/.dist/google-analytics/kit.etag.json +1 -1
  58. package/.dist/google-double-click/endpoint_schema.etag.json +1 -1
  59. package/.dist/google-double-click/endpoint_schema.json +1 -2
  60. package/.dist/google-double-click/kit.etag.json +1 -1
  61. package/.dist/impact-radius/endpoint_schema.etag.json +1 -1
  62. package/.dist/impact-radius/endpoint_schema.json +2 -4
  63. package/.dist/impact-radius/kit.etag.json +1 -1
  64. package/.dist/in-market/endpoint_schema.etag.json +1 -1
  65. package/.dist/in-market/endpoint_schema.json +0 -1
  66. package/.dist/in-market/kit.etag.json +1 -1
  67. package/.dist/lytics/endpoint_schema.etag.json +1 -1
  68. package/.dist/lytics/endpoint_schema.json +1 -2
  69. package/.dist/lytics/kit.etag.json +1 -1
  70. package/.dist/media-math/endpoint_schema.etag.json +1 -1
  71. package/.dist/media-math/endpoint_schema.json +1 -2
  72. package/.dist/media-math/kit.etag.json +1 -1
  73. package/.dist/merkle/endpoint_schema.etag.json +1 -1
  74. package/.dist/merkle/endpoint_schema.json +1 -2
  75. package/.dist/merkle/kit.etag.json +1 -1
  76. package/.dist/movable-ink/endpoint_schema.etag.json +1 -1
  77. package/.dist/movable-ink/endpoint_schema.json +1 -2
  78. package/.dist/movable-ink/kit.etag.json +1 -1
  79. package/.dist/pinterest/endpoint_schema.etag.json +1 -1
  80. package/.dist/pinterest/endpoint_schema.json +1 -2
  81. package/.dist/pinterest/kit.etag.json +1 -1
  82. package/.dist/rev-jet/endpoint_schema.etag.json +1 -1
  83. package/.dist/rev-jet/endpoint_schema.json +1 -2
  84. package/.dist/rev-jet/kit.etag.json +1 -1
  85. package/.dist/roomvo/endpoint_schema.etag.json +1 -1
  86. package/.dist/roomvo/endpoint_schema.json +5 -1
  87. package/.dist/roomvo/kit.etag.json +1 -1
  88. package/.dist/roomvo/metadata.json +4 -0
  89. package/.dist/roomvo/playbook.etag.json +1 -1
  90. package/.dist/roomvo/playbook.json +31 -1
  91. package/.dist/snapchat/endpoint_schema.etag.json +1 -1
  92. package/.dist/snapchat/endpoint_schema.json +1 -2
  93. package/.dist/snapchat/kit.etag.json +1 -1
  94. package/.dist/snowflake/endpoint_schema.etag.json +1 -1
  95. package/.dist/snowflake/endpoint_schema.json +1 -2
  96. package/.dist/snowflake/kit.etag.json +1 -1
  97. package/.dist/verizon-media/endpoint_schema.etag.json +1 -1
  98. package/.dist/verizon-media/endpoint_schema.json +0 -1
  99. package/.dist/verizon-media/kit.etag.json +1 -1
  100. package/.dist/xandr/endpoint_schema.etag.json +1 -1
  101. package/.dist/xandr/endpoint_schema.json +1 -2
  102. package/.dist/xandr/kit.etag.json +1 -1
  103. package/index.js +7 -4
  104. package/package.json +1 -1
@@ -16,51 +16,155 @@
16
16
  ]
17
17
  }
18
18
  }
19
+ ],
20
+ "enrichments": [
21
+ {
22
+ "staticString": "website",
23
+ "outputKey": "action_source"
24
+ },
25
+ {
26
+ "timestamp": "seconds",
27
+ "outputKey": "event_time"
28
+ }
29
+ ],
30
+ "mappings": [
31
+ {
32
+ "inputKey": "input",
33
+ "outputKey": "user_data.em",
34
+ "transforms": [
35
+ {
36
+ "expression": {
37
+ "lang": "lua",
38
+ "body": "return TO_SHA256_HASH(LOWER(TRIM(input.context.traits.email)))"
39
+ }
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "inputKey": "messageId",
45
+ "outputKey": "event_id"
46
+ },
47
+ {
48
+ "inputKey": "context.page.url",
49
+ "outputKey": "event_source_url"
50
+ },
51
+ {
52
+ "inputKey": "context.ip",
53
+ "outputKey": "user_data.client_ip_address"
54
+ },
55
+ {
56
+ "inputKey": "context.userAgent",
57
+ "outputKey": "user_data.client_user_agent"
58
+ },
59
+ {
60
+ "inputKey": "anonymousId",
61
+ "outputKey": "user_data.external_id"
62
+ },
63
+ {
64
+ "inputKey": "context.providers.facebookPixel.fbc",
65
+ "outputKey": "user_data.fbc"
66
+ },
67
+ {
68
+ "inputKey": "context.providers.facebookPixel.fbp",
69
+ "outputKey": "user_data.fbp"
70
+ }
19
71
  ]
20
72
  },
21
73
  "eventSpecific": {
22
74
  "page": {
75
+ "enrichments": [
76
+ {
77
+ "staticString": "PageView",
78
+ "outputKey": "event_name"
79
+ }
80
+ ],
23
81
  "mappings": [
82
+ {
83
+ "inputKey": "properties.category",
84
+ "outputKey": "custom_data.content_category"
85
+ },
86
+ {
87
+ "inputKey": "properties.name",
88
+ "outputKey": "custom_data.content_name"
89
+ }
90
+ ]
91
+ },
92
+ "products_searched": {
93
+ "enrichments": [
94
+ {
95
+ "staticString": "Search",
96
+ "outputKey": "event_name"
97
+ }
98
+ ],
99
+ "mappings": [
100
+ {
101
+ "inputKey": "properties.query",
102
+ "outputKey": "custom_data.search_string"
103
+ }
104
+ ]
105
+ },
106
+ "product_viewed": {
107
+ "enrichments": [
108
+ {
109
+ "staticString": "ViewContent",
110
+ "outputKey": "event_name"
111
+ },
112
+ {
113
+ "staticString": "product",
114
+ "outputKey": "custom_data.content_type"
115
+ }
116
+ ],
117
+ "mappings": [
118
+ {
119
+ "inputKey": "properties.category",
120
+ "outputKey": "custom_data.content_category"
121
+ },
122
+ {
123
+ "inputKey": "properties.name",
124
+ "outputKey": "custom_data.content_name"
125
+ },
24
126
  {
25
127
  "inputKey": "input",
26
- "outputKey": "data",
128
+ "outputKey": "custom_data.content_ids",
27
129
  "transforms": [
28
130
  {
29
131
  "expression": {
30
132
  "lang": "lua",
31
- "body": "local userData = {\n client_ip_address=input.context.ip,\n client_user_agent=input.context.userAgent,\n fbc=input.context.providers.facebookPixel.fbc,\n fbp=input.context.providers.facebookPixel.fbp,\n external_id=input.anonymousId,\n em=TO_SHA256_HASH(LOWER(TRIM(input.context.traits.email)))\n}\nlocal customData = {\n content_category=input.properties.category,\n content_name=input.properties.name\n}\nlocal data = {\n action_source='website',\n event_id=input.messageId,\n event_source_url=input.context.page.url,\n event_name='PageView',\n event_time=SECONDS_SINCE_EPOCH(),\n user_data=userData,\n custom_data=customData\n}\nreturn { data }"
133
+ "body": "return { input.properties.product_id }"
32
134
  }
33
135
  }
34
136
  ]
35
- }
36
- ]
37
- },
38
- "products_searched": {
39
- "mappings": [
137
+ },
138
+ {
139
+ "inputKey": "properties.currency",
140
+ "outputKey": "custom_data.currency",
141
+ "transforms": [
142
+ {
143
+ "modifyString": "uppercase"
144
+ }
145
+ ],
146
+ "defaultString": "USD"
147
+ },
40
148
  {
41
149
  "inputKey": "input",
42
- "outputKey": "data",
150
+ "outputKey": "custom_data.value",
43
151
  "transforms": [
44
152
  {
45
153
  "expression": {
46
154
  "lang": "lua",
47
- "body": "local userData = {\n client_ip_address=input.context.ip,\n client_user_agent=input.context.userAgent,\n fbc=input.context.providers.facebookPixel.fbc,\n fbp=input.context.providers.facebookPixel.fbp,\n external_id=input.anonymousId,\n em=TO_SHA256_HASH(LOWER(TRIM(input.context.traits.email)))\n}\nlocal customData = {\n search_string=input.properties.query\n}\nlocal data = {\n action_source='website',\n event_id=input.messageId,\n event_source_url=input.context.page.url,\n event_name='Search',\n event_time=SECONDS_SINCE_EPOCH(),\n user_data=userData,\n custom_data=customData\n}\nreturn { data }"
155
+ "body": "return input.properties.price * (input.properties.quantity or 1)"
48
156
  }
49
157
  }
50
158
  ]
51
- }
52
- ]
53
- },
54
- "product_viewed": {
55
- "mappings": [
159
+ },
56
160
  {
57
161
  "inputKey": "input",
58
- "outputKey": "data",
162
+ "outputKey": "custom_data.contents",
59
163
  "transforms": [
60
164
  {
61
165
  "expression": {
62
166
  "lang": "lua",
63
- "body": "local userData = {\n client_ip_address=input.context.ip,\n client_user_agent=input.context.userAgent,\n fbc=input.context.providers.facebookPixel.fbc,\n fbp=input.context.providers.facebookPixel.fbp,\n external_id=input.anonymousId,\n em=TO_SHA256_HASH(LOWER(TRIM(input.context.traits.email)))\n}\nlocal customData = {\n content_ids={ input.properties.product_id } or {},\n content_category=input.properties.category,\n content_name=input.properties.name,\n content_type='product',\n contents={{\n id=input.properties.product_id,\n quantity=input.properties.quantity or 1,\n item_price=input.properties.price\n }},\n currency=UPPER(input.properties.currency) or 'USD',\n value=input.properties.price * (input.properties.quantity or 1)\n}\nlocal data = {\n action_source='website',\n event_id=input.messageId,\n event_source_url=input.context.page.url,\n event_name='ViewContent',\n event_time=SECONDS_SINCE_EPOCH(),\n user_data=userData,\n custom_data=customData\n}\nreturn { data }"
167
+ "body": "return {{\n id=input.properties.product_id,\n quantity=input.properties.quantity or 1,\n item_price=input.properties.price\n}}"
64
168
  }
65
169
  }
66
170
  ]
@@ -68,15 +172,66 @@
68
172
  ]
69
173
  },
70
174
  "product_list_viewed": {
175
+ "enrichments": [
176
+ {
177
+ "staticString": "ViewContent",
178
+ "outputKey": "event_name"
179
+ },
180
+ {
181
+ "staticString": "product",
182
+ "outputKey": "custom_data.content_type"
183
+ }
184
+ ],
71
185
  "mappings": [
186
+ {
187
+ "inputKey": "properties.category",
188
+ "outputKey": "custom_data.content_category"
189
+ },
190
+ {
191
+ "inputKey": "properties.list_id",
192
+ "outputKey": "custom_data.content_name"
193
+ },
194
+ {
195
+ "inputKey": "properties.products",
196
+ "outputKey": "custom_data.content_ids",
197
+ "transforms": [
198
+ {
199
+ "pluckValues": {
200
+ "extractKey": "product_id"
201
+ }
202
+ }
203
+ ]
204
+ },
205
+ {
206
+ "inputKey": "properties.currency",
207
+ "outputKey": "custom_data.currency",
208
+ "transforms": [
209
+ {
210
+ "modifyString": "uppercase"
211
+ }
212
+ ],
213
+ "defaultString": "USD"
214
+ },
215
+ {
216
+ "inputKey": "input",
217
+ "outputKey": "custom_data.value",
218
+ "transforms": [
219
+ {
220
+ "expression": {
221
+ "lang": "lua",
222
+ "body": "return SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end))"
223
+ }
224
+ }
225
+ ]
226
+ },
72
227
  {
73
228
  "inputKey": "input",
74
- "outputKey": "data",
229
+ "outputKey": "custom_data.contents",
75
230
  "transforms": [
76
231
  {
77
232
  "expression": {
78
233
  "lang": "lua",
79
- "body": "local userData = {\n client_ip_address=input.context.ip,\n client_user_agent=input.context.userAgent,\n fbc=input.context.providers.facebookPixel.fbc,\n fbp=input.context.providers.facebookPixel.fbp,\n external_id=input.anonymousId,\n em=TO_SHA256_HASH(LOWER(TRIM(input.context.traits.email)))\n}\nlocal customData = {\n content_ids=PLUCK(input.properties.products, 'product_id') or {},\n content_category=input.properties.category,\n content_name=input.properties.list_id,\n content_type='product',\n contents=MAP(\n input.properties.products,\n function (p)\n return {\n id=p.product_id,\n quantity=p.quantity or 1,\n item_price=p.price\n }\n end\n ),\n currency=UPPER(input.properties.currency) or 'USD',\n value=SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end))\n}\nlocal data = {\n action_source='website',\n event_id=input.messageId,\n event_source_url=input.context.page.url,\n event_name='ViewContent',\n event_time=SECONDS_SINCE_EPOCH(),\n user_data=userData,\n custom_data=customData\n}\nreturn { data }"
234
+ "body": "return MAP(\n input.properties.products,\n function (p)\n return {\n id=p.product_id,\n quantity=p.quantity or 1,\n item_price=p.price\n }\n end\n)"
80
235
  }
81
236
  }
82
237
  ]
@@ -84,15 +239,67 @@
84
239
  ]
85
240
  },
86
241
  "product_added": {
242
+ "enrichments": [
243
+ {
244
+ "staticString": "AddToCart",
245
+ "outputKey": "event_name"
246
+ },
247
+ {
248
+ "staticString": "product",
249
+ "outputKey": "custom_data.content_type"
250
+ }
251
+ ],
87
252
  "mappings": [
253
+ {
254
+ "inputKey": "properties.category",
255
+ "outputKey": "custom_data.content_category"
256
+ },
257
+ {
258
+ "inputKey": "properties.name",
259
+ "outputKey": "custom_data.content_name"
260
+ },
261
+ {
262
+ "inputKey": "input",
263
+ "outputKey": "custom_data.content_ids",
264
+ "transforms": [
265
+ {
266
+ "expression": {
267
+ "lang": "lua",
268
+ "body": "return { input.properties.product_id }"
269
+ }
270
+ }
271
+ ]
272
+ },
273
+ {
274
+ "inputKey": "properties.currency",
275
+ "outputKey": "custom_data.currency",
276
+ "transforms": [
277
+ {
278
+ "modifyString": "uppercase"
279
+ }
280
+ ],
281
+ "defaultString": "USD"
282
+ },
88
283
  {
89
284
  "inputKey": "input",
90
- "outputKey": "data",
285
+ "outputKey": "custom_data.value",
91
286
  "transforms": [
92
287
  {
93
288
  "expression": {
94
289
  "lang": "lua",
95
- "body": "local userData = {\n client_ip_address=input.context.ip,\n client_user_agent=input.context.userAgent,\n fbc=input.context.providers.facebookPixel.fbc,\n fbp=input.context.providers.facebookPixel.fbp,\n external_id=input.anonymousId,\n em=TO_SHA256_HASH(LOWER(TRIM(input.context.traits.email)))\n}\nlocal customData = {\n content_ids={ input.properties.product_id } or {},\n content_category=input.properties.category,\n content_name=input.properties.name,\n content_type='product',\n contents={{\n id=input.properties.product_id,\n quantity=input.properties.quantity or 1,\n item_price=input.properties.price\n }},\n currency=UPPER(input.properties.currency) or 'USD',\n value=input.properties.price * (input.properties.quantity or 1)\n}\nlocal data = {\n action_source='website',\n event_id=input.messageId,\n event_source_url=input.context.page.url,\n event_name='AddToCart',\n event_time=SECONDS_SINCE_EPOCH(),\n user_data=userData,\n custom_data=customData\n}\nreturn { data }"
290
+ "body": "return input.properties.price * (input.properties.quantity or 1)"
291
+ }
292
+ }
293
+ ]
294
+ },
295
+ {
296
+ "inputKey": "input",
297
+ "outputKey": "custom_data.contents",
298
+ "transforms": [
299
+ {
300
+ "expression": {
301
+ "lang": "lua",
302
+ "body": "return {{\n id=input.properties.product_id,\n quantity=input.properties.quantity or 1,\n item_price=input.properties.price\n}}"
96
303
  }
97
304
  }
98
305
  ]
@@ -100,15 +307,58 @@
100
307
  ]
101
308
  },
102
309
  "cart_viewed": {
310
+ "enrichments": [
311
+ {
312
+ "staticString": "ViewContent",
313
+ "outputKey": "event_name"
314
+ },
315
+ {
316
+ "staticString": "product",
317
+ "outputKey": "custom_data.content_type"
318
+ }
319
+ ],
103
320
  "mappings": [
321
+ {
322
+ "inputKey": "properties.products",
323
+ "outputKey": "custom_data.content_ids",
324
+ "transforms": [
325
+ {
326
+ "pluckValues": {
327
+ "extractKey": "product_id"
328
+ }
329
+ }
330
+ ]
331
+ },
332
+ {
333
+ "inputKey": "properties.currency",
334
+ "outputKey": "custom_data.currency",
335
+ "transforms": [
336
+ {
337
+ "modifyString": "uppercase"
338
+ }
339
+ ],
340
+ "defaultString": "USD"
341
+ },
342
+ {
343
+ "inputKey": "input",
344
+ "outputKey": "custom_data.value",
345
+ "transforms": [
346
+ {
347
+ "expression": {
348
+ "lang": "lua",
349
+ "body": "return SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end))"
350
+ }
351
+ }
352
+ ]
353
+ },
104
354
  {
105
355
  "inputKey": "input",
106
- "outputKey": "data",
356
+ "outputKey": "custom_data.contents",
107
357
  "transforms": [
108
358
  {
109
359
  "expression": {
110
360
  "lang": "lua",
111
- "body": "local userData = {\n client_ip_address=input.context.ip,\n client_user_agent=input.context.userAgent,\n fbc=input.context.providers.facebookPixel.fbc,\n fbp=input.context.providers.facebookPixel.fbp,\n external_id=input.anonymousId,\n em=TO_SHA256_HASH(LOWER(TRIM(input.context.traits.email)))\n}\nlocal customData = {\n content_ids=PLUCK(input.properties.products, 'product_id') or {},\n content_type='product',\n contents=MAP(\n input.properties.products,\n function (p)\n return {\n id=p.product_id,\n quantity=p.quantity or 1,\n item_price=p.price\n }\n end\n ),\n currency=UPPER(input.properties.currency) or 'USD',\n value=SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end))\n}\nlocal data = {\n action_source='website',\n event_id=input.messageId,\n event_source_url=input.context.page.url,\n event_name='ViewContent',\n event_time=SECONDS_SINCE_EPOCH(),\n user_data=userData,\n custom_data=customData\n}\nreturn { data }"
361
+ "body": "return MAP(\n input.properties.products,\n function (p)\n return {\n id=p.product_id,\n quantity=p.quantity or 1,\n item_price=p.price\n }\n end\n)"
112
362
  }
113
363
  }
114
364
  ]
@@ -116,18 +366,65 @@
116
366
  ]
117
367
  },
118
368
  "order_completed": {
369
+ "enrichments": [
370
+ {
371
+ "staticString": "Purchase",
372
+ "outputKey": "event_name"
373
+ },
374
+ {
375
+ "staticString": "product",
376
+ "outputKey": "custom_data.content_type"
377
+ }
378
+ ],
119
379
  "mappings": [
380
+ {
381
+ "inputKey": "properties.products",
382
+ "outputKey": "custom_data.content_ids",
383
+ "transforms": [
384
+ {
385
+ "pluckValues": {
386
+ "extractKey": "product_id"
387
+ }
388
+ }
389
+ ]
390
+ },
391
+ {
392
+ "inputKey": "properties.currency",
393
+ "outputKey": "custom_data.currency",
394
+ "transforms": [
395
+ {
396
+ "modifyString": "uppercase"
397
+ }
398
+ ],
399
+ "defaultString": "USD"
400
+ },
401
+ {
402
+ "inputKey": "input",
403
+ "outputKey": "custom_data.value",
404
+ "transforms": [
405
+ {
406
+ "expression": {
407
+ "lang": "lua",
408
+ "body": "return SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end))"
409
+ }
410
+ }
411
+ ]
412
+ },
120
413
  {
121
414
  "inputKey": "input",
122
- "outputKey": "data",
415
+ "outputKey": "custom_data.contents",
123
416
  "transforms": [
124
417
  {
125
418
  "expression": {
126
419
  "lang": "lua",
127
- "body": "local userData = {\n client_ip_address=input.context.ip,\n client_user_agent=input.context.userAgent,\n fbc=input.context.providers.facebookPixel.fbc,\n fbp=input.context.providers.facebookPixel.fbp,\n external_id=input.anonymousId,\n em=TO_SHA256_HASH(LOWER(TRIM(input.context.traits.email)))\n}\nlocal customData = {\n content_ids=PLUCK(input.properties.products, 'product_id') or {},\n content_type='product',\n contents=MAP(\n input.properties.products,\n function (p)\n return {\n id=p.product_id,\n quantity=p.quantity or 1,\n item_price=p.price\n }\n end\n ),\n currency=UPPER(input.properties.currency) or 'USD',\n value=SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end)),\n order_id=input.properties.order_id\n}\nlocal data = {\n action_source='website',\n event_id=input.messageId,\n event_source_url=input.context.page.url,\n event_name='Purchase',\n event_time=SECONDS_SINCE_EPOCH(),\n user_data=userData,\n custom_data=customData\n}\nreturn { data }"
420
+ "body": "return MAP(\n input.properties.products,\n function (p)\n return {\n id=p.product_id,\n quantity=p.quantity or 1,\n item_price=p.price\n }\n end\n)"
128
421
  }
129
422
  }
130
423
  ]
424
+ },
425
+ {
426
+ "inputKey": "properties.order_id",
427
+ "outputKey": "custom_data.order_id"
131
428
  }
132
429
  ]
133
430
  }
@@ -1 +1 @@
1
- "1549dc724fd64320c253f316c6d40a08"
1
+ "6b43ed086a94df1146973713df5a9313"
@@ -7,7 +7,6 @@
7
7
  ],
8
8
  "default": {
9
9
  "endpoint": "https://www.googleadservices.com/pagead/conversion/$$CONVERSION_ID$$/",
10
- "method": "GET",
11
- "timeout": "30s"
10
+ "method": "GET"
12
11
  }
13
12
  }
@@ -1 +1 @@
1
- "09f4f1796b68bebeaef220b9d0fc5a34"
1
+ "fe4df70b5b9331db7009d96e3ab8a66d"
@@ -1 +1 @@
1
- "9d5b154727e37ddb95f048cb3f4d46cb"
1
+ "fe661136b97429236cab9617b39b1930"
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "default": {
3
3
  "endpoint": "https://www.google-analytics.com/collect",
4
- "method": "GET",
5
- "timeout": "30s"
4
+ "method": "GET"
6
5
  }
7
6
  }
@@ -1 +1 @@
1
- "e71977666b0c7f77cad64408ba7007ae"
1
+ "8df13fb27e6e880029db92afec41b893"
@@ -1 +1 @@
1
- "292c69b0ad838d1c4509863f62fb5c08"
1
+ "d57939f1af32b8bab3de9a469358e7c0"
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "default": {
3
3
  "endpoint": "https://fls.doubleclick.net/activityj",
4
- "method": "GET",
5
- "timeout": "30s"
4
+ "method": "GET"
6
5
  }
7
6
  }
@@ -1 +1 @@
1
- "a4e12d2527ceb90de9f096c1a89bf3bf"
1
+ "f0813b1d73fd39d33ad4d269b9687dcf"
@@ -1 +1 @@
1
- "629b812b8ee788d4a73f2e9270fe1646"
1
+ "14e009ff28748036c7de3c157646d964"
@@ -25,8 +25,7 @@
25
25
  "value": "application/json"
26
26
  }
27
27
  ],
28
- "method": "POST",
29
- "timeout": "30s"
28
+ "method": "POST"
30
29
  },
31
30
  "eventSpecific": {
32
31
  "page": {
@@ -45,8 +44,7 @@
45
44
  "value": "application/json"
46
45
  }
47
46
  ],
48
- "method": "POST",
49
- "timeout": "30s"
47
+ "method": "POST"
50
48
  }
51
49
  }
52
50
  }
@@ -1 +1 @@
1
- "a7f9fc4e895ce12ba2b9b000394b7fad"
1
+ "20e35ac5e5c6aeb14cb1cf93618d3d43"
@@ -1 +1 @@
1
- "e7aea9d282711734d48759c055bbb61d"
1
+ "d23fa41aaa44fc3eefeecd7dcbfa305e"
@@ -12,7 +12,6 @@
12
12
  "default": {
13
13
  "endpoint": "https://lciapi.ninthdecimal.com/v1/lci/imp/adv-$$CHANNEL_PARTNER$$/$$CAMPAIGN_ID$$",
14
14
  "method": "GET",
15
- "timeout": "30s",
16
15
  "queryEncoding": "use_path_escape_encoding"
17
16
  }
18
17
  }
@@ -1 +1 @@
1
- "ea5f4860b9c64f553e319a87292a6630"
1
+ "4c7af61a2ea19af7bc90c369e8b952e8"
@@ -1 +1 @@
1
- "286c91f5bbe56eaf678b88c9cc721b05"
1
+ "e2a57fe2f73bee93df70eef94f815dba"
@@ -17,7 +17,6 @@
17
17
  "value": "$$API_KEY$$"
18
18
  }
19
19
  ],
20
- "method": "POST",
21
- "timeout": "30s"
20
+ "method": "POST"
22
21
  }
23
22
  }
@@ -1 +1 @@
1
- "a0fdeb9edc201c20c3ec2a441fa581eb"
1
+ "dd042934be9c183b64d94a880e95d2e7"
@@ -1 +1 @@
1
- "adc120fd3a63d38b2961f2fdf10cd33b"
1
+ "9bc7c99c29c8760a0a24084f4519a379"
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "default": {
3
3
  "endpoint": "https://pixel-s2s.mathtag.com/event/js",
4
- "method": "GET",
5
- "timeout": "30s"
4
+ "method": "GET"
6
5
  }
7
6
  }
@@ -1 +1 @@
1
- "fa07d3dc1246507706e1ae221fcab403"
1
+ "adac5f81fc8e2d9c6a0b7cd271d078b6"
@@ -1 +1 @@
1
- "13f8434001d8e0d344aea39b3a1dc0a1"
1
+ "f90c21ebc6efcfba117ead8bfddb2d4d"
@@ -13,7 +13,6 @@
13
13
  "value": "application/json"
14
14
  }
15
15
  ],
16
- "method": "POST",
17
- "timeout": "30s"
16
+ "method": "POST"
18
17
  }
19
18
  }
@@ -1 +1 @@
1
- "0f07c9273b3d1bf78a1f9b9a7bcb1a48"
1
+ "df8f9cc1d15cfc15dd37806e055407e0"
@@ -1 +1 @@
1
- "ce8060522d74e5c6adbdf28a15824066"
1
+ "f995e2e49cdccf04072c115054510dcb"
@@ -11,7 +11,6 @@
11
11
  "fromEventKey": "context.page.referrer"
12
12
  }
13
13
  ],
14
- "method": "GET",
15
- "timeout": "30s"
14
+ "method": "GET"
16
15
  }
17
16
  }
@@ -1 +1 @@
1
- "52d66d295a5da9e6d15850fe6fafc5e6"
1
+ "5c3a8f10e9b1d414c5aa740e70e54f25"
@@ -1 +1 @@
1
- "bbc0697c3a7ba959a0b90f79c8e08745"
1
+ "2350b4fa645defff4580ef549721d7b5"
@@ -11,7 +11,6 @@
11
11
  "fromEventKey": "context.page.referrer"
12
12
  }
13
13
  ],
14
- "method": "GET",
15
- "timeout": "30s"
14
+ "method": "GET"
16
15
  }
17
16
  }
@@ -1 +1 @@
1
- "4a111dfc2625d26eb28b374894f08679"
1
+ "b7e66a4b1e4987c34dd116c69f1b4421"
@@ -1 +1 @@
1
- "95ee28159d6c249aa2c60c84989579e0"
1
+ "df6ed858e979dc81ef01fc4fbd8e80aa"
@@ -7,7 +7,6 @@
7
7
  ],
8
8
  "default": {
9
9
  "endpoint": "https://pix.revjet.com/track/$$ACCOUNT_ID$$",
10
- "method": "GET",
11
- "timeout": "30s"
10
+ "method": "GET"
12
11
  }
13
12
  }
@@ -1 +1 @@
1
- "582f84275c5b67473debb0ca64a61bec"
1
+ "8c5baa542641f459e7635311addb63b0"