@metarouter/ajs-starter-kit 1.0.120 → 1.0.121

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
- "7978b30f4404b4fbff7fd063d1597f14"
1
+ "0e4bcc9e88eef77caf8ba78352cc873d"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "isDraft": false,
3
3
  "isDeprecated": false,
4
- "isBeta": true,
4
+ "isBeta": false,
5
5
  "friendlyName": "Moloco Commerce Media",
6
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",
@@ -28,6 +28,10 @@
28
28
  {
29
29
  "date": "2025-01-15T22:00:00.000Z",
30
30
  "note": "Version: 0.4.0\nUpdated friendlyName\nUpdated kit name"
31
+ },
32
+ {
33
+ "date": "2025-02-12T22:00:00.000Z",
34
+ "note": "Version: 1.0.0\nNew Event: session_started -> Mapped to Moloco's LAND event (web)\nNew Event: application_open -> Mapped to Moloco's LAND event (mobile)\nUpdated Event: screen -> Mapped to Moloco's PAGE_VIEW or HOME event based on input.name and/or input.properties.name (mobile)\nUpdated Event: order_completed -> Added mapping for Moloco's shipping_charge field using MetaRouter's properties.shipping (web & mobile)\nStable release"
31
35
  }
32
36
  ]
33
37
  }
@@ -1 +1 @@
1
- "4924ff071a3ebd50f4238a60cb6fea3a"
1
+ "54ebfff68f490705fa552893bfa6f76e"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.0",
2
+ "version": "1.0.0",
3
3
  "default": {
4
4
  "filters": [
5
5
  {
@@ -88,7 +88,7 @@
88
88
  "transforms": [
89
89
  {
90
90
  "expression": {
91
- "body": "return SPLIT(input.context.locale, \"-\", 2)[1]",
91
+ "body": "if (input.context.locale) then return SPLIT(input.context.locale, \"-\", 2)[1] end",
92
92
  "lang": "lua"
93
93
  }
94
94
  }
@@ -97,6 +97,14 @@
97
97
  ]
98
98
  },
99
99
  "eventSpecific": {
100
+ "session_started": {
101
+ "enrichments": [
102
+ {
103
+ "outputKey": "event_type",
104
+ "staticString": "LAND"
105
+ }
106
+ ]
107
+ },
100
108
  "page": {
101
109
  "mappings": [
102
110
  {
@@ -113,14 +121,6 @@
113
121
  }
114
122
  ]
115
123
  },
116
- "screen": {
117
- "enrichments": [
118
- {
119
- "outputKey": "event_type",
120
- "staticString": "PAGE_VIEW"
121
- }
122
- ]
123
- },
124
124
  "products_searched": {
125
125
  "enrichments": [
126
126
  {
@@ -256,6 +256,42 @@
256
256
  }
257
257
  }
258
258
  ]
259
+ },
260
+ {
261
+ "inputKey": "properties.shipping",
262
+ "outputKey": "shipping_charge",
263
+ "transforms": [
264
+ {
265
+ "expression": {
266
+ "lang": "lua",
267
+ "body": "return {\n currency = UPPER(input.properties.currency or 'USD'),\n amount = input.properties.shipping\n}"
268
+ }
269
+ }
270
+ ]
271
+ }
272
+ ]
273
+ },
274
+ "screen": {
275
+ "mappings": [
276
+ {
277
+ "inputKey": "input",
278
+ "outputKey": "event_type",
279
+ "transforms": [
280
+ {
281
+ "expression": {
282
+ "lang": "lua",
283
+ "body": "local screenName = input.name or input.properties.name\nif (screenName and LOWER(screenName) == 'home') then return \"HOME\" end\nreturn \"PAGE_VIEW\""
284
+ }
285
+ }
286
+ ]
287
+ }
288
+ ]
289
+ },
290
+ "application_open": {
291
+ "enrichments": [
292
+ {
293
+ "outputKey": "event_type",
294
+ "staticString": "LAND"
259
295
  }
260
296
  ]
261
297
  }
package/README.md CHANGED
@@ -9,13 +9,13 @@ previously.
9
9
  - Amazon Data Firehose (BETA)
10
10
  - AWIN
11
11
  - Merkle
12
+ - Moloco Commerce Media
12
13
 
13
14
  ## 2025-01
14
15
  - Blueshift
15
16
  - Google BigQuery
16
17
  - Iterable (BETA)
17
18
  - Microsoft Ads (BETA)
18
- - Moloco Commerce Media (BETA)
19
19
 
20
20
  ## 2024-12
21
21
  - Google Analytics 4 (Collect) (BETA)
@@ -110,11 +110,11 @@ previously.
110
110
  | Amazon Data Firehose (BETA) | 2025-02 | Version: 0.1.0 Beta Version Amazon Data Firehose initial release. |
111
111
  | AWIN | 2025-02 | Version: 1.0.0 Stable release |
112
112
  | Merkle | 2025-02 | Version: 1.2.0 Updated mappings to comply with Merkle's requirements Added required fields: ipAddress, userAgent, pageUrl Added optional fields: rawEmail Updated type field of page event to viewpage |
113
+ | Moloco Commerce Media | 2025-02 | Version: 1.0.0 New Event: session_started -> Mapped to Moloco's LAND event (web) New Event: application_open -> Mapped to Moloco's LAND event (mobile) Updated Event: screen -> Mapped to Moloco's PAGE_VIEW or HOME event based on input.name and/or input.properties.name (mobile) Updated Event: order_completed -> Added mapping for Moloco's shipping_charge field using MetaRouter's properties.shipping (web & mobile) Stable release |
113
114
  | Blueshift | 2025-01 | Version: 1.0.0 Stable release |
114
115
  | Google BigQuery | 2025-01 | Version: 1.1.0 Adding support for table overrides |
115
116
  | Iterable (BETA) | 2025-01 | Version: 0.4.0 Add user agent and ip to default and order_completed stanzas Remove redundant properties-dataFields mapping from identify events |
116
117
  | Microsoft Ads (BETA) | 2025-01 | Version: 0.1.0 Beta Version Microsoft Ads initial release |
117
- | Moloco Commerce Media (BETA) | 2025-01 | Version: 0.4.0 Updated friendlyName Updated kit name |
118
118
  | Google Analytics 4 (Collect) (BETA) | 2024-12 | Version: 0.4.0 Added user property expression for anonymousId. |
119
119
  | 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 |
120
120
  | Adobe Analytics - Experience (BETA) | 2024-11 | Version: 0.6.0 Adding checkout event Updating inputKey for siteSection |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/ajs-starter-kit",
3
- "version": "1.0.120",
3
+ "version": "1.0.121",
4
4
  "description": "MetaRouter analytics.js starter kit",
5
5
  "main": "index.js",
6
6
  "scripts": {