@metarouter/ajs-starter-kit 1.0.116 → 1.0.118

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",
@@ -116,11 +116,20 @@
116
116
  "dataset": {
117
117
  "type": "string"
118
118
  },
119
+ "defaultTableOverride": {
120
+ "type": "string"
121
+ },
119
122
  "projectId": {
120
123
  "type": "string"
121
124
  },
122
125
  "region": {
123
126
  "type": "string"
127
+ },
128
+ "tableOverrides": {
129
+ "type": "object",
130
+ "additionalProperties": {
131
+ "type": "string"
132
+ }
124
133
  }
125
134
  },
126
135
  "required": [
@@ -1 +1 @@
1
- "4a403d37d082fdcabaf3cccd48203c70"
1
+ "5ebffd12d5b38bbd159a889836503c13"
@@ -3,6 +3,17 @@
3
3
  "credentials": "my-credentials",
4
4
  "dataset": "my-dataset",
5
5
  "project_id": "my-project-id",
6
- "region": "my-region"
6
+ "region": "my-region",
7
+ "defaultTableOverride": "my-default-table-override",
8
+ "tableOverrides": {
9
+ "identify": "identify",
10
+ "page": "page",
11
+ "products_searched": "products_searched",
12
+ "product_list_viewed": "product_list_viewed",
13
+ "product_viewed": "product_viewed",
14
+ "product_added": "product_added",
15
+ "cart_viewed": "cart_viewed",
16
+ "order_completed": "order_completed"
17
+ }
7
18
  }
8
19
  }
@@ -1 +1 @@
1
- "5ac3f228d5a84e64c7681d3c519e9d71"
1
+ "7819ac44a9d64153d0fd61a2c915b561"
@@ -32,6 +32,10 @@
32
32
  {
33
33
  "date": "2024-08-21T00:00:00.000Z",
34
34
  "note": "Version: 1.0.0\nAdding option to set datase creation mode to BIG_QUERY_OPTIONS_DISABLE_DATASET_CREATION\nThis will allow users to create save events without having the bigquery.datasets.create permission in their IAM role"
35
+ },
36
+ {
37
+ "date": "2025-01-16T00:00:00.000Z",
38
+ "note": "Version: 1.1.0\nAdding support for table overrides"
35
39
  }
36
40
  ]
37
41
  }
@@ -1 +1 @@
1
- "bdb3427237ab8b3dead809d79dee7325"
1
+ "b9a666c0d9eebe09a7266fa90a6213a6"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0",
2
+ "version": "1.1.0",
3
3
  "global": {
4
4
  "mappings": [
5
5
  {
@@ -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,18 @@ 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
+ - Google BigQuery
12
+ - Moloco Commerce Media (BETA)
13
+
14
+ ## 2024-12
10
15
  - Google Analytics 4 (Collect) (BETA)
11
- - Moloco (BETA)
12
16
  - RTB House (BETA)
13
17
 
14
18
  ## 2024-11
15
19
  - Adobe Analytics - Experience (BETA)
16
- - AWIN (BETA)
17
20
  - Convert (BETA)
18
21
  - Iterable (BETA)
19
22
  - Innervate
@@ -74,7 +77,6 @@ previously.
74
77
 
75
78
  ## 2024-08
76
79
  - Webhooks
77
- - Google BigQuery
78
80
  - Nextdoor
79
81
 
80
82
  ## 2024-06
@@ -101,12 +103,13 @@ 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
+ | Google BigQuery | 2025-01 | Version: 1.1.0 Adding support for table overrides |
109
+ | Moloco Commerce Media (BETA) | 2025-01 | Version: 0.4.0 Updated friendlyName Updated kit name |
105
110
  | 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
111
  | 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
112
  | 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
113
  | Convert (BETA) | 2024-11 | Version: 0.3.0 Added new deduplication parameter for all events, `tid` |
111
114
  | Iterable (BETA) | 2024-11 | Version: 0.3.0 Update connection.yaml for SDK forwarder format Move user agent and ip to global stanza |
112
115
  | Innervate | 2024-11 | Version: 1.0.0 Updated friendly name Stable release |
@@ -161,7 +164,6 @@ previously.
161
164
  | CM360 - Floodlights (BETA) | 2024-09 | Version 0.4.0 Friendly name renaming Description and color updated |
162
165
  | X Ads - Web Conversions | 2024-09 | Version: 1.0.0 Stable release |
163
166
  | Webhooks | 2024-08 | Version: 1.0.0 Stable release |
164
- | Google BigQuery | 2024-08 | Version: 1.0.0 Adding option to set datase creation mode to BIG_QUERY_OPTIONS_DISABLE_DATASET_CREATION This will allow users to create save events without having the bigquery.datasets.create permission in their IAM role |
165
167
  | Nextdoor | 2024-08 | Version: 1.0.0 Stable release |
166
168
  | Google AJSID Segments (BETA) | 2024-06 | Renaming to Google AJSID Segments |
167
169
  | Azure Blob | 2024-04 | Added SAS Token |
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.118",
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"