@metarouter/ajs-starter-kit 1.0.52 → 1.0.54
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/acuity-ads/kit.etag.json +1 -1
- package/.dist/acuity-ads/metadata.json +1 -1
- package/.dist/adobe/kit.etag.json +1 -1
- package/.dist/adobe/metadata.json +1 -1
- package/.dist/adobe-analytics/connection.etag.json +1 -0
- package/.dist/adobe-analytics/connection.json +42 -0
- package/.dist/adobe-analytics/kit.etag.json +1 -0
- package/.dist/adobe-analytics/metadata.json +20 -0
- package/.dist/adobe-analytics/playbook.etag.json +1 -0
- package/.dist/adobe-analytics/playbook.json +71 -0
- package/.dist/adobe-id/connection.etag.json +1 -0
- package/.dist/adobe-id/connection.json +24 -0
- package/.dist/adobe-id/kit.etag.json +1 -0
- package/.dist/adobe-id/metadata.json +20 -0
- package/.dist/adobe-id/playbook.etag.json +1 -0
- package/.dist/adobe-id/playbook.json +74 -0
- package/.dist/amazon-redshift-v2/kit.etag.json +1 -1
- package/.dist/amazon-redshift-v2/metadata.json +1 -1
- package/.dist/amnet/kit.etag.json +1 -1
- package/.dist/amnet/metadata.json +1 -1
- package/.dist/amobee/kit.etag.json +1 -1
- package/.dist/amplitude/kit.etag.json +1 -1
- package/.dist/amplitude/metadata.json +1 -1
- package/.dist/apps-flyer-android/kit.etag.json +1 -1
- package/.dist/apps-flyer-android/metadata.json +1 -1
- package/.dist/apps-flyer-ios/kit.etag.json +1 -1
- package/.dist/apps-flyer-ios/metadata.json +1 -1
- package/.dist/bing-ads/kit.etag.json +1 -1
- package/.dist/bing-ads/playbook.etag.json +1 -1
- package/.dist/bing-ads/playbook.json +2 -2
- package/.dist/blob/kit.etag.json +1 -1
- package/.dist/bloomreach/kit.etag.json +1 -1
- package/.dist/bloomreach/metadata.json +1 -1
- package/.dist/blueshift/kit.etag.json +1 -1
- package/.dist/blueshift/metadata.json +1 -1
- package/.dist/braze/kit.etag.json +1 -1
- package/.dist/criteo/kit.etag.json +1 -1
- package/.dist/criteo/metadata.json +1 -1
- package/.dist/customer-io/kit.etag.json +1 -1
- package/.dist/customer-io/metadata.json +1 -1
- package/.dist/facebook-pixel/kit.etag.json +1 -1
- package/.dist/gcs/kit.etag.json +1 -1
- package/.dist/google-ad-words/kit.etag.json +1 -1
- package/.dist/google-analytics/kit.etag.json +1 -1
- package/.dist/google-analytics/playbook.etag.json +1 -1
- package/.dist/google-analytics/playbook.json +1 -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 +2 -2
- package/.dist/google-bigquery-streaming/kit.etag.json +1 -1
- package/.dist/google-bigquery-streaming/metadata.json +1 -1
- package/.dist/google-cm360/kit.etag.json +1 -1
- package/.dist/google-cm360/metadata.json +1 -1
- package/.dist/google-double-click/kit.etag.json +1 -1
- package/.dist/google-double-click/metadata.json +1 -1
- package/.dist/google-pubsub/kit.etag.json +1 -1
- package/.dist/google-pubsub/metadata.json +1 -1
- package/.dist/hubspot-event/connection.etag.json +1 -0
- package/.dist/hubspot-event/connection.json +22 -0
- package/.dist/hubspot-event/kit.etag.json +1 -0
- package/.dist/hubspot-event/metadata.json +20 -0
- package/.dist/hubspot-event/playbook.etag.json +1 -0
- package/.dist/hubspot-event/playbook.json +63 -0
- package/.dist/impact-radius/kit.etag.json +1 -1
- package/.dist/impact-radius/metadata.json +1 -1
- package/.dist/in-market/kit.etag.json +1 -1
- package/.dist/in-market/metadata.json +1 -1
- package/.dist/in-market/playbook.etag.json +1 -1
- package/.dist/in-market/playbook.json +1 -1
- package/.dist/kafka/kit.etag.json +1 -1
- package/.dist/kafka/metadata.json +1 -1
- package/.dist/kinesis/kit.etag.json +1 -1
- package/.dist/kinesis/metadata.json +1 -1
- package/.dist/lytics/kit.etag.json +1 -1
- package/.dist/lytics/metadata.json +1 -1
- package/.dist/media-math/kit.etag.json +1 -1
- package/.dist/merkle/kit.etag.json +1 -1
- package/.dist/miq-xandr/connection.etag.json +1 -0
- package/.dist/miq-xandr/connection.json +12 -0
- package/.dist/miq-xandr/kit.etag.json +1 -0
- package/.dist/miq-xandr/metadata.json +20 -0
- package/.dist/miq-xandr/playbook.etag.json +1 -0
- package/.dist/miq-xandr/playbook.json +79 -0
- package/.dist/mixpanel/kit.etag.json +1 -1
- package/.dist/movable-ink/kit.etag.json +1 -1
- package/.dist/nextdoor/connection.etag.json +1 -0
- package/.dist/nextdoor/connection.json +31 -0
- package/.dist/nextdoor/kit.etag.json +1 -0
- package/.dist/nextdoor/metadata.json +20 -0
- package/.dist/nextdoor/playbook.etag.json +1 -0
- package/.dist/nextdoor/playbook.json +111 -0
- package/.dist/pinterest/kit.etag.json +1 -1
- package/.dist/pinterest/playbook.etag.json +1 -1
- package/.dist/pinterest/playbook.json +4 -4
- package/.dist/pinterest-capi/connection.etag.json +1 -0
- package/.dist/pinterest-capi/connection.json +35 -0
- package/.dist/pinterest-capi/kit.etag.json +1 -0
- package/.dist/pinterest-capi/metadata.json +20 -0
- package/.dist/pinterest-capi/playbook.etag.json +1 -0
- package/.dist/pinterest-capi/playbook.json +288 -0
- package/.dist/podsights/connection.etag.json +1 -0
- package/.dist/podsights/connection.json +6 -0
- package/.dist/podsights/kit.etag.json +1 -0
- package/.dist/podsights/metadata.json +20 -0
- package/.dist/podsights/playbook.etag.json +1 -0
- package/.dist/podsights/playbook.json +132 -0
- package/.dist/rev-jet/kit.etag.json +1 -1
- package/.dist/rev-jet/metadata.json +1 -1
- package/.dist/roomvo/kit.etag.json +1 -1
- package/.dist/s3/kit.etag.json +1 -1
- package/.dist/s3/metadata.json +1 -1
- package/.dist/salesforce-cdp/kit.etag.json +1 -1
- package/.dist/snapchat/kit.etag.json +1 -1
- package/.dist/snapchat/playbook.etag.json +1 -1
- package/.dist/snapchat/playbook.json +2 -2
- package/.dist/snowflake/kit.etag.json +1 -1
- package/.dist/thetradedesk-conversion-events/kit.etag.json +1 -1
- package/.dist/thetradedesk-conversion-events/metadata.json +1 -1
- package/.dist/thetradedesk-conversion-events/playbook.etag.json +1 -1
- package/.dist/thetradedesk-conversion-events/playbook.json +5 -5
- package/.dist/thetradedesk-data-advertiser-firstparty/connection.etag.json +1 -1
- package/.dist/thetradedesk-data-advertiser-firstparty/connection.json +1 -1
- package/.dist/thetradedesk-data-advertiser-firstparty/kit.etag.json +1 -1
- package/.dist/thetradedesk-data-advertiser-firstparty/metadata.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/tiktok/connection.etag.json +1 -0
- package/.dist/tiktok/connection.json +35 -0
- package/.dist/tiktok/kit.etag.json +1 -0
- package/.dist/tiktok/metadata.json +20 -0
- package/.dist/tiktok/playbook.etag.json +1 -0
- package/.dist/tiktok/playbook.json +346 -0
- package/.dist/twitter-conversions/kit.etag.json +1 -1
- package/.dist/twitter-conversions/playbook.etag.json +1 -1
- package/.dist/twitter-conversions/playbook.json +3 -3
- package/.dist/verizon-media/kit.etag.json +1 -1
- package/.dist/videoamp/kit.etag.json +1 -1
- package/.dist/videoamp/metadata.json +1 -1
- package/.dist/xandr/kit.etag.json +1 -1
- package/.dist/yahoo-enhanced-attribution/connection.etag.json +1 -0
- package/.dist/yahoo-enhanced-attribution/connection.json +77 -0
- package/.dist/yahoo-enhanced-attribution/kit.etag.json +1 -0
- package/.dist/yahoo-enhanced-attribution/metadata.json +20 -0
- package/.dist/yahoo-enhanced-attribution/playbook.etag.json +1 -0
- package/.dist/yahoo-enhanced-attribution/playbook.json +96 -0
- package/.dist/yahoo-offline-conversion/connection.etag.json +1 -0
- package/.dist/yahoo-offline-conversion/connection.json +76 -0
- package/.dist/yahoo-offline-conversion/kit.etag.json +1 -0
- package/.dist/yahoo-offline-conversion/metadata.json +20 -0
- package/.dist/yahoo-offline-conversion/playbook.etag.json +1 -0
- package/.dist/yahoo-offline-conversion/playbook.json +267 -0
- package/index.js +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "v0.0.1",
|
|
3
|
+
"global": {
|
|
4
|
+
"enrichments": [
|
|
5
|
+
{
|
|
6
|
+
"outputKey": "partner_name",
|
|
7
|
+
"staticString": "MetaRouter"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"outputKey": "custom_data.opt_out_type",
|
|
11
|
+
"staticString": "LDP"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"mappings": [
|
|
15
|
+
{
|
|
16
|
+
"inputKey": "input",
|
|
17
|
+
"outputKey": "action_source",
|
|
18
|
+
"transforms": [
|
|
19
|
+
{
|
|
20
|
+
"expression": {
|
|
21
|
+
"body": "if input.context.app.name or input.context.device.type or input.context.os.name then\n if input.context.device.manufacturer and input.context.device.manufacturer == 'Apple' then\n return 'app_ios'\n end\n return 'app_android'\nend\nreturn 'web'",
|
|
22
|
+
"lang": "lua"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"inputKey": "input",
|
|
29
|
+
"outputKey": "event_time",
|
|
30
|
+
"transforms": [
|
|
31
|
+
{
|
|
32
|
+
"expression": {
|
|
33
|
+
"lang": "lua",
|
|
34
|
+
"body": "local date = input.originalTimestamp or input.sentAt\nreturn SECONDS_SINCE_EPOCH_FROM_RFC3999(TO_DATE_TIME(date, { inputFormat = \"2006-01-02T15:04:05Z07:00\" }))"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"inputKey": "messageId",
|
|
41
|
+
"outputKey": "event_id"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"inputKey": "context.page.url",
|
|
45
|
+
"outputKey": "event_source_url"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"inputKey": "input",
|
|
49
|
+
"outputKey": "user_data.em",
|
|
50
|
+
"transforms": [
|
|
51
|
+
{
|
|
52
|
+
"expression": {
|
|
53
|
+
"lang": "lua",
|
|
54
|
+
"body": "return { TO_SHA256_HASH(LOWER(TRIM(input.traits.email))) }"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"inputKey": "context.ip",
|
|
61
|
+
"outputKey": "user_data.client_ip_address"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"inputKey": "context.userAgent",
|
|
65
|
+
"outputKey": "user_data.client_user_agent"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"inputKey": "input",
|
|
69
|
+
"outputKey": "user_data.ct",
|
|
70
|
+
"transforms": [
|
|
71
|
+
{
|
|
72
|
+
"expression": {
|
|
73
|
+
"lang": "lua",
|
|
74
|
+
"body": "return { TO_SHA256_HASH(input.traits.city) }"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"inputKey": "input",
|
|
81
|
+
"outputKey": "user_data.st",
|
|
82
|
+
"transforms": [
|
|
83
|
+
{
|
|
84
|
+
"expression": {
|
|
85
|
+
"lang": "lua",
|
|
86
|
+
"body": "return { TO_SHA256_HASH(input.traits.state) }"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"inputKey": "input",
|
|
93
|
+
"outputKey": "user_data.zp",
|
|
94
|
+
"transforms": [
|
|
95
|
+
{
|
|
96
|
+
"expression": {
|
|
97
|
+
"lang": "lua",
|
|
98
|
+
"body": "return { TO_SHA256_HASH(input.traits.zipcode) }"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"inputKey": "input",
|
|
105
|
+
"outputKey": "user_data.country",
|
|
106
|
+
"transforms": [
|
|
107
|
+
{
|
|
108
|
+
"expression": {
|
|
109
|
+
"lang": "lua",
|
|
110
|
+
"body": "return { TO_SHA256_HASH(input.traits.country) }"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"inputKey": "input",
|
|
117
|
+
"outputKey": "user_data.external_id",
|
|
118
|
+
"transforms": [
|
|
119
|
+
{
|
|
120
|
+
"expression": {
|
|
121
|
+
"lang": "lua",
|
|
122
|
+
"body": "return { TO_SHA256_HASH(input.anonymousId) }"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"inputKey": "context.providers.pinterestCAPI.epik",
|
|
129
|
+
"outputKey": "user_data.click_id"
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
"eventSpecific": {
|
|
134
|
+
"page": {
|
|
135
|
+
"enrichments": [
|
|
136
|
+
{
|
|
137
|
+
"outputKey": "event_name",
|
|
138
|
+
"staticString": "page_visit"
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
"products_searched": {
|
|
143
|
+
"enrichments": [
|
|
144
|
+
{
|
|
145
|
+
"outputKey": "event_name",
|
|
146
|
+
"staticString": "search"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"mappings": [
|
|
150
|
+
{
|
|
151
|
+
"inputKey": "properties.query",
|
|
152
|
+
"outputKey": "custom_data.search_string"
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
"product_added": {
|
|
157
|
+
"enrichments": [
|
|
158
|
+
{
|
|
159
|
+
"outputKey": "event_name",
|
|
160
|
+
"staticString": "add_to_cart"
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"mappings": [
|
|
164
|
+
{
|
|
165
|
+
"inputKey": "properties.currency",
|
|
166
|
+
"outputKey": "custom_data.currency",
|
|
167
|
+
"defaultString": "USD",
|
|
168
|
+
"transforms": [
|
|
169
|
+
{
|
|
170
|
+
"modifyString": "uppercase"
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"inputKey": "input",
|
|
176
|
+
"outputKey": "custom_data.value",
|
|
177
|
+
"transforms": [
|
|
178
|
+
{
|
|
179
|
+
"expression": {
|
|
180
|
+
"lang": "lua",
|
|
181
|
+
"body": "return input.properties.price * (input.properties.quantity or 1)"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"inputKey": "input",
|
|
188
|
+
"outputKey": "custom_data.content_ids",
|
|
189
|
+
"transforms": [
|
|
190
|
+
{
|
|
191
|
+
"expression": {
|
|
192
|
+
"body": "return {{ input.properties.product_id }}",
|
|
193
|
+
"lang": "lua"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"inputKey": "input",
|
|
200
|
+
"outputKey": "custom_data.contents",
|
|
201
|
+
"transforms": [
|
|
202
|
+
{
|
|
203
|
+
"expression": {
|
|
204
|
+
"body": "return {{\n content_id=input.properties.product_id,\n content_name=input.properties.name,\n content_category=input.properties.category,\n price=input.properties.price,\n quantity=input.properties.quantity,\n content_type=\"product\"\n}}",
|
|
205
|
+
"lang": "lua"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"inputKey": "properties.quantity",
|
|
212
|
+
"outputKey": "custom_data.num_items"
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
"order_completed": {
|
|
217
|
+
"enrichments": [
|
|
218
|
+
{
|
|
219
|
+
"outputKey": "event_name",
|
|
220
|
+
"staticString": "checkout"
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"mappings": [
|
|
224
|
+
{
|
|
225
|
+
"inputKey": "properties.currency",
|
|
226
|
+
"outputKey": "custom_data.currency",
|
|
227
|
+
"transforms": [
|
|
228
|
+
{
|
|
229
|
+
"modifyString": "uppercase"
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"inputKey": "input",
|
|
235
|
+
"outputKey": "custom_data.value",
|
|
236
|
+
"transforms": [
|
|
237
|
+
{
|
|
238
|
+
"expression": {
|
|
239
|
+
"lang": "lua",
|
|
240
|
+
"body": "return SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end))"
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"inputKey": "input",
|
|
247
|
+
"outputKey": "custom_data.content_ids",
|
|
248
|
+
"transforms": [
|
|
249
|
+
{
|
|
250
|
+
"expression": {
|
|
251
|
+
"body": "return MAP(input.properties.products, function (p) return p.product_id end )",
|
|
252
|
+
"lang": "lua"
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"inputKey": "input",
|
|
259
|
+
"outputKey": "custom_data.contents",
|
|
260
|
+
"transforms": [
|
|
261
|
+
{
|
|
262
|
+
"expression": {
|
|
263
|
+
"body": "local contents=MAP(input.properties.products,\n function (p)\n return {\n content_id=p.product_id,\n content_name=p.name,\n content_category=p.category,\n price=p.price,\n quantity=p.quantity,\n content_type=\"product\"\n }\n end\n)\nreturn contents",
|
|
264
|
+
"lang": "lua"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"inputKey": "input",
|
|
271
|
+
"outputKey": "custom_data.num_items",
|
|
272
|
+
"transforms": [
|
|
273
|
+
{
|
|
274
|
+
"expression": {
|
|
275
|
+
"lang": "lua",
|
|
276
|
+
"body": "return SUM(MAP(input.properties.products, function (p) return p.quantity or 1 end))"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
]
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"inputKey": "properties.order_id",
|
|
283
|
+
"outputKey": "custom_data.order_id"
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"929d2a5ebd090a614299ad199cc76865"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"d41d8cd98f00b204e9800998ecf8427e"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"isDraft": false,
|
|
3
|
+
"isBeta": true,
|
|
4
|
+
"friendlyName": "Podsights",
|
|
5
|
+
"description": "Brands and agencies use Podsights to validate and scale their podcast advertising.",
|
|
6
|
+
"logo": "https://cdn.metarouter.io/logo.svg",
|
|
7
|
+
"color": "#687FFF",
|
|
8
|
+
"eventSource": {
|
|
9
|
+
"isAndroidApp": true,
|
|
10
|
+
"isIosApp": true,
|
|
11
|
+
"isWebApp": true
|
|
12
|
+
},
|
|
13
|
+
"inputSchema": "analytics_js",
|
|
14
|
+
"releaseNotes": [
|
|
15
|
+
{
|
|
16
|
+
"date": "2023-03-07T00:00:00.000Z",
|
|
17
|
+
"note": "Podsights initial release."
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"b053c0dcbf9210ddf6a6849ba9776f94"
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "v0.0.1",
|
|
3
|
+
"params": [
|
|
4
|
+
{
|
|
5
|
+
"name": "KEY",
|
|
6
|
+
"defaultValue": "key"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"default": {
|
|
10
|
+
"filters": [
|
|
11
|
+
{
|
|
12
|
+
"byEventNames": {
|
|
13
|
+
"action": "allow",
|
|
14
|
+
"events": [
|
|
15
|
+
""
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"global": {
|
|
22
|
+
"enrichments": [
|
|
23
|
+
{
|
|
24
|
+
"outputKey": "podsights_key",
|
|
25
|
+
"staticString": "$$KEY$$"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"filters": [
|
|
29
|
+
{
|
|
30
|
+
"byEventNames": {
|
|
31
|
+
"action": "allow",
|
|
32
|
+
"events": [
|
|
33
|
+
"page",
|
|
34
|
+
"order_completed"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"mappings": [
|
|
40
|
+
{
|
|
41
|
+
"inputKey": "messageId",
|
|
42
|
+
"outputKey": "messageId"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"inputKey": "userId",
|
|
46
|
+
"outputKey": "userId"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"inputKey": "previousId",
|
|
50
|
+
"outputKey": "previousId"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"inputKey": "anonymousId",
|
|
54
|
+
"outputKey": "anonymousId"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"inputKey": "originalTimestamp",
|
|
58
|
+
"outputKey": "originalTimestamp"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"inputKey": "receivedAt",
|
|
62
|
+
"outputKey": "receivedAt"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"inputKey": "sentAt",
|
|
66
|
+
"outputKey": "sentAt"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"inputKey": "timestamp",
|
|
70
|
+
"outputKey": "timestamp"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"inputKey": "type",
|
|
74
|
+
"outputKey": "type"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"inputKey": "context.page",
|
|
78
|
+
"outputKey": "context.page"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"inputKey": "context.library",
|
|
82
|
+
"outputKey": "context.library"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"inputKey": "context.userAgent",
|
|
86
|
+
"outputKey": "context.userAgent"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"inputKey": "context.ip",
|
|
90
|
+
"outputKey": "context.ip"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"eventSpecific": {
|
|
95
|
+
"page": {
|
|
96
|
+
"mappings": [
|
|
97
|
+
{
|
|
98
|
+
"inputKey": "name",
|
|
99
|
+
"outputKey": "name"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"inputKey": "category",
|
|
103
|
+
"outputKey": "category"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"inputKey": "properties",
|
|
107
|
+
"outputKey": "properties"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"order_completed": {
|
|
112
|
+
"mappings": [
|
|
113
|
+
{
|
|
114
|
+
"inputKey": "event",
|
|
115
|
+
"outputKey": "event"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"inputKey": "input",
|
|
119
|
+
"outputKey": "properties",
|
|
120
|
+
"transforms": [
|
|
121
|
+
{
|
|
122
|
+
"expression": {
|
|
123
|
+
"lang": "lua",
|
|
124
|
+
"body": "local props = {}\nfor key, value in pairs(input.properties) do\n if key == \"products\" then\n local prods = {}\n for index, val in ipairs(input.properties.products) do\n local productIndex = \"products_\" .. tostring(index-1)\n props[productIndex] = val\n end\n else\n props[key] = tostring(value)\n end\nend\nreturn props"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d41d8cd98f00b204e9800998ecf8427e"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"isDraft": false,
|
|
3
3
|
"isBeta": true,
|
|
4
4
|
"friendlyName": "RevJet",
|
|
5
|
-
"description": "A tool designed to help enterprises manage how advertising content is personalized across media channels
|
|
5
|
+
"description": "A tool designed to help enterprises manage how advertising content is personalized across media channels,\nincluding dynamic creative optimization and experimentation.",
|
|
6
6
|
"logo": "https://cdn.metarouter.io/logo.svg",
|
|
7
7
|
"color": "#FF430A",
|
|
8
8
|
"eventSource": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d41d8cd98f00b204e9800998ecf8427e"
|
package/.dist/s3/kit.etag.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d41d8cd98f00b204e9800998ecf8427e"
|
package/.dist/s3/metadata.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"isDraft": false,
|
|
3
3
|
"isBeta": false,
|
|
4
4
|
"friendlyName": "Amazon S3",
|
|
5
|
-
"description": "Amazon Simple Storage Service (Amazon S3) is an object storage service
|
|
5
|
+
"description": "Amazon Simple Storage Service (Amazon S3) is an object storage service\nthat offers industry-leading scalability, data availability, security, and performance.",
|
|
6
6
|
"logo": "https://cdn.metarouter.io/logo.svg",
|
|
7
7
|
"color": "#e1523c",
|
|
8
8
|
"eventSource": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d41d8cd98f00b204e9800998ecf8427e"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d41d8cd98f00b204e9800998ecf8427e"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"f6956e3139b33ab88851bda198412aef"
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
{
|
|
199
199
|
"expression": {
|
|
200
200
|
"lang": "lua",
|
|
201
|
-
"body": "return SUM(MAP(input.properties.products
|
|
201
|
+
"body": "return SUM(\n MAP(input.properties.products,\n function (p)\n return p.quantity\n end\n))"
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
]
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
{
|
|
238
238
|
"expression": {
|
|
239
239
|
"lang": "lua",
|
|
240
|
-
"body": "return SUM(MAP(input.properties.products
|
|
240
|
+
"body": "return SUM(\n MAP(input.properties.products,\n function (p)\n return p.quantity\n end\n))"
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d41d8cd98f00b204e9800998ecf8427e"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d41d8cd98f00b204e9800998ecf8427e"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"isDraft": false,
|
|
3
3
|
"isBeta": false,
|
|
4
4
|
"friendlyName": "TheTradeDesk Conversion Events",
|
|
5
|
-
"description": "Real time conversion events API
|
|
5
|
+
"description": "Real time conversion events API\nhttps://api.thetradedesk.com/v3/portal/data/doc/DataConversionEventsApi#parameters-items",
|
|
6
6
|
"logo": "https://cdn.metarouter.io/logo.svg",
|
|
7
7
|
"color": "#F54D44",
|
|
8
8
|
"eventSource": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"3a0cbfab87d1aaffccfb947a42a3ba5e"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
{
|
|
45
45
|
"expression": {
|
|
46
46
|
"lang": "lua",
|
|
47
|
-
"body": "products = MAP(input.properties.products, function(p)
|
|
47
|
+
"body": "products = MAP(input.properties.products, function(p)\n return {\n item_code = p.sku,\n name = p.name,\n qty = p.quantity,\n price = p.price,\n cat = p.category\n }\n end\n )\n return products"
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
]
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
{
|
|
88
88
|
"expression": {
|
|
89
89
|
"lang": "lua",
|
|
90
|
-
"body": "-- event name
|
|
90
|
+
"body": "-- event name\nif input.event then\n return input.event\nelse\n return input.type\nend"
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
]
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"transforms": [
|
|
99
99
|
{
|
|
100
100
|
"expression": {
|
|
101
|
-
"body": "-- privacy settings
|
|
101
|
+
"body": "-- privacy settings\nis_applicable = false\nprivacy_type = \"$$PRIVACY_TYPE$$\"\nif LOWER(privacy_type) == \"gdpr\" then is_applicable = true end\nprivacy_settings = {{\n privacy_type = privacy_type,\n is_applicable = is_applicable,\n consent_string = true\n}}\nreturn privacy_settings",
|
|
102
102
|
"lang": "lua"
|
|
103
103
|
}
|
|
104
104
|
}
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
{
|
|
112
112
|
"expression": {
|
|
113
113
|
"lang": "lua",
|
|
114
|
-
"body": "-- client side tradedesk ID set ID\nttd_id = input.context.providers.theTradeDesk.ttd_id\nif ttd_id\nthen
|
|
114
|
+
"body": "-- client side tradedesk ID set ID\nttd_id = input.context.providers.theTradeDesk.ttd_id\nif ttd_id\nthen\n return ttd_id\nend"
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
]
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"transforms": [
|
|
123
123
|
{
|
|
124
124
|
"expression": {
|
|
125
|
-
"body": "-- client side tradedesk ID set type\nttd_id = input.context.providers.theTradeDesk.ttd_id\nif ttd_id\nthen
|
|
125
|
+
"body": "-- client side tradedesk ID set type\nttd_id = input.context.providers.theTradeDesk.ttd_id\nif ttd_id\nthen\n return \"TDID\"\nend",
|
|
126
126
|
"lang": "lua"
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"95e2f9cdc5f12e89570bea0390456a5e"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"batchSize": 100,
|
|
26
26
|
"transform": {
|
|
27
27
|
"lang": "lua",
|
|
28
|
-
"body": "request.body = {
|
|
28
|
+
"body": "request.body = {\n AdvertiserId = \"$$ADVERTISER_ID$$\",\n Items = batch,\n}\nreturn request"
|
|
29
29
|
},
|
|
30
30
|
"providerAuth": {
|
|
31
31
|
"tradedesk": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d41d8cd98f00b204e9800998ecf8427e"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"isDraft": false,
|
|
3
3
|
"isBeta": false,
|
|
4
4
|
"friendlyName": "TheTradeDesk Firstparty Advertiser Data",
|
|
5
|
-
"description": "Creates segments with a time to live to be used in different audiences\n\nDocs\nhttps://api.thetradedesk.com/v3/portal/data/doc/post-data-advertiser-firstparty\n\nPlaybook will generate segments anytime we have a TDID in the request.\nSegments Names:\n- Page view: page view | page | page title\n- Order Completed : order completed | product name | product sku\n- Order Completed : order total < 100
|
|
5
|
+
"description": "Creates segments with a time to live to be used in different audiences\n\nDocs\nhttps://api.thetradedesk.com/v3/portal/data/doc/post-data-advertiser-firstparty\n\nPlaybook will generate segments anytime we have a TDID in the request.\nSegments Names:\n- Page view: page view | page | page title\n- Order Completed : order completed | product name | product sku\n- Order Completed : order total < 100\n- Product Added : product added | product name | product sku\n- Product Removed : product removed | product name | product sku\n\nFor order completed events with a total it will categorize the segment in $100 chunks.\nA total of $156 will create a segment named \"order total < 200\"",
|
|
6
6
|
"logo": "https://cdn.metarouter.io/logo.svg",
|
|
7
7
|
"color": "#F54D44",
|
|
8
8
|
"eventSource": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"049bb35264639af0fca9e3b210b09537"
|
|
@@ -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 == \"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)
|
|
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
|
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"427935bb2b8cafe9b2ec4e659f901d72"
|