@metarouter/ajs-starter-kit 1.0.136 → 1.0.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dist/actioniq/kit.etag.json +1 -1
- package/.dist/actioniq/metadata.json +4 -0
- package/.dist/actioniq/playbook.etag.json +1 -1
- package/.dist/actioniq/playbook.json +2 -2
- package/.dist/adobe-experience-platform-interact/kit.etag.json +1 -1
- package/.dist/adobe-experience-platform-interact/metadata.json +4 -0
- package/.dist/adobe-experience-platform-interact/playbook.etag.json +1 -1
- package/.dist/adobe-experience-platform-interact/playbook.json +2 -2
- package/.dist/amazon-dsp-capi/kit.etag.json +1 -1
- package/.dist/amazon-dsp-capi/metadata.json +9 -1
- package/.dist/amazon-dsp-capi/playbook.etag.json +1 -1
- package/.dist/amazon-dsp-capi/playbook.json +6 -118
- package/.dist/blueshift/kit.etag.json +1 -1
- package/.dist/blueshift/metadata.json +4 -0
- package/.dist/blueshift/playbook.etag.json +1 -1
- package/.dist/blueshift/playbook.json +2 -2
- package/.dist/button/kit.etag.json +1 -1
- package/.dist/button/metadata.json +4 -0
- package/.dist/button/playbook.etag.json +1 -1
- package/.dist/button/playbook.json +2 -2
- package/.dist/clinch/kit.etag.json +1 -1
- package/.dist/clinch/metadata.json +4 -0
- package/.dist/clinch/playbook.etag.json +1 -1
- package/.dist/clinch/playbook.json +2 -2
- package/.dist/commission-junction/kit.etag.json +1 -1
- package/.dist/commission-junction/metadata.json +4 -0
- package/.dist/commission-junction/playbook.etag.json +1 -1
- package/.dist/commission-junction/playbook.json +3 -3
- package/.dist/criteo/connection.etag.json +1 -1
- package/.dist/criteo/connection.json +1 -1
- package/.dist/criteo/kit.etag.json +1 -1
- package/.dist/criteo/metadata.json +4 -0
- package/.dist/criteo/playbook.etag.json +1 -1
- package/.dist/criteo/playbook.json +7 -7
- package/.dist/facebook-pixel/kit.etag.json +1 -1
- package/.dist/facebook-pixel/metadata.json +8 -0
- package/.dist/facebook-pixel/playbook.etag.json +1 -1
- package/.dist/facebook-pixel/playbook.json +14 -8
- package/.dist/google-cm360/kit.etag.json +1 -1
- package/.dist/hubspot-event/kit.etag.json +1 -1
- package/.dist/hubspot-event/metadata.json +4 -0
- package/.dist/hubspot-event/playbook.etag.json +1 -1
- package/.dist/hubspot-event/playbook.json +2 -2
- package/.dist/linkedin-conversions/connection.etag.json +1 -1
- package/.dist/linkedin-conversions/connection.json +1 -1
- package/.dist/linkedin-conversions/kit.etag.json +1 -1
- package/.dist/linkedin-conversions/metadata.json +8 -0
- package/.dist/linkedin-conversions/playbook.etag.json +1 -1
- package/.dist/linkedin-conversions/playbook.json +109 -45
- package/.dist/magellan-ai/kit.etag.json +1 -1
- package/.dist/magellan-ai/metadata.json +4 -0
- package/.dist/magellan-ai/playbook.etag.json +1 -1
- package/.dist/magellan-ai/playbook.json +2 -2
- package/.dist/merkle/kit.etag.json +1 -1
- package/.dist/merkle/metadata.json +4 -0
- package/.dist/merkle/playbook.etag.json +1 -1
- package/.dist/merkle/playbook.json +3 -11
- package/.dist/microsoft-ads/kit.etag.json +1 -1
- package/.dist/microsoft-ads/metadata.json +4 -0
- package/.dist/microsoft-ads/playbook.etag.json +1 -1
- package/.dist/microsoft-ads/playbook.json +2 -2
- package/.dist/nextdoor-capi/kit.etag.json +1 -1
- package/.dist/nextdoor-capi/metadata.json +4 -0
- package/.dist/nextdoor-capi/playbook.etag.json +1 -1
- package/.dist/nextdoor-capi/playbook.json +11 -11
- package/.dist/podscribe/kit.etag.json +1 -1
- package/.dist/podscribe/metadata.json +8 -0
- package/.dist/podscribe/playbook.etag.json +1 -1
- package/.dist/podscribe/playbook.json +3 -3
- package/.dist/rakuten-conversions/connection.etag.json +1 -0
- package/.dist/rakuten-conversions/connection.json +24 -0
- package/.dist/rakuten-conversions/kit.etag.json +1 -0
- package/.dist/rakuten-conversions/metadata.json +21 -0
- package/.dist/rakuten-conversions/playbook.etag.json +1 -0
- package/.dist/rakuten-conversions/playbook.json +279 -0
- package/.dist/rasp/kit.etag.json +1 -1
- package/.dist/rasp/metadata.json +4 -0
- package/.dist/rasp/playbook.etag.json +1 -1
- package/.dist/rasp/playbook.json +2 -2
- package/.dist/reddit-ads/kit.etag.json +1 -1
- package/.dist/reddit-ads/metadata.json +4 -0
- package/.dist/reddit-ads/playbook.etag.json +1 -1
- package/.dist/reddit-ads/playbook.json +3 -3
- package/.dist/ringier-axel-springer-poland/kit.etag.json +1 -1
- package/.dist/ringier-axel-springer-poland/metadata.json +4 -0
- package/.dist/ringier-axel-springer-poland/playbook.etag.json +1 -1
- package/.dist/ringier-axel-springer-poland/playbook.json +2 -2
- package/.dist/roku/kit.etag.json +1 -1
- package/.dist/roku/metadata.json +4 -0
- package/.dist/roku/playbook.etag.json +1 -1
- package/.dist/roku/playbook.json +2 -2
- package/.dist/rtb-house/kit.etag.json +1 -1
- package/.dist/rtb-house/metadata.json +4 -0
- package/.dist/rtb-house/playbook.etag.json +1 -1
- package/.dist/rtb-house/playbook.json +2 -2
- package/.dist/salesforce-cdp/kit.etag.json +1 -1
- package/.dist/salesforce-cdp/metadata.json +4 -0
- package/.dist/salesforce-cdp/playbook.etag.json +1 -1
- package/.dist/salesforce-cdp/playbook.json +2 -2
- package/.dist/snapchat-capi/kit.etag.json +1 -1
- package/.dist/snapchat-capi/metadata.json +4 -0
- package/.dist/snapchat-capi/playbook.etag.json +1 -1
- package/.dist/snapchat-capi/playbook.json +10 -10
- package/.dist/thetradedesk-conversion-events/kit.etag.json +1 -1
- package/.dist/thetradedesk-conversion-events/metadata.json +4 -0
- package/.dist/thetradedesk-conversion-events/playbook.etag.json +1 -1
- package/.dist/thetradedesk-conversion-events/playbook.json +2 -2
- package/.dist/thetradedesk-data-advertiser-firstparty/kit.etag.json +1 -1
- package/.dist/thetradedesk-data-advertiser-firstparty/metadata.json +4 -0
- package/.dist/thetradedesk-data-advertiser-firstparty/playbook.etag.json +1 -1
- package/.dist/thetradedesk-data-advertiser-firstparty/playbook.json +2 -2
- package/.dist/tiktok/kit.etag.json +1 -1
- package/.dist/tiktok/metadata.json +4 -0
- package/.dist/tiktok/playbook.etag.json +1 -1
- package/.dist/tiktok/playbook.json +3 -3
- package/.dist/ttd-conversions/kit.etag.json +1 -1
- package/.dist/ttd-conversions/metadata.json +9 -1
- package/.dist/ttd-conversions/playbook.etag.json +1 -1
- package/.dist/ttd-conversions/playbook.json +9 -41
- package/.dist/twitter-conversions/kit.etag.json +1 -1
- package/.dist/twitter-conversions/metadata.json +4 -0
- package/.dist/twitter-conversions/playbook.etag.json +1 -1
- package/.dist/twitter-conversions/playbook.json +3 -3
- package/.dist/x-ads/kit.etag.json +1 -1
- package/.dist/x-ads/metadata.json +4 -0
- package/.dist/x-ads/playbook.etag.json +1 -1
- package/.dist/x-ads/playbook.json +2 -2
- package/README.md +60 -56
- package/index.js +11 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.4.0",
|
|
3
3
|
"default": {
|
|
4
4
|
"filters": [
|
|
5
5
|
{
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
{
|
|
42
42
|
"expression": {
|
|
43
43
|
"lang": "lua",
|
|
44
|
-
"body": "if (input.
|
|
44
|
+
"body": "if (input.traits.email) then return LOWER(TRIM(input.traits.email)) end"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"8005eee559b182561192d51f160b09be"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"a61afd69a0c1387f2bd92d286467984d"
|
|
@@ -16,6 +16,14 @@
|
|
|
16
16
|
{
|
|
17
17
|
"date": "2025-07-16T21:00:00.000Z",
|
|
18
18
|
"note": "Version: 0.1.0\nBeta Mode\nLinkedIn Ads - Conversions Initial Beta Release"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"date": "2025-07-30T00:00:00.000Z",
|
|
22
|
+
"note": "Version: 0.2.0\nReplaced context.traits with traits."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"date": "2025-08-13T00:00:00.000Z",
|
|
26
|
+
"note": "Version: 0.3.0\nReplaced enrichment with Lua mapping, defaulted currency to 'USD'."
|
|
19
27
|
}
|
|
20
28
|
]
|
|
21
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"e8d652e89e98a774b038de7c7d0212e8"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.3.0",
|
|
3
3
|
"default": {
|
|
4
4
|
"filters": [
|
|
5
5
|
{
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
{
|
|
54
54
|
"expression": {
|
|
55
55
|
"lang": "lua",
|
|
56
|
-
"body": "local function is_empty(str)\n return not str or str == ''\nend\n\nlocal user_ids = {}\n\nlocal email = input.traits.email
|
|
56
|
+
"body": "local function is_empty(str)\n return not str or str == ''\nend\n\nlocal user_ids = {}\n\nlocal email = input.traits.email\nif email then\n table.insert(user_ids, {\n idType = 'SHA256_EMAIL',\n idValue = TO_SHA256_HASH(LOWER(TRIM(email)))\n })\nend\n\nlocal li_fat_id = input.context.providers.linkedIn.li_fat_id\nif li_fat_id then\n table.insert(user_ids, {\n idType = 'LINKEDIN_FIRST_PARTY_ADS_TRACKING_UUID',\n idValue = li_fat_id\n })\nend\nreturn user_ids"
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
]
|
|
@@ -78,29 +78,51 @@
|
|
|
78
78
|
},
|
|
79
79
|
"eventSpecific": {
|
|
80
80
|
"identify": {
|
|
81
|
-
"
|
|
81
|
+
"mappings": [
|
|
82
82
|
{
|
|
83
|
-
"
|
|
84
|
-
"outputKey": "conversion"
|
|
83
|
+
"inputKey": "input",
|
|
84
|
+
"outputKey": "conversion",
|
|
85
|
+
"transforms": [
|
|
86
|
+
{
|
|
87
|
+
"expression": {
|
|
88
|
+
"lang": "lua",
|
|
89
|
+
"body": "local conversionId = 'ADD_CONVERSION_ID_HERE'\nreturn 'urn:lla:llaPartnerConversion:' .. conversionId"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
]
|
|
85
93
|
}
|
|
86
94
|
]
|
|
87
95
|
},
|
|
88
96
|
"page": {
|
|
89
|
-
"
|
|
97
|
+
"mappings": [
|
|
90
98
|
{
|
|
91
|
-
"
|
|
92
|
-
"outputKey": "conversion"
|
|
99
|
+
"inputKey": "input",
|
|
100
|
+
"outputKey": "conversion",
|
|
101
|
+
"transforms": [
|
|
102
|
+
{
|
|
103
|
+
"expression": {
|
|
104
|
+
"lang": "lua",
|
|
105
|
+
"body": "local conversionId = 'ADD_CONVERSION_ID_HERE'\nreturn 'urn:lla:llaPartnerConversion:' .. conversionId"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]
|
|
93
109
|
}
|
|
94
110
|
]
|
|
95
111
|
},
|
|
96
112
|
"checkout_started": {
|
|
97
|
-
"enrichments": [
|
|
98
|
-
{
|
|
99
|
-
"staticString": "ADD_CONVERSION_URN_HERE",
|
|
100
|
-
"outputKey": "conversion"
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
113
|
"mappings": [
|
|
114
|
+
{
|
|
115
|
+
"inputKey": "input",
|
|
116
|
+
"outputKey": "conversion",
|
|
117
|
+
"transforms": [
|
|
118
|
+
{
|
|
119
|
+
"expression": {
|
|
120
|
+
"lang": "lua",
|
|
121
|
+
"body": "local conversionId = 'ADD_CONVERSION_ID_HERE'\nreturn 'urn:lla:llaPartnerConversion:' .. conversionId"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
104
126
|
{
|
|
105
127
|
"inputKey": "input",
|
|
106
128
|
"outputKey": "conversionValue",
|
|
@@ -108,7 +130,7 @@
|
|
|
108
130
|
{
|
|
109
131
|
"expression": {
|
|
110
132
|
"lang": "lua",
|
|
111
|
-
"body": "
|
|
133
|
+
"body": "return { currencyCode = UPPER(input.properties.currency) or 'USD',\n amount = TO_STRING(TOTAL_VALUE(input.properties.products))\n}"
|
|
112
134
|
}
|
|
113
135
|
}
|
|
114
136
|
]
|
|
@@ -116,13 +138,19 @@
|
|
|
116
138
|
]
|
|
117
139
|
},
|
|
118
140
|
"order_completed": {
|
|
119
|
-
"enrichments": [
|
|
120
|
-
{
|
|
121
|
-
"staticString": "ADD_CONVERSION_URN_HERE",
|
|
122
|
-
"outputKey": "conversion"
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
141
|
"mappings": [
|
|
142
|
+
{
|
|
143
|
+
"inputKey": "input",
|
|
144
|
+
"outputKey": "conversion",
|
|
145
|
+
"transforms": [
|
|
146
|
+
{
|
|
147
|
+
"expression": {
|
|
148
|
+
"lang": "lua",
|
|
149
|
+
"body": "local conversionId = 'ADD_CONVERSION_ID_HERE'\nreturn 'urn:lla:llaPartnerConversion:' .. conversionId"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
},
|
|
126
154
|
{
|
|
127
155
|
"inputKey": "input",
|
|
128
156
|
"outputKey": "conversionValue",
|
|
@@ -130,7 +158,7 @@
|
|
|
130
158
|
{
|
|
131
159
|
"expression": {
|
|
132
160
|
"lang": "lua",
|
|
133
|
-
"body": "
|
|
161
|
+
"body": "return { currencyCode = UPPER(input.properties.currency) or 'USD',\n amount = TO_STRING(TOTAL_VALUE(input.properties.products))\n}"
|
|
134
162
|
}
|
|
135
163
|
}
|
|
136
164
|
]
|
|
@@ -138,21 +166,35 @@
|
|
|
138
166
|
]
|
|
139
167
|
},
|
|
140
168
|
"payment_info_entered": {
|
|
141
|
-
"
|
|
169
|
+
"mappings": [
|
|
142
170
|
{
|
|
143
|
-
"
|
|
144
|
-
"outputKey": "conversion"
|
|
171
|
+
"inputKey": "input",
|
|
172
|
+
"outputKey": "conversion",
|
|
173
|
+
"transforms": [
|
|
174
|
+
{
|
|
175
|
+
"expression": {
|
|
176
|
+
"lang": "lua",
|
|
177
|
+
"body": "local conversionId = 'ADD_CONVERSION_ID_HERE'\nreturn 'urn:lla:llaPartnerConversion:' .. conversionId"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
]
|
|
145
181
|
}
|
|
146
182
|
]
|
|
147
183
|
},
|
|
148
184
|
"product_added": {
|
|
149
|
-
"enrichments": [
|
|
150
|
-
{
|
|
151
|
-
"staticString": "ADD_CONVERSION_URN_HERE",
|
|
152
|
-
"outputKey": "conversion"
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
185
|
"mappings": [
|
|
186
|
+
{
|
|
187
|
+
"inputKey": "input",
|
|
188
|
+
"outputKey": "conversion",
|
|
189
|
+
"transforms": [
|
|
190
|
+
{
|
|
191
|
+
"expression": {
|
|
192
|
+
"lang": "lua",
|
|
193
|
+
"body": "local conversionId = 'ADD_CONVERSION_ID_HERE'\nreturn 'urn:lla:llaPartnerConversion:' .. conversionId"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
},
|
|
156
198
|
{
|
|
157
199
|
"inputKey": "input",
|
|
158
200
|
"outputKey": "conversionValue",
|
|
@@ -160,7 +202,7 @@
|
|
|
160
202
|
{
|
|
161
203
|
"expression": {
|
|
162
204
|
"lang": "lua",
|
|
163
|
-
"body": "return { currencyCode = UPPER(input.properties.currency),\n amount = TO_STRING(TOTAL_VALUE(input.properties))\n}"
|
|
205
|
+
"body": "return { currencyCode = UPPER(input.properties.currency) or 'USD',\n amount = TO_STRING(TOTAL_VALUE(input.properties))\n}"
|
|
164
206
|
}
|
|
165
207
|
}
|
|
166
208
|
]
|
|
@@ -168,13 +210,19 @@
|
|
|
168
210
|
]
|
|
169
211
|
},
|
|
170
212
|
"product_viewed": {
|
|
171
|
-
"enrichments": [
|
|
172
|
-
{
|
|
173
|
-
"staticString": "ADD_CONVERSION_URN_HERE",
|
|
174
|
-
"outputKey": "conversion"
|
|
175
|
-
}
|
|
176
|
-
],
|
|
177
213
|
"mappings": [
|
|
214
|
+
{
|
|
215
|
+
"inputKey": "input",
|
|
216
|
+
"outputKey": "conversion",
|
|
217
|
+
"transforms": [
|
|
218
|
+
{
|
|
219
|
+
"expression": {
|
|
220
|
+
"lang": "lua",
|
|
221
|
+
"body": "local conversionId = 'ADD_CONVERSION_ID_HERE'\nreturn 'urn:lla:llaPartnerConversion:' .. conversionId"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
},
|
|
178
226
|
{
|
|
179
227
|
"inputKey": "input",
|
|
180
228
|
"outputKey": "conversionValue",
|
|
@@ -182,7 +230,7 @@
|
|
|
182
230
|
{
|
|
183
231
|
"expression": {
|
|
184
232
|
"lang": "lua",
|
|
185
|
-
"body": "return { currencyCode = UPPER(input.properties.currency),\n amount = TO_STRING(TOTAL_VALUE(input.properties))\n}"
|
|
233
|
+
"body": "return { currencyCode = UPPER(input.properties.currency) or 'USD',\n amount = TO_STRING(TOTAL_VALUE(input.properties))\n}"
|
|
186
234
|
}
|
|
187
235
|
}
|
|
188
236
|
]
|
|
@@ -190,18 +238,34 @@
|
|
|
190
238
|
]
|
|
191
239
|
},
|
|
192
240
|
"products_searched": {
|
|
193
|
-
"
|
|
241
|
+
"mappings": [
|
|
194
242
|
{
|
|
195
|
-
"
|
|
196
|
-
"outputKey": "conversion"
|
|
243
|
+
"inputKey": "input",
|
|
244
|
+
"outputKey": "conversion",
|
|
245
|
+
"transforms": [
|
|
246
|
+
{
|
|
247
|
+
"expression": {
|
|
248
|
+
"lang": "lua",
|
|
249
|
+
"body": "local conversionId = 'ADD_CONVERSION_ID_HERE'\nreturn 'urn:lla:llaPartnerConversion:' .. conversionId"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
]
|
|
197
253
|
}
|
|
198
254
|
]
|
|
199
255
|
},
|
|
200
256
|
"promotion_clicked": {
|
|
201
|
-
"
|
|
257
|
+
"mappings": [
|
|
202
258
|
{
|
|
203
|
-
"
|
|
204
|
-
"outputKey": "conversion"
|
|
259
|
+
"inputKey": "input",
|
|
260
|
+
"outputKey": "conversion",
|
|
261
|
+
"transforms": [
|
|
262
|
+
{
|
|
263
|
+
"expression": {
|
|
264
|
+
"lang": "lua",
|
|
265
|
+
"body": "local conversionId = 'ADD_CONVERSION_ID_HERE'\nreturn 'urn:lla:llaPartnerConversion:' .. conversionId"
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
]
|
|
205
269
|
}
|
|
206
270
|
]
|
|
207
271
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"ab9b9c05bb914d9a46e2012a1a7335ee"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"3c514baa92348665710b845550379377"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.2.0",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
5
|
"name": "TOKEN",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
{
|
|
50
50
|
"expression": {
|
|
51
51
|
"lang": "lua",
|
|
52
|
-
"body": "local email = input.traits.email
|
|
52
|
+
"body": "local email = input.traits.email\nif (email) then return TO_SHA256_HASH(LOWER(TRIM(email))) end\nreturn input.userId"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"81d41197dd14c6d1b879c8f44e787991"
|
|
@@ -32,6 +32,10 @@
|
|
|
32
32
|
{
|
|
33
33
|
"date": "2025-02-05T00:00:00.000Z",
|
|
34
34
|
"note": "Version: 1.2.0\nUpdated mappings to comply with Merkle's requirements\nAdded required fields: ipAddress, userAgent, pageUrl\nAdded optional fields: rawEmail\nUpdated type field of page event to viewpage"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"date": "2025-07-30T00:00:00.000Z",
|
|
38
|
+
"note": "Version: 1.3.0\nReplaced context.traits with traits."
|
|
35
39
|
}
|
|
36
40
|
]
|
|
37
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"f8368646613bb61acc2df4dd7e3283f9"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.3.0",
|
|
3
3
|
"global": {
|
|
4
4
|
"mappings": [
|
|
5
5
|
{
|
|
@@ -39,16 +39,8 @@
|
|
|
39
39
|
"outputKey": "ipAddress"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
"inputKey": "
|
|
43
|
-
"outputKey": "rawEmail"
|
|
44
|
-
"transforms": [
|
|
45
|
-
{
|
|
46
|
-
"expression": {
|
|
47
|
-
"lang": "lua",
|
|
48
|
-
"body": "local email = input.traits.email or input.context.traits.email\nif email then\n return email\nend\nreturn"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
]
|
|
42
|
+
"inputKey": "traits.email",
|
|
43
|
+
"outputKey": "rawEmail"
|
|
52
44
|
},
|
|
53
45
|
{
|
|
54
46
|
"inputKey": "messageId",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d9721e160045d36b0b2b848f0069e486"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"1b394957f3018f11c3c71a3ff282da96"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.1.0",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
5
|
"name": "UET_TAG_ID",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
{
|
|
66
66
|
"expression": {
|
|
67
67
|
"lang": "lua",
|
|
68
|
-
"body": "local pid = {}\nid = 1\nlocal email = input.traits.email
|
|
68
|
+
"body": "local pid = {}\nid = 1\nlocal email = input.traits.email\nemail = LOWER(TRIM(email))\nif email then\n if (string.find(email, '@') ~= nil) then\n email = SPLIT(email, '@', 2)\n if string.sub(email[1], -6) == '+alias' then email[1] = REPLACE(email[1], '+alias', '') end\n pid[id] = 'em=' .. TO_SHA256_HASH(REPLACE(email[1], '.', '') .. '@' .. email[2])\n else\n pid[id] = 'em=' .. TO_SHA256_HASH(email)\n end\n id = id + 1\nend\nlocal phone = input.traits.phone\nif phone then\n pid[id] = 'ph=' .. TO_SHA256_HASH(LOWER(TRIM(phone)))\nend\nif (#pid > 0) then return JOIN(pid, '&') end"
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"0e7736bf98702a02574443bab688fd4c"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"1dcade80f36aa93364878be1d75ada87"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.3.0",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
5
|
"name": "CLIENT_ID",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"transforms": [
|
|
65
65
|
{
|
|
66
66
|
"expression": {
|
|
67
|
-
"body": "local email = input.traits.email
|
|
67
|
+
"body": "local email = input.traits.email\nif (email) then return TO_SHA256_HASH(LOWER(TRIM(email))) end",
|
|
68
68
|
"lang": "lua"
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"transforms": [
|
|
77
77
|
{
|
|
78
78
|
"expression": {
|
|
79
|
-
"body": "local phone = input.traits.phone
|
|
79
|
+
"body": "local phone = input.traits.phone\nif (phone) then return TO_SHA256_HASH(TRIM(phone)) end",
|
|
80
80
|
"lang": "lua"
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"transforms": [
|
|
89
89
|
{
|
|
90
90
|
"expression": {
|
|
91
|
-
"body": "local firstName = input.traits.firstName
|
|
91
|
+
"body": "local firstName = input.traits.firstName\nif (firstName) then return TO_SHA256_HASH(LOWER(TRIM(firstName))) end",
|
|
92
92
|
"lang": "lua"
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"transforms": [
|
|
101
101
|
{
|
|
102
102
|
"expression": {
|
|
103
|
-
"body": "local lastName = input.traits.lastName
|
|
103
|
+
"body": "local lastName = input.traits.lastName\nif (lastName) then return TO_SHA256_HASH(LOWER(TRIM(lastName))) end",
|
|
104
104
|
"lang": "lua"
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"transforms": [
|
|
113
113
|
{
|
|
114
114
|
"expression": {
|
|
115
|
-
"body": "local birthday = input.traits.birthday
|
|
115
|
+
"body": "local birthday = input.traits.birthday\nif (birthday) then return TO_SHA256_HASH(LOWER(TRIM(birthday))) end",
|
|
116
116
|
"lang": "lua"
|
|
117
117
|
}
|
|
118
118
|
}
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"transforms": [
|
|
125
125
|
{
|
|
126
126
|
"expression": {
|
|
127
|
-
"body": "local street = input.traits.address.street
|
|
127
|
+
"body": "local street = input.traits.address.street\nif (street) then return TO_SHA256_HASH(LOWER(TRIM(street))) end",
|
|
128
128
|
"lang": "lua"
|
|
129
129
|
}
|
|
130
130
|
}
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"transforms": [
|
|
137
137
|
{
|
|
138
138
|
"expression": {
|
|
139
|
-
"body": "local city = input.traits.address.city
|
|
139
|
+
"body": "local city = input.traits.address.city\nif (city) then return TO_SHA256_HASH(LOWER(city:gsub('%s+',''))) end",
|
|
140
140
|
"lang": "lua"
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"transforms": [
|
|
149
149
|
{
|
|
150
150
|
"expression": {
|
|
151
|
-
"body": "local state = input.traits.address.state
|
|
151
|
+
"body": "local state = input.traits.address.state\nif (state) then return TO_SHA256_HASH(LOWER(TRIM(state))) end",
|
|
152
152
|
"lang": "lua"
|
|
153
153
|
}
|
|
154
154
|
}
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"transforms": [
|
|
161
161
|
{
|
|
162
162
|
"expression": {
|
|
163
|
-
"body": "local postalCode = input.traits.address.postalCode
|
|
163
|
+
"body": "local postalCode = input.traits.address.postalCode\nif (postalCode) then return TO_SHA256_HASH(TRIM(postalCode)) end",
|
|
164
164
|
"lang": "lua"
|
|
165
165
|
}
|
|
166
166
|
}
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
"transforms": [
|
|
173
173
|
{
|
|
174
174
|
"expression": {
|
|
175
|
-
"body": "local country = input.traits.address.country
|
|
175
|
+
"body": "local country = input.traits.address.country\nif (country) then return TO_SHA256_HASH(TRIM(country)) end",
|
|
176
176
|
"lang": "lua"
|
|
177
177
|
}
|
|
178
178
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"60245c52d4f1b66f21f6c4e2bd1f7d99"
|
|
@@ -20,6 +20,14 @@
|
|
|
20
20
|
{
|
|
21
21
|
"date": "2025-04-09T22:00:00.000Z",
|
|
22
22
|
"note": "Version: 1.0.0\nStable release"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"date": "2025-07-30T00:00:00.000Z",
|
|
26
|
+
"note": "Version: 1.1.0\nReplaced context.traits with traits."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"date": "2025-07-30T00:00:00.000Z",
|
|
30
|
+
"note": "Version: 1.2.0\nUpdated Lua timestamp fallback logic to use input.timestamp"
|
|
23
31
|
}
|
|
24
32
|
]
|
|
25
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"6ab42b323ecdfcf8ca70b2fca5f14d4c"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.2.0",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
5
|
"name": "ADVERTISER_ID",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
{
|
|
50
50
|
"expression": {
|
|
51
51
|
"lang": "lua",
|
|
52
|
-
"body": "return input.originalTimestamp or input.sentAt"
|
|
52
|
+
"body": "return input.timestamp or input.originalTimestamp or input.sentAt"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
]
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"transforms": [
|
|
89
89
|
{
|
|
90
90
|
"expression": {
|
|
91
|
-
"body": "local email = input.traits.email
|
|
91
|
+
"body": "local email = input.traits.email\nif email then return TO_SHA256_HASH(LOWER(TRIM(email))) end\nreturn",
|
|
92
92
|
"lang": "lua"
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"a7e64d8711ecd49951e96e610aacc790"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"default": {
|
|
3
|
+
"endpoint": "https://track.linksynergy.com/ep?",
|
|
4
|
+
"method": "GET",
|
|
5
|
+
"headers": [
|
|
6
|
+
{
|
|
7
|
+
"key": "Accept-Encoding",
|
|
8
|
+
"value": "application/json"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"key": "Content-Type",
|
|
12
|
+
"value": "application/json"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"key": "X-Forwarded-For",
|
|
16
|
+
"fromEventKey": "context.ip"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"transform": {
|
|
20
|
+
"lang": "lua",
|
|
21
|
+
"body": "local url = request.url\nlocal path = SPLIT(url, \"?\", 1)[1]\n\nlocal query = DECODE_URL_QUERY(url)\n\nlocal important_order = {\n \"mid\", \"ord\", \"tr\", \"land\", \"date\", \"cur\", \"skulist\", \"amtlist\", \"qlist\", \"coupon\", \"disamt\", \"custid\"\n}\n\nlocal ordered_parts = {}\nlocal used = {}\n\nfor _, key in ipairs(important_order) do\n local val = query[key]\n if val then\n table.insert(ordered_parts, key .. \"=\" .. QUERY_ESCAPE(val))\n used[key] = true\n end\nend\n\nfor key, val in pairs(query) do\n if not used[key] then\n table.insert(ordered_parts, key .. \"=\" .. QUERY_ESCAPE(val))\n end\nend\n\nlocal query_string = JOIN(ordered_parts, \"&\")\nrequest.url = path .. (query_string ~= \"\" and \"?\" .. query_string or \"\")\n\nreturn request"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"9ec2080f812483d192d62630f99ee0cd"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"isDraft": false,
|
|
3
|
+
"isDeprecated": false,
|
|
4
|
+
"isBeta": true,
|
|
5
|
+
"friendlyName": "Rakuten Conversions",
|
|
6
|
+
"description": "Rakuten Advertising is a global digital marketing company that specializes in performance-based marketing solutions.",
|
|
7
|
+
"logo": "https://cdn.metarouter.io/rakuten-conversions.png",
|
|
8
|
+
"color": "#BF0000",
|
|
9
|
+
"eventSource": {
|
|
10
|
+
"isAndroidApp": true,
|
|
11
|
+
"isIosApp": true,
|
|
12
|
+
"isWebApp": true
|
|
13
|
+
},
|
|
14
|
+
"inputSchema": "analytics_js",
|
|
15
|
+
"releaseNotes": [
|
|
16
|
+
{
|
|
17
|
+
"date": "2025-07-30T21:00:00.000Z",
|
|
18
|
+
"note": "Version: 0.1.0\nBeta Version\nRakuten Conversions initial release"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"fdcfa4bfb54a1e7df3be2c279610ebf0"
|