@metarouter/ajs-starter-kit 1.0.142 → 1.0.144
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/adobe-bdia/connection.etag.json +1 -0
- package/.dist/adobe-bdia/connection.json +42 -0
- package/.dist/adobe-bdia/kit.etag.json +1 -0
- package/.dist/adobe-bdia/metadata.json +25 -0
- package/.dist/adobe-bdia/playbook.etag.json +1 -0
- package/.dist/adobe-bdia/playbook.json +251 -0
- package/.dist/blob/connection.etag.json +1 -1
- package/.dist/blob/connection.json +2 -1
- package/.dist/blob/kit.etag.json +1 -1
- package/.dist/blob/metadata.json +4 -0
- package/.dist/blob/playbook.etag.json +1 -1
- package/.dist/blob/playbook.json +1 -1
- package/.dist/connection-schemas.json +32 -0
- package/.dist/microsoft-ads/kit.etag.json +1 -1
- 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 +150 -10
- package/.dist/rakuten-conversions/kit.etag.json +1 -1
- package/.dist/rakuten-conversions/metadata.json +5 -1
- package/.dist/rakuten-conversions/playbook.etag.json +1 -1
- package/.dist/rakuten-conversions/playbook.json +1 -1
- 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 +9 -9
- 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 +9 -9
- package/README.md +95 -218
- package/index.js +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"9dd363ed21e8441906c1363beafac9ec -"
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"params": [
|
|
3
|
+
{
|
|
4
|
+
"name": "TOKEN_URL",
|
|
5
|
+
"exampleValue": "my-token-url",
|
|
6
|
+
"isOptional": true
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"name": "CLIENT_ID",
|
|
10
|
+
"exampleValue": "my-client-id",
|
|
11
|
+
"isOptional": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "CLIENT_SECRET",
|
|
15
|
+
"exampleValue": "my-client-secret",
|
|
16
|
+
"isOptional": false
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "TOKEN_SCOPES",
|
|
20
|
+
"exampleValue": "my-auth-token-scopes",
|
|
21
|
+
"isOptional": false
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "EVENT_ENDPOINT",
|
|
25
|
+
"exampleValue": "my-event-endpoint",
|
|
26
|
+
"isOptional": true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "COLUMN_NAMES",
|
|
30
|
+
"exampleValue": "my-csv-column-names",
|
|
31
|
+
"isOptional": true
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"adobe-bdia": {
|
|
35
|
+
"token_url": "https://ims-na1.adobelogin.com/ims/token/v3",
|
|
36
|
+
"client_id": "$$CLIENT_ID$$",
|
|
37
|
+
"client_secret": "$$CLIENT_SECRET$$",
|
|
38
|
+
"token_scopes": "openid,AdobeID,additional_info.projectedProductContext",
|
|
39
|
+
"event_endpoint": "https://analytics-collection.adobe.io/aa/collect/v1/events",
|
|
40
|
+
"column_names": "timestamp,reportSuiteID,visitorID,userAgent,pageName,queryString,events,products,purchaseID"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"9f4eff319559e9105d63791341a104b0 -"
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"isDraft": false,
|
|
3
|
+
"isDeprecated": false,
|
|
4
|
+
"isBeta": true,
|
|
5
|
+
"friendlyName": "Adobe Analytics",
|
|
6
|
+
"description": "Adobe Analytics is a digital analytics platform that helps businesses collect, measure, and analyze data from websites, mobile apps, and other digital channels.",
|
|
7
|
+
"logo": "https://cdn.metarouter.io/adobe-analytics.png",
|
|
8
|
+
"color": "#140933",
|
|
9
|
+
"eventSource": {
|
|
10
|
+
"isAndroidApp": true,
|
|
11
|
+
"isIosApp": true,
|
|
12
|
+
"isWebApp": true
|
|
13
|
+
},
|
|
14
|
+
"inputSchema": "analytics_js",
|
|
15
|
+
"releaseNotes": [
|
|
16
|
+
{
|
|
17
|
+
"date": "2025-10-08T21:00:00.000Z",
|
|
18
|
+
"note": "Version: 0.1.0\nBeta Version\nAdobe Analytics initial release"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"date": "2025-10-08T21:00:00.000Z",
|
|
22
|
+
"note": "Version: 0.1.1\nConnection parameter fixes"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"73e7f0ad0ceb79513b4b5aa8fcf14987 -"
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.1.1",
|
|
3
|
+
"default": {
|
|
4
|
+
"filters": [
|
|
5
|
+
{
|
|
6
|
+
"byEventNames": {
|
|
7
|
+
"action": "allow",
|
|
8
|
+
"events": [
|
|
9
|
+
"page",
|
|
10
|
+
""
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"global": {
|
|
17
|
+
"enrichments": [
|
|
18
|
+
{
|
|
19
|
+
"staticString": "ADD_REPORT_SUITE_ID_HERE",
|
|
20
|
+
"outputKey": "reportSuiteID"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"mappings": [
|
|
24
|
+
{
|
|
25
|
+
"inputKey": "input",
|
|
26
|
+
"outputKey": "visitorID",
|
|
27
|
+
"transforms": [
|
|
28
|
+
{
|
|
29
|
+
"expression": {
|
|
30
|
+
"lang": "lua",
|
|
31
|
+
"body": "return REPLACE(input.anonymousId, \"-\", \"\")"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"inputKey": "timestamp",
|
|
38
|
+
"outputKey": "timestamp",
|
|
39
|
+
"transforms": [
|
|
40
|
+
{
|
|
41
|
+
"expression": {
|
|
42
|
+
"lang": "lua",
|
|
43
|
+
"body": "return SECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp)"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"inputKey": "context.page.url",
|
|
50
|
+
"outputKey": "pageURL"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"inputKey": "context.page.title",
|
|
54
|
+
"outputKey": "pageName"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"inputKey": "context.userAgent",
|
|
58
|
+
"outputKey": "userAgent"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"inputKey": "context.ip",
|
|
62
|
+
"outputKey": "ipaddress"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"inputKey": "context.page.referrer",
|
|
66
|
+
"outputKey": "referrer"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"expressions": [
|
|
70
|
+
{
|
|
71
|
+
"lang": "lua",
|
|
72
|
+
"name": "Mobile Device Mappings",
|
|
73
|
+
"body": "if input.context.device then\nreturn {\n [\"hints.mobile\"] = true,\n [\"hints.model\"] = input.context.device.model,\n [\"hints.platform\"] = input.context.os.name,\n [\"hints.platformversion\"] = input.context.os.version\n}\nend\nreturn { [\"hints.mobile\"] = false }"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"eventSpecific": {
|
|
78
|
+
"order_completed": {
|
|
79
|
+
"enrichments": [
|
|
80
|
+
{
|
|
81
|
+
"staticString": "purchase",
|
|
82
|
+
"outputKey": "events"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"mappings": [
|
|
86
|
+
{
|
|
87
|
+
"inputKey": "input",
|
|
88
|
+
"outputKey": "products",
|
|
89
|
+
"transforms": [
|
|
90
|
+
{
|
|
91
|
+
"expression": {
|
|
92
|
+
"lang": "lua",
|
|
93
|
+
"body": "return JOIN(MAP(input.properties.products, function(p)\n local category = p.category or \"\"\n local name = p.name or \"\"\n local qty = p.quantity or 1\n -- Strip out ; , | to avoid breaking Adobe parsing\n category = category:gsub(\"[;,|]\", \"\")\n name = name:gsub(\"[;,|]\", \"\")\n return category .. \";\" .. name .. \";\" .. TO_STRING(qty) .. \";\" .. TOTAL_VALUE(p)\nend), \",\")"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"inputKey": "properties.currency",
|
|
100
|
+
"outputKey": "currencyCode",
|
|
101
|
+
"transforms": [
|
|
102
|
+
{
|
|
103
|
+
"modifyString": "uppercase"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"inputKey": "properties.order_id",
|
|
109
|
+
"outputKey": "purchaseID"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"product_viewed": {
|
|
114
|
+
"enrichments": [
|
|
115
|
+
{
|
|
116
|
+
"staticString": "prodView",
|
|
117
|
+
"outputKey": "events"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"mappings": [
|
|
121
|
+
{
|
|
122
|
+
"inputKey": "input",
|
|
123
|
+
"outputKey": "products",
|
|
124
|
+
"transforms": [
|
|
125
|
+
{
|
|
126
|
+
"expression": {
|
|
127
|
+
"lang": "lua",
|
|
128
|
+
"body": "local p = input.properties\nlocal category = p.category or \"\"\nlocal name = p.name or \"\"\nlocal qty = p.quantity or 1\nlocal price = p.price or 0\n-- Strip out ; , | to avoid breaking Adobe parsing\ncategory = category:gsub(\"[;,|]\", \"\")\nname = name:gsub(\"[;,|]\", \"\")\nreturn category .. \";\" .. name .. \";\" .. TO_STRING(qty) .. \";\" .. TOTAL_VALUE(p)"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"inputKey": "properties.currency",
|
|
135
|
+
"outputKey": "currencyCode",
|
|
136
|
+
"transforms": [
|
|
137
|
+
{
|
|
138
|
+
"modifyString": "uppercase"
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"product_added": {
|
|
145
|
+
"enrichments": [
|
|
146
|
+
{
|
|
147
|
+
"staticString": "scAdd",
|
|
148
|
+
"outputKey": "events"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"mappings": [
|
|
152
|
+
{
|
|
153
|
+
"inputKey": "input",
|
|
154
|
+
"outputKey": "products",
|
|
155
|
+
"transforms": [
|
|
156
|
+
{
|
|
157
|
+
"expression": {
|
|
158
|
+
"lang": "lua",
|
|
159
|
+
"body": "local p = input.properties\nlocal category = p.category or \"\"\nlocal name = p.name or \"\"\nlocal qty = p.quantity or 1\n-- Strip out ; , | to avoid breaking Adobe parsing\ncategory = category:gsub(\"[;,|]\", \"\")\nname = name:gsub(\"[;,|]\", \"\")\nreturn category .. \";\" .. name .. \";\" .. TO_STRING(qty) .. \";\" .. TOTAL_VALUE(p)"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
"product_removed": {
|
|
167
|
+
"enrichments": [
|
|
168
|
+
{
|
|
169
|
+
"staticString": "scRemove",
|
|
170
|
+
"outputKey": "events"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"mappings": [
|
|
174
|
+
{
|
|
175
|
+
"inputKey": "input",
|
|
176
|
+
"outputKey": "products",
|
|
177
|
+
"transforms": [
|
|
178
|
+
{
|
|
179
|
+
"expression": {
|
|
180
|
+
"lang": "lua",
|
|
181
|
+
"body": "local p = input.properties\nlocal category = p.category or \"\"\nlocal name = p.name or \"\"\nlocal qty = p.quantity or 1\n-- Strip out ; , | to avoid breaking Adobe parsing\ncategory = category:gsub(\"[;,|]\", \"\")\nname = name:gsub(\"[;,|]\", \"\")\nreturn category .. \";\" .. name .. \";\" .. TO_STRING(qty) .. \";\" .. TOTAL_VALUE(p)"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"cart_viewed": {
|
|
189
|
+
"enrichments": [
|
|
190
|
+
{
|
|
191
|
+
"staticString": "scView",
|
|
192
|
+
"outputKey": "events"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"mappings": [
|
|
196
|
+
{
|
|
197
|
+
"inputKey": "input",
|
|
198
|
+
"outputKey": "products",
|
|
199
|
+
"transforms": [
|
|
200
|
+
{
|
|
201
|
+
"expression": {
|
|
202
|
+
"lang": "lua",
|
|
203
|
+
"body": "return JOIN(MAP(input.properties.products, function(p)\n local category = p.category or \"\"\n local name = p.name or \"\"\n local qty = p.quantity or 1\n -- Strip out ; , | to avoid breaking Adobe parsing\n category = category:gsub(\"[;,|]\", \"\")\n name = name:gsub(\"[;,|]\", \"\")\n return category .. \";\" .. name .. \";\" .. TO_STRING(qty) .. \";\" .. TOTAL_VALUE(p)\nend), \",\")"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"inputKey": "properties.currency",
|
|
210
|
+
"outputKey": "currencyCode",
|
|
211
|
+
"transforms": [
|
|
212
|
+
{
|
|
213
|
+
"modifyString": "uppercase"
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
"checkout_started": {
|
|
220
|
+
"enrichments": [
|
|
221
|
+
{
|
|
222
|
+
"staticString": "scCheckout",
|
|
223
|
+
"outputKey": "events"
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"mappings": [
|
|
227
|
+
{
|
|
228
|
+
"inputKey": "input",
|
|
229
|
+
"outputKey": "products",
|
|
230
|
+
"transforms": [
|
|
231
|
+
{
|
|
232
|
+
"expression": {
|
|
233
|
+
"lang": "lua",
|
|
234
|
+
"body": "return JOIN(MAP(input.properties.products, function(p)\n local category = p.category or \"\"\n local name = p.name or \"\"\n local qty = p.quantity or 1\n -- Strip out ; , | to avoid breaking Adobe parsing\n category = category:gsub(\"[;,|]\", \"\")\n name = name:gsub(\"[;,|]\", \"\")\n return category .. \";\" .. name .. \";\" .. TO_STRING(qty) .. \";\" .. TOTAL_VALUE(p)\nend), \",\")"
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"inputKey": "properties.currency",
|
|
241
|
+
"outputKey": "currencyCode",
|
|
242
|
+
"transforms": [
|
|
243
|
+
{
|
|
244
|
+
"modifyString": "uppercase"
|
|
245
|
+
}
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"c0e6f8ff1cbf0fb398b5d534ab4a8c58 -"
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"account_name": "my-account-name",
|
|
5
5
|
"account_key": "my-account-key",
|
|
6
6
|
"compression": 1,
|
|
7
|
-
"sas_token": "sp=r&st=2024-04-30T15:26:15Z&se=2024-04-30T23:26:15Z&spr=https&sv=2022-11-02&sr=c&sig=au1XEXcJOWntSxxjnStY1fNACvZtQ%2FJhik0OpZUl%2FGA%3D"
|
|
7
|
+
"sas_token": "sp=r&st=2024-04-30T15:26:15Z&se=2024-04-30T23:26:15Z&spr=https&sv=2022-11-02&sr=c&sig=au1XEXcJOWntSxxjnStY1fNACvZtQ%2FJhik0OpZUl%2FGA%3D",
|
|
8
|
+
"use_managed_identity": false
|
|
8
9
|
}
|
|
9
10
|
}
|
package/.dist/blob/kit.etag.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"1168eda4e420207364e3671c4059083e -"
|
package/.dist/blob/metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"2ccdce30c247dfe8fbbca0e1f129aae5 -"
|
package/.dist/blob/playbook.json
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "object",
|
|
3
3
|
"properties": {
|
|
4
|
+
"adobeBdia": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"clientId": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"clientSecret": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"columnNames": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"eventEndpoint": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"tokenScopes": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"tokenUrl": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"clientId",
|
|
28
|
+
"clientSecret",
|
|
29
|
+
"tokenScopes"
|
|
30
|
+
],
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
},
|
|
4
33
|
"amazonDataFirehose": {
|
|
5
34
|
"type": "object",
|
|
6
35
|
"properties": {
|
|
@@ -76,6 +105,9 @@
|
|
|
76
105
|
},
|
|
77
106
|
"sasToken": {
|
|
78
107
|
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"useManagedIdentity": {
|
|
110
|
+
"type": "boolean"
|
|
79
111
|
}
|
|
80
112
|
},
|
|
81
113
|
"required": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"56b42a0997a68ad583b266bbcea918da -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"ba93e3cf060b82b2db4031038aeac0f7 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"1dff88cd95ce3e89488ab5a6207fe997 -"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.4.0",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
|
-
"name": "
|
|
6
|
-
"exampleValue": "my-
|
|
5
|
+
"name": "DATA_SOURCE_ID",
|
|
6
|
+
"exampleValue": "my-data-source-id"
|
|
7
7
|
}
|
|
8
8
|
],
|
|
9
9
|
"default": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"outputKey": "partner_id"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
"staticString": "$$
|
|
29
|
-
"outputKey": "
|
|
28
|
+
"staticString": "$$DATA_SOURCE_ID$$",
|
|
29
|
+
"outputKey": "data_source_id"
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
"mappings": [
|
|
@@ -35,8 +35,16 @@
|
|
|
35
35
|
"outputKey": "event_id"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
"inputKey": "
|
|
39
|
-
"outputKey": "
|
|
38
|
+
"inputKey": "input",
|
|
39
|
+
"outputKey": "event_time_epoch",
|
|
40
|
+
"transforms": [
|
|
41
|
+
{
|
|
42
|
+
"expression": {
|
|
43
|
+
"lang": "lua",
|
|
44
|
+
"body": "return SECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp)"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
40
48
|
},
|
|
41
49
|
{
|
|
42
50
|
"inputKey": "input",
|
|
@@ -44,12 +52,24 @@
|
|
|
44
52
|
"transforms": [
|
|
45
53
|
{
|
|
46
54
|
"expression": {
|
|
47
|
-
"
|
|
48
|
-
"
|
|
55
|
+
"lang": "lua",
|
|
56
|
+
"body": "if input.context.app.name or input.context.device.type or input.context.os.name then return 'app' end\nreturn 'website'"
|
|
49
57
|
}
|
|
50
58
|
}
|
|
51
59
|
]
|
|
52
60
|
},
|
|
61
|
+
{
|
|
62
|
+
"inputKey": "context.device.adTrackingEnabled",
|
|
63
|
+
"outputKey": "app.app_tracking_enabled"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"inputKey": "context.device.type",
|
|
67
|
+
"outputKey": "app.platform"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"inputKey": "context.app.version",
|
|
71
|
+
"outputKey": "app.app_version"
|
|
72
|
+
},
|
|
53
73
|
{
|
|
54
74
|
"inputKey": "context.page.url",
|
|
55
75
|
"outputKey": "action_source_url"
|
|
@@ -177,6 +197,18 @@
|
|
|
177
197
|
}
|
|
178
198
|
}
|
|
179
199
|
]
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"inputKey": "context.userAgent",
|
|
203
|
+
"outputKey": "customer.client_user_agent"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"inputKey": "context.ip",
|
|
207
|
+
"outputKey": "customer.client_ip_address"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"inputKey": "anonymousId",
|
|
211
|
+
"outputKey": "customer.external_id"
|
|
180
212
|
}
|
|
181
213
|
]
|
|
182
214
|
},
|
|
@@ -211,13 +243,121 @@
|
|
|
211
243
|
"transforms": [
|
|
212
244
|
{
|
|
213
245
|
"expression": {
|
|
214
|
-
"body": "local val =
|
|
246
|
+
"body": "local val = TOTAL_VALUE(input.properties.products)\nlocal currency = UPPER(input.properties.currency) or \"USD\"\nreturn currency .. val",
|
|
215
247
|
"lang": "lua"
|
|
216
248
|
}
|
|
217
249
|
}
|
|
218
250
|
]
|
|
219
251
|
}
|
|
220
252
|
]
|
|
253
|
+
},
|
|
254
|
+
"product_added": {
|
|
255
|
+
"enrichments": [
|
|
256
|
+
{
|
|
257
|
+
"staticString": "add_to_cart",
|
|
258
|
+
"outputKey": "event_name"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"mappings": [
|
|
262
|
+
{
|
|
263
|
+
"inputKey": "properties.product_id",
|
|
264
|
+
"outputKey": "custom.product_context.id"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"inputKey": "properties.quantity",
|
|
268
|
+
"outputKey": "custom.product_context.quantity"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"inputKey": "properties.price",
|
|
272
|
+
"outputKey": "custom.product_context.item_price"
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
"checkout_started": {
|
|
277
|
+
"enrichments": [
|
|
278
|
+
{
|
|
279
|
+
"staticString": "initiate_checkout",
|
|
280
|
+
"outputKey": "event_name"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"mappings": [
|
|
284
|
+
{
|
|
285
|
+
"inputKey": "properties.order_id",
|
|
286
|
+
"outputKey": "custom.order_id"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"inputKey": "input",
|
|
290
|
+
"outputKey": "custom.product_context",
|
|
291
|
+
"transforms": [
|
|
292
|
+
{
|
|
293
|
+
"expression": {
|
|
294
|
+
"lang": "lua",
|
|
295
|
+
"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)"
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
]
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
"page": {
|
|
303
|
+
"enrichments": [
|
|
304
|
+
{
|
|
305
|
+
"staticString": "page_view",
|
|
306
|
+
"outputKey": "event_name"
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
"product_viewed": {
|
|
311
|
+
"enrichments": [
|
|
312
|
+
{
|
|
313
|
+
"staticString": "view_content",
|
|
314
|
+
"outputKey": "event_name"
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"mappings": [
|
|
318
|
+
{
|
|
319
|
+
"inputKey": "properties.product_id",
|
|
320
|
+
"outputKey": "custom.product_context.id"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"inputKey": "properties.quantity",
|
|
324
|
+
"outputKey": "custom.product_context.quantity"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"inputKey": "properties.price",
|
|
328
|
+
"outputKey": "custom.product_context.item_price"
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
"product_added_to_wishlist": {
|
|
333
|
+
"enrichments": [
|
|
334
|
+
{
|
|
335
|
+
"staticString": "add_to_wishlist",
|
|
336
|
+
"outputKey": "event_name"
|
|
337
|
+
}
|
|
338
|
+
],
|
|
339
|
+
"mappings": [
|
|
340
|
+
{
|
|
341
|
+
"inputKey": "properties.product_id",
|
|
342
|
+
"outputKey": "custom.product_context.id"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"inputKey": "properties.quantity",
|
|
346
|
+
"outputKey": "custom.product_context.quantity"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"inputKey": "properties.price",
|
|
350
|
+
"outputKey": "custom.product_context.item_price"
|
|
351
|
+
}
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
"products_searched": {
|
|
355
|
+
"enrichments": [
|
|
356
|
+
{
|
|
357
|
+
"staticString": "search",
|
|
358
|
+
"outputKey": "event_name"
|
|
359
|
+
}
|
|
360
|
+
]
|
|
221
361
|
}
|
|
222
362
|
}
|
|
223
363
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"51a014f671f3e907d09a6cfbc611ae26 -"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"isDraft": false,
|
|
3
3
|
"isDeprecated": false,
|
|
4
|
-
"isBeta":
|
|
4
|
+
"isBeta": false,
|
|
5
5
|
"friendlyName": "Rakuten Conversions",
|
|
6
6
|
"description": "Rakuten Advertising is a global digital marketing company that specializes in performance-based marketing solutions.",
|
|
7
7
|
"logo": "https://cdn.metarouter.io/rakuten-conversions.png",
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
{
|
|
21
21
|
"date": "2025-09-03T21:00:00.000Z",
|
|
22
22
|
"note": "Version: 0.2.0\nAdding namelist field to order_canceled and order_completed events"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"date": "2025-09-24T00:00:00.000Z",
|
|
26
|
+
"note": "Version: 1.0.0\nStable Release"
|
|
23
27
|
}
|
|
24
28
|
]
|
|
25
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"e5ae9d14eefb3db0d88ce95c3d702f96 -"
|