@metarouter/ajs-starter-kit 1.0.89 → 1.0.91
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/clinch/connection.etag.json +1 -0
- package/.dist/clinch/connection.json +20 -0
- package/.dist/clinch/kit.etag.json +1 -0
- package/.dist/clinch/metadata.json +20 -0
- package/.dist/clinch/playbook.etag.json +1 -0
- package/.dist/clinch/playbook.json +492 -0
- package/.dist/commission-junction/connection.etag.json +1 -1
- package/.dist/commission-junction/connection.json +3 -3
- package/.dist/commission-junction/kit.etag.json +1 -1
- package/.dist/commission-junction/metadata.json +5 -1
- package/.dist/commission-junction/playbook.etag.json +1 -1
- package/.dist/commission-junction/playbook.json +3 -75
- package/.dist/google-ads/kit.etag.json +1 -1
- package/.dist/google-ads/metadata.json +4 -0
- package/.dist/google-ads/playbook.etag.json +1 -1
- package/.dist/google-ads/playbook.json +1 -13
- package/.dist/google-analytics-4-collect/connection.etag.json +1 -0
- package/.dist/google-analytics-4-collect/connection.json +20 -0
- package/.dist/google-analytics-4-collect/kit.etag.json +1 -0
- package/.dist/google-analytics-4-collect/metadata.json +20 -0
- package/.dist/google-analytics-4-collect/playbook.etag.json +1 -0
- package/.dist/google-analytics-4-collect/playbook.json +677 -0
- package/.dist/movable-ink-customer-data/kit.etag.json +1 -1
- package/.dist/movable-ink-customer-data/metadata.json +5 -1
- package/.dist/movable-ink-customer-data/playbook.etag.json +1 -1
- package/.dist/movable-ink-customer-data/playbook.json +1 -1
- package/README.md +9 -5
- package/index.js +24 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "1.0.0",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
5
|
"name": "ENTERPRISE_ID",
|
|
@@ -72,18 +72,6 @@
|
|
|
72
72
|
"inputKey": "properties.discount",
|
|
73
73
|
"outputKey": "discount"
|
|
74
74
|
},
|
|
75
|
-
{
|
|
76
|
-
"inputKey": "input",
|
|
77
|
-
"outputKey": "items",
|
|
78
|
-
"transforms": [
|
|
79
|
-
{
|
|
80
|
-
"expression": {
|
|
81
|
-
"lang": "lua",
|
|
82
|
-
"body": "return MAP(\n input.properties.products,\n function (p)\n return {\n unitPrice=p.price,\n quantity=p.quantity,\n sku=p.sku,\n discount=p.discount or 0\n }\n end\n )"
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
},
|
|
87
75
|
{
|
|
88
76
|
"inputKey": "properties.coupon",
|
|
89
77
|
"outputKey": "coupon"
|
|
@@ -99,31 +87,7 @@
|
|
|
99
87
|
},
|
|
100
88
|
{
|
|
101
89
|
"inputKey": "properties.customerStatus",
|
|
102
|
-
"outputKey": "customerStatus"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"inputKey": "properties.confirmationNumber",
|
|
106
|
-
"outputKey": "verticalParameters.confirmationNumber"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"inputKey": "properties.originCity",
|
|
110
|
-
"outputKey": "verticalParameters.originCity"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"inputKey": "properties.originState",
|
|
114
|
-
"outputKey": "verticalParameters.originState"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"inputKey": "properties.destinationCity",
|
|
118
|
-
"outputKey": "verticalParameters.destinationCity"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"inputKey": "properties.destinationState",
|
|
122
|
-
"outputKey": "verticalParameters.destinationState"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"inputKey": "properties.noCancellation",
|
|
126
|
-
"outputKey": "verticalParameters.noCancellation",
|
|
90
|
+
"outputKey": "customerStatus",
|
|
127
91
|
"transforms": [
|
|
128
92
|
{
|
|
129
93
|
"toScalar": "string"
|
|
@@ -188,18 +152,6 @@
|
|
|
188
152
|
"inputKey": "properties.discount",
|
|
189
153
|
"outputKey": "discount"
|
|
190
154
|
},
|
|
191
|
-
{
|
|
192
|
-
"inputKey": "input",
|
|
193
|
-
"outputKey": "items",
|
|
194
|
-
"transforms": [
|
|
195
|
-
{
|
|
196
|
-
"expression": {
|
|
197
|
-
"lang": "lua",
|
|
198
|
-
"body": "return MAP(\n input.properties.products,\n function (p)\n return {\n unitPrice=p.price,\n quantity=p.quantity,\n sku=p.sku,\n discount=p.discount or 0\n }\n end\n )"
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
]
|
|
202
|
-
},
|
|
203
155
|
{
|
|
204
156
|
"inputKey": "properties.coupon",
|
|
205
157
|
"outputKey": "coupon"
|
|
@@ -215,31 +167,7 @@
|
|
|
215
167
|
},
|
|
216
168
|
{
|
|
217
169
|
"inputKey": "properties.customerStatus",
|
|
218
|
-
"outputKey": "customerStatus"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"inputKey": "properties.confirmationNumber",
|
|
222
|
-
"outputKey": "verticalParameters.confirmationNumber"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"inputKey": "properties.originCity",
|
|
226
|
-
"outputKey": "verticalParameters.originCity"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"inputKey": "properties.originState",
|
|
230
|
-
"outputKey": "verticalParameters.originState"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"inputKey": "properties.destinationCity",
|
|
234
|
-
"outputKey": "verticalParameters.destinationCity"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"inputKey": "properties.destinationState",
|
|
238
|
-
"outputKey": "verticalParameters.destinationState"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"inputKey": "properties.noCancellation",
|
|
242
|
-
"outputKey": "verticalParameters.noCancellation",
|
|
170
|
+
"outputKey": "customerStatus",
|
|
243
171
|
"transforms": [
|
|
244
172
|
{
|
|
245
173
|
"toScalar": "string"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"3d619397385a391047b78adb28348ba6"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"2dcad8f0a541ea718347fee9437834eb"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.1.0",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
5
|
"name": "CUSTOMER_ID",
|
|
@@ -50,18 +50,6 @@
|
|
|
50
50
|
}
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
|
-
{
|
|
54
|
-
"inputKey": "input",
|
|
55
|
-
"outputKey": "userIdentifiers",
|
|
56
|
-
"transforms": [
|
|
57
|
-
{
|
|
58
|
-
"expression": {
|
|
59
|
-
"lang": "lua",
|
|
60
|
-
"body": "if input.traits.email then\n return {{ hashedEmail = TO_SHA256_HASH(LOWER(TRIM(input.traits.email))) }}\nend"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
53
|
{
|
|
66
54
|
"inputKey": "input",
|
|
67
55
|
"outputKey": "conversionDateTime",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"581bae2fd259c4afcdc09da4eac50fcb"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"default": {
|
|
3
|
+
"method": "GET",
|
|
4
|
+
"headers": [
|
|
5
|
+
{
|
|
6
|
+
"key": "Referer",
|
|
7
|
+
"fromEventKey": "context.page.referrer"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"key": "User-Agent",
|
|
11
|
+
"fromEventKey": "context.userAgent"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"endpoint": "https://google-analytics.com/g/collect",
|
|
15
|
+
"transform": {
|
|
16
|
+
"body": "-- Debug Mode\nrequest.url = REPLACE(request.url, \"&isDebugMode=false\", \"\")\nrequest.url = REPLACE(request.url, \"isDebugMode=true\", \"ep.debug_mode=true\")\n\n-- Conversion\nrequest.url = REPLACE(request.url, \"&isConversion=false\", \"\")\nrequest.url = REPLACE(request.url, \"isConversion=true\", \"ep.firebase_conversion=1\")\n\n-- Transaction\nrequest.url = REPLACE(request.url, \"ep-\", \"ep.\")\nrequest.url = REPLACE(request.url, \"epn-\", \"epn.\")\n\nreturn request",
|
|
17
|
+
"lang": "lua"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"2a0d86144463cb51f969c55a08589663"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"isDraft": false,
|
|
3
|
+
"isBeta": true,
|
|
4
|
+
"friendlyName": "Google Analytics 4 (Collect)",
|
|
5
|
+
"description": "Google Analytics gives you tools to help you better understand your customers so you can improve your website and drive better results.",
|
|
6
|
+
"logo": "https://cdn.metarouter.io/logo.svg",
|
|
7
|
+
"color": "#ff7600",
|
|
8
|
+
"eventSource": {
|
|
9
|
+
"isAndroidApp": true,
|
|
10
|
+
"isIosApp": true,
|
|
11
|
+
"isWebApp": true
|
|
12
|
+
},
|
|
13
|
+
"inputSchema": "analytics_js",
|
|
14
|
+
"releaseNotes": [
|
|
15
|
+
{
|
|
16
|
+
"date": "2024-04-24T00:00:00.000Z",
|
|
17
|
+
"note": "Google Analytics 4 (Collect) initial release; Beta version"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"1efb703a8c64bf6674e18f7dd4cb210f"
|