@metarouter/ajs-starter-kit 1.0.116 → 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.
@@ -1 +1 @@
1
- "c2e007830845cd889b91ab0660ca8850"
1
+ "a83dcfcd90fd83213a85c0c02c1577fb"
@@ -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
- "ac5496168f383a075c9667862aa0f9ef"
1
+ "3a2d80dea759e37a02741e2b49facbe3"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.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": "properties.order_id",
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
- "ca9087f7bf076105bb108cd41fc5f66d"
1
+ "9c76a2415b6ffe38b747ebde78268ff1"
@@ -48,6 +48,10 @@
48
48
  {
49
49
  "date": "2024-12-18T00:00:00.000Z",
50
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."
51
55
  }
52
56
  ]
53
57
  }
@@ -1 +1 @@
1
- "c25132d4e291fac5e5f9dcfd270fd929"
1
+ "26a8b0365a6a26820e9295fbd49c1043"
@@ -1,6 +1,12 @@
1
1
  {
2
- "version": "0.4.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",
@@ -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"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.3.0",
2
+ "version": "0.4.0",
3
3
  "default": {
4
4
  "filters": [
5
5
  {
package/README.md CHANGED
@@ -5,15 +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
- ## 2024-12
8
+ ## 2025-01
9
+ - AWIN (BETA)
9
10
  - Blueshift (BETA)
11
+ - Moloco Commerce Media (BETA)
12
+
13
+ ## 2024-12
10
14
  - Google Analytics 4 (Collect) (BETA)
11
- - Moloco (BETA)
12
15
  - RTB House (BETA)
13
16
 
14
17
  ## 2024-11
15
18
  - Adobe Analytics - Experience (BETA)
16
- - AWIN (BETA)
17
19
  - Convert (BETA)
18
20
  - Iterable (BETA)
19
21
  - Innervate
@@ -101,12 +103,12 @@ previously.
101
103
 
102
104
  | Kit Name | Date | Latest Note |
103
105
  |----------|------|-------------|
104
- | Blueshift (BETA) | 2024-12 | Version: 0.4.0 Changed birthday mapping for identify event. |
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 |
105
109
  | Google Analytics 4 (Collect) (BETA) | 2024-12 | Version: 0.4.0 Added user property expression for anonymousId. |
106
- | Moloco (BETA) | 2024-12 | Version: 0.3.0 Updated `page` events to Moloco's `HOME` or `PAGE_VIEW` event, based on `context.page.path` |
107
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 |
108
111
  | Adobe Analytics - Experience (BETA) | 2024-11 | Version: 0.6.0 Adding checkout event Updating inputKey for siteSection |
109
- | AWIN (BETA) | 2024-11 | Version: 0.1.0 Beta Version AWIN initial release |
110
112
  | Convert (BETA) | 2024-11 | Version: 0.3.0 Added new deduplication parameter for all events, `tid` |
111
113
  | Iterable (BETA) | 2024-11 | Version: 0.3.0 Update connection.yaml for SDK forwarder format Move user agent and ip to global stanza |
112
114
  | Innervate | 2024-11 | Version: 1.0.0 Updated friendly name Stable release |
package/index.js CHANGED
@@ -303,10 +303,10 @@ exports.mixpanel = {
303
303
  metadata: require('./.dist/mixpanel/metadata.json')
304
304
  }
305
305
 
306
- exports.moloco = {
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/ajs-starter-kit",
3
- "version": "1.0.116",
3
+ "version": "1.0.117",
4
4
  "description": "MetaRouter analytics.js starter kit",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1 +0,0 @@
1
- "2be528b0fe36e7efbe1b6751589975b9"
@@ -1 +0,0 @@
1
- "508bb3db76f9d38bc1ec558c1a609676"