@metarouter/ajs-starter-kit 1.0.115 → 1.0.117
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/awin/kit.etag.json +1 -1
- package/.dist/awin/metadata.json +4 -0
- package/.dist/awin/playbook.etag.json +1 -1
- package/.dist/awin/playbook.json +14 -5
- package/.dist/blueshift/kit.etag.json +1 -1
- package/.dist/blueshift/metadata.json +8 -0
- package/.dist/blueshift/playbook.etag.json +1 -1
- package/.dist/blueshift/playbook.json +9 -27
- package/.dist/google-analytics-4-collect/kit.etag.json +1 -1
- package/.dist/google-analytics-4-collect/metadata.json +4 -0
- package/.dist/google-analytics-4-collect/playbook.etag.json +1 -1
- package/.dist/google-analytics-4-collect/playbook.json +7 -1
- package/.dist/moloco-commerce-media/kit.etag.json +1 -0
- package/.dist/{moloco → moloco-commerce-media}/metadata.json +6 -2
- package/.dist/moloco-commerce-media/playbook.etag.json +1 -0
- package/.dist/{moloco → moloco-commerce-media}/playbook.json +1 -1
- package/README.md +10 -8
- package/index.js +8 -8
- package/package.json +1 -1
- package/.dist/moloco/kit.etag.json +0 -1
- package/.dist/moloco/playbook.etag.json +0 -1
- /package/.dist/{moloco → moloco-commerce-media}/connection.etag.json +0 -0
- /package/.dist/{moloco → moloco-commerce-media}/connection.json +0 -0
package/.dist/awin/kit.etag.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"a83dcfcd90fd83213a85c0c02c1577fb"
|
package/.dist/awin/metadata.json
CHANGED
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
{
|
|
17
17
|
"date": "2024-11-14T22:00:00.000Z",
|
|
18
18
|
"note": "Version: 0.1.0\nBeta Version\nAWIN initial release"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"date": "2025-01-15T22:00:00.000Z",
|
|
22
|
+
"note": "Version: 0.2.0\nHandle voucher code\nFormat order reference\nAdd SKU fallback"
|
|
19
23
|
}
|
|
20
24
|
]
|
|
21
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"3a2d80dea759e37a02741e2b49facbe3"
|
package/.dist/awin/playbook.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.2.0",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
5
|
"name": "ADVERTISER_ID",
|
|
@@ -34,8 +34,16 @@
|
|
|
34
34
|
]
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
"inputKey": "
|
|
38
|
-
"outputKey": "orderReference"
|
|
37
|
+
"inputKey": "input",
|
|
38
|
+
"outputKey": "orderReference",
|
|
39
|
+
"transforms": [
|
|
40
|
+
{
|
|
41
|
+
"expression": {
|
|
42
|
+
"lang": "lua",
|
|
43
|
+
"body": "return tostring(input.properties.order_id)"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
]
|
|
39
47
|
},
|
|
40
48
|
{
|
|
41
49
|
"inputKey": "input",
|
|
@@ -61,7 +69,8 @@
|
|
|
61
69
|
},
|
|
62
70
|
{
|
|
63
71
|
"inputKey": "properties.coupon",
|
|
64
|
-
"outputKey": "voucher"
|
|
72
|
+
"outputKey": "voucher",
|
|
73
|
+
"defaultString": ""
|
|
65
74
|
},
|
|
66
75
|
{
|
|
67
76
|
"inputKey": "input",
|
|
@@ -82,7 +91,7 @@
|
|
|
82
91
|
{
|
|
83
92
|
"expression": {
|
|
84
93
|
"lang": "lua",
|
|
85
|
-
"body": "return MAP(\n input.properties.products,\n function (p)\n return {\n id = p.product_id or '',\n sku = p.sku or '',\n name = p.name,\n price = p.price,\n quantity = p.quantity or 1,\n commissionGroupCode = 'DEFAULT',\n category = p.category or ''\n }\n end\n)"
|
|
94
|
+
"body": "return MAP(\n input.properties.products,\n function (p)\n return {\n id = p.product_id or '',\n sku = p.sku or p.product_id or '',\n name = p.name,\n price = p.price,\n quantity = p.quantity or 1,\n commissionGroupCode = 'DEFAULT',\n category = p.category or ''\n }\n end\n)"
|
|
86
95
|
}
|
|
87
96
|
}
|
|
88
97
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"9c76a2415b6ffe38b747ebde78268ff1"
|
|
@@ -44,6 +44,14 @@
|
|
|
44
44
|
{
|
|
45
45
|
"date": "2024-10-23T00:00:00.000Z",
|
|
46
46
|
"note": "Version: 0.3.0\nAdded header `Accept-Encoding: application/json`"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"date": "2024-12-18T00:00:00.000Z",
|
|
50
|
+
"note": "Version: 0.4.0\nChanged birthday mapping for identify event."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"date": "2025-01-15T00:00:00.000Z",
|
|
54
|
+
"note": "Version: 0.5.0\nAdded global enrichment for partner field."
|
|
47
55
|
}
|
|
48
56
|
]
|
|
49
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"26a8b0365a6a26820e9295fbd49c1043"
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.5.0",
|
|
3
3
|
"global": {
|
|
4
|
+
"enrichments": [
|
|
5
|
+
{
|
|
6
|
+
"staticString": "metarouter",
|
|
7
|
+
"outputKey": "partner"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
4
10
|
"mappings": [
|
|
5
11
|
{
|
|
6
12
|
"inputKey": "timestamp",
|
|
@@ -127,36 +133,12 @@
|
|
|
127
133
|
},
|
|
128
134
|
{
|
|
129
135
|
"inputKey": "input",
|
|
130
|
-
"outputKey": "
|
|
131
|
-
"transforms": [
|
|
132
|
-
{
|
|
133
|
-
"expression": {
|
|
134
|
-
"lang": "lua",
|
|
135
|
-
"body": "local birthday = input.traits.birthday or input.context.traits.birthday\nif birthday then\n return tonumber(SPLIT(input.traits.birthday, \"-\", 1)[1])\nend"
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
]
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"inputKey": "input",
|
|
142
|
-
"outputKey": "birth_month",
|
|
143
|
-
"transforms": [
|
|
144
|
-
{
|
|
145
|
-
"expression": {
|
|
146
|
-
"lang": "lua",
|
|
147
|
-
"body": "local birthday = input.traits.birthday or input.context.traits.birthday\nif birthday then\n return tonumber(SPLIT(input.traits.birthday, \"-\", 2)[2])\nend"
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"inputKey": "input",
|
|
154
|
-
"outputKey": "birth_dayofmonth",
|
|
136
|
+
"outputKey": "birthday",
|
|
155
137
|
"transforms": [
|
|
156
138
|
{
|
|
157
139
|
"expression": {
|
|
158
140
|
"lang": "lua",
|
|
159
|
-
"body": "local birthday = input.traits.birthday or input.context.traits.birthday\nif birthday then\n
|
|
141
|
+
"body": "local birthday = input.traits.birthday or input.context.traits.birthday\nif birthday then\n birthday = string.sub(birthday, 1, 10)\n return birthday\nend"
|
|
160
142
|
}
|
|
161
143
|
}
|
|
162
144
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"9533e9757e3267ed08d51ae6c7257bce"
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
{
|
|
25
25
|
"date": "2024-10-23T00:00:00.000Z",
|
|
26
26
|
"note": "Version: 0.3.0\nAdded header `Accept-Encoding: application/json`"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"date": "2024-12-18T00:00:00.000Z",
|
|
30
|
+
"note": "Version: 0.4.0\nAdded user property expression for anonymousId."
|
|
27
31
|
}
|
|
28
32
|
]
|
|
29
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"a97907ef94eb10cff7a047317261221b"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.4.0",
|
|
3
3
|
"global": {
|
|
4
4
|
"mappings": [
|
|
5
5
|
{
|
|
@@ -109,6 +109,12 @@
|
|
|
109
109
|
"outputKey": "isDebugMode",
|
|
110
110
|
"staticBool": false
|
|
111
111
|
}
|
|
112
|
+
],
|
|
113
|
+
"expressions": [
|
|
114
|
+
{
|
|
115
|
+
"body": "local up = {}\nup.metarouter_anonymousid = input.anonymousId\n\nlocal output = {} for key, value in pairs(up) do output[\"up.\" .. key] = value\nend\nreturn output",
|
|
116
|
+
"lang": "lua"
|
|
117
|
+
}
|
|
112
118
|
]
|
|
113
119
|
},
|
|
114
120
|
"params": [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"7978b30f4404b4fbff7fd063d1597f14"
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"isDraft": false,
|
|
3
3
|
"isDeprecated": false,
|
|
4
4
|
"isBeta": true,
|
|
5
|
-
"friendlyName": "Moloco",
|
|
6
|
-
"description": "Moloco is a machine learning-driven advertising platform that helps businesses optimize their advertising campaigns.",
|
|
5
|
+
"friendlyName": "Moloco Commerce Media",
|
|
6
|
+
"description": "Moloco Commerce Media is a machine learning-driven advertising platform that helps businesses optimize their advertising campaigns.",
|
|
7
7
|
"logo": "https://cdn.metarouter.io/moloco.png",
|
|
8
8
|
"color": "#007BFF",
|
|
9
9
|
"eventSource": {
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
{
|
|
25
25
|
"date": "2024-12-11T22:00:00.000Z",
|
|
26
26
|
"note": "Version: 0.3.0\nUpdated `page` events to Moloco's `HOME` or `PAGE_VIEW` event, based on `context.page.path`"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"date": "2025-01-15T22:00:00.000Z",
|
|
30
|
+
"note": "Version: 0.4.0\nUpdated friendlyName\nUpdated kit name"
|
|
27
31
|
}
|
|
28
32
|
]
|
|
29
33
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"4924ff071a3ebd50f4238a60cb6fea3a"
|
package/README.md
CHANGED
|
@@ -5,13 +5,17 @@ event methods, you will create a rich, actionable data set from your website, mo
|
|
|
5
5
|
server, and other sources. It is particularly useful for tracking the pages or screens your
|
|
6
6
|
users visit, the actions they take on your property, and whether the user has been identified
|
|
7
7
|
previously.
|
|
8
|
+
## 2025-01
|
|
9
|
+
- AWIN (BETA)
|
|
10
|
+
- Blueshift (BETA)
|
|
11
|
+
- Moloco Commerce Media (BETA)
|
|
12
|
+
|
|
8
13
|
## 2024-12
|
|
9
|
-
-
|
|
14
|
+
- Google Analytics 4 (Collect) (BETA)
|
|
10
15
|
- RTB House (BETA)
|
|
11
16
|
|
|
12
17
|
## 2024-11
|
|
13
18
|
- Adobe Analytics - Experience (BETA)
|
|
14
|
-
- AWIN (BETA)
|
|
15
19
|
- Convert (BETA)
|
|
16
20
|
- Iterable (BETA)
|
|
17
21
|
- Innervate
|
|
@@ -29,7 +33,6 @@ previously.
|
|
|
29
33
|
- AppsFlyer Android
|
|
30
34
|
- AppsFlyer iOS
|
|
31
35
|
- Microsoft Advertising (BETA)
|
|
32
|
-
- Blueshift (BETA)
|
|
33
36
|
- Clinch
|
|
34
37
|
- Commission Junction
|
|
35
38
|
- Criteo
|
|
@@ -37,7 +40,6 @@ previously.
|
|
|
37
40
|
- Facebook Pixel
|
|
38
41
|
- Google Ads - Conversions
|
|
39
42
|
- Google Analytics
|
|
40
|
-
- Google Analytics 4 (Collect) (BETA)
|
|
41
43
|
- Firebase (BETA)
|
|
42
44
|
- Heap (BETA)
|
|
43
45
|
- HubSpot (BETA)
|
|
@@ -101,10 +103,12 @@ previously.
|
|
|
101
103
|
|
|
102
104
|
| Kit Name | Date | Latest Note |
|
|
103
105
|
|----------|------|-------------|
|
|
104
|
-
|
|
|
106
|
+
| AWIN (BETA) | 2025-01 | Version: 0.2.0 Handle voucher code Format order reference Add SKU fallback |
|
|
107
|
+
| Blueshift (BETA) | 2025-01 | Version: 0.5.0 Added global enrichment for partner field. |
|
|
108
|
+
| Moloco Commerce Media (BETA) | 2025-01 | Version: 0.4.0 Updated friendlyName Updated kit name |
|
|
109
|
+
| Google Analytics 4 (Collect) (BETA) | 2024-12 | Version: 0.4.0 Added user property expression for anonymousId. |
|
|
105
110
|
| RTB House (BETA) | 2024-12 | Version: 0.2.1 Updated Endpoint URL Added new fields for all events: page URL (`su`) and page referrer (`sr`) Added new events: identify, page, products_searched, product_list_viewed, product_viewed, product_added, product_added_to_wishlist, cart_viewed, checkout_started |
|
|
106
111
|
| Adobe Analytics - Experience (BETA) | 2024-11 | Version: 0.6.0 Adding checkout event Updating inputKey for siteSection |
|
|
107
|
-
| AWIN (BETA) | 2024-11 | Version: 0.1.0 Beta Version AWIN initial release |
|
|
108
112
|
| Convert (BETA) | 2024-11 | Version: 0.3.0 Added new deduplication parameter for all events, `tid` |
|
|
109
113
|
| Iterable (BETA) | 2024-11 | Version: 0.3.0 Update connection.yaml for SDK forwarder format Move user agent and ip to global stanza |
|
|
110
114
|
| Innervate | 2024-11 | Version: 1.0.0 Updated friendly name Stable release |
|
|
@@ -120,7 +124,6 @@ previously.
|
|
|
120
124
|
| AppsFlyer Android | 2024-10 | Version: 1.2.0 Added header `Accept-Encoding: application/json` |
|
|
121
125
|
| AppsFlyer iOS | 2024-10 | Version: 1.2.0 Added header `Accept-Encoding: application/json` |
|
|
122
126
|
| Microsoft Advertising (BETA) | 2024-10 | Version: 0.2.0 Added header `Accept-Encoding: application/json` |
|
|
123
|
-
| Blueshift (BETA) | 2024-10 | Version: 0.3.0 Added header `Accept-Encoding: application/json` |
|
|
124
127
|
| Clinch | 2024-10 | Version: 1.2.0 Added header `Accept-Encoding: application/json` |
|
|
125
128
|
| Commission Junction | 2024-10 | Version: 1.2.0 Added header `Accept-Encoding: application/json` |
|
|
126
129
|
| Criteo | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
|
|
@@ -128,7 +131,6 @@ previously.
|
|
|
128
131
|
| Facebook Pixel | 2024-10 | Version: 1.3.0 Added header `Accept-Encoding: application/json` |
|
|
129
132
|
| Google Ads - Conversions | 2024-10 | Version: 1.3.0 Added header `Accept-Encoding: application/json` |
|
|
130
133
|
| Google Analytics | 2024-10 | Deprecating kit |
|
|
131
|
-
| Google Analytics 4 (Collect) (BETA) | 2024-10 | Version: 0.3.0 Added header `Accept-Encoding: application/json` |
|
|
132
134
|
| Firebase (BETA) | 2024-10 | Version: 0.2.0 Updated header `Accept-Encoding: application/json` |
|
|
133
135
|
| Heap (BETA) | 2024-10 | Version: 0.2.0 Updated header `Accept-Encoding: application/json` |
|
|
134
136
|
| HubSpot (BETA) | 2024-10 | Version: 0.3.0 Added header `Accept-Encoding: application/json` |
|
package/index.js
CHANGED
|
@@ -303,10 +303,10 @@ exports.mixpanel = {
|
|
|
303
303
|
metadata: require('./.dist/mixpanel/metadata.json')
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
exports
|
|
307
|
-
endpointSchema: require('./.dist/moloco/connection.json'),
|
|
308
|
-
playbook: require('./.dist/moloco/playbook.json'),
|
|
309
|
-
metadata: require('./.dist/moloco/metadata.json')
|
|
306
|
+
exports['moloco-commerce-media'] = {
|
|
307
|
+
endpointSchema: require('./.dist/moloco-commerce-media/connection.json'),
|
|
308
|
+
playbook: require('./.dist/moloco-commerce-media/playbook.json'),
|
|
309
|
+
metadata: require('./.dist/moloco-commerce-media/metadata.json')
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
exports['movable-ink'] = {
|
|
@@ -713,10 +713,10 @@ exports.etags = {
|
|
|
713
713
|
playbook: require('./.dist/mixpanel/playbook.etag.json'),
|
|
714
714
|
kit: require('./.dist/mixpanel/kit.etag.json')
|
|
715
715
|
},
|
|
716
|
-
moloco: {
|
|
717
|
-
endpointSchema: require('./.dist/moloco/connection.etag.json'),
|
|
718
|
-
playbook: require('./.dist/moloco/playbook.etag.json'),
|
|
719
|
-
kit: require('./.dist/moloco/kit.etag.json')
|
|
716
|
+
'moloco-commerce-media': {
|
|
717
|
+
endpointSchema: require('./.dist/moloco-commerce-media/connection.etag.json'),
|
|
718
|
+
playbook: require('./.dist/moloco-commerce-media/playbook.etag.json'),
|
|
719
|
+
kit: require('./.dist/moloco-commerce-media/kit.etag.json')
|
|
720
720
|
},
|
|
721
721
|
'movable-ink': {
|
|
722
722
|
endpointSchema: require('./.dist/movable-ink/connection.etag.json'),
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"2be528b0fe36e7efbe1b6751589975b9"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"508bb3db76f9d38bc1ec558c1a609676"
|
|
File without changes
|
|
File without changes
|