@metarouter/ajs-starter-kit 1.0.110 → 1.0.112

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
- "ce5f9b0337bc778fd4449449363e44a3"
1
+ "019e16a9d770091cb5f5ac406b64ccf5"
@@ -36,6 +36,10 @@
36
36
  {
37
37
  "date": "2024-10-16T00:00:00.000Z",
38
38
  "note": "Version: 0.5.0\nAdding additional parameters for missing reports:\n trackingCode\n siteSection\n referrer"
39
+ },
40
+ {
41
+ "date": "2024-11-20T00:00:00.000Z",
42
+ "note": "Version: 0.6.0\nAdding checkout event\nUpdating inputKey for siteSection"
39
43
  }
40
44
  ]
41
45
  }
@@ -1 +1 @@
1
- "03308bad6d6b6bc728cccdccd58dbe58"
1
+ "b4dbcdba1b8c1e66e2c5d716e852741b"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.5.0",
2
+ "version": "0.6.0",
3
3
  "default": {
4
4
  "filters": [
5
5
  {
@@ -94,7 +94,7 @@
94
94
  "outputKey": "event.xdm.web.webPageDetails.name"
95
95
  },
96
96
  {
97
- "inputKey": "properties.category",
97
+ "inputKey": "properties.path",
98
98
  "outputKey": "event.xdm.web.webPageDetails.siteSection"
99
99
  },
100
100
  {
@@ -280,6 +280,36 @@
280
280
  ]
281
281
  }
282
282
  ]
283
+ },
284
+ "checkout_started": {
285
+ "enrichments": [
286
+ {
287
+ "outputKey": "event.xdm.eventType",
288
+ "staticString": "commerce.checkouts"
289
+ },
290
+ {
291
+ "outputKey": "event.xdm.commerce.checkouts.value",
292
+ "staticInt": 1
293
+ }
294
+ ],
295
+ "mappings": [
296
+ {
297
+ "inputKey": "messageId",
298
+ "outputKey": "event.xdm.commerce.checkouts.id"
299
+ },
300
+ {
301
+ "inputKey": "input",
302
+ "outputKey": "event.xdm.productListItems",
303
+ "transforms": [
304
+ {
305
+ "expression": {
306
+ "lang": "lua",
307
+ "body": "return MAP(input.properties.products, function(p)\n local productCategories = { { categoryID = p.category } }\n return {\n productCategories = productCategories,\n SKU = p.sku,\n name = p.name,\n priceTotal = p.price * (p.quantity or 1),\n quantity = p.quantity or 1\n }\nend)"
308
+ }
309
+ }
310
+ ]
311
+ }
312
+ ]
283
313
  }
284
314
  }
285
315
  }
@@ -1 +1 @@
1
- "8128321330d2ffe6b5feb0440a52d27d"
1
+ "ecb4beee278e6b704f25b9bb29d7e2ce"
@@ -24,6 +24,10 @@
24
24
  {
25
25
  "date": "2024-10-23T00:00:00.000Z",
26
26
  "note": "Version: 0.2.0\nUpdated header `Accept-Encoding: application/json`"
27
+ },
28
+ {
29
+ "date": "2024-11-20T00:00:00.000Z",
30
+ "note": "Version: 0.3.0\nAdded new deduplication parameter for all events, `tid`"
27
31
  }
28
32
  ]
29
33
  }
@@ -1 +1 @@
1
- "463bb879e313087fb076c749fe7637f5"
1
+ "6620dcdc1ba553653dcd368c7b7f144e"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.0",
2
+ "version": "0.3.0",
3
3
  "params": [
4
4
  {
5
5
  "name": "ACCOUNT_ID",
@@ -42,6 +42,10 @@
42
42
  }
43
43
  ],
44
44
  "mappings": [
45
+ {
46
+ "inputKey": "messageId",
47
+ "outputKey": "tid"
48
+ },
45
49
  {
46
50
  "inputKey": "input",
47
51
  "outputKey": "seg.browser",
@@ -0,0 +1 @@
1
+ "0cb388f22b4a349e7e01941fc6def3cc"
@@ -0,0 +1,25 @@
1
+ {
2
+ "params": [
3
+ {
4
+ "name": "DATA_CENTER",
5
+ "exampleValue": "my-data-center",
6
+ "defaultValue": "us",
7
+ "description": "Data center. Available options: ams (use for European and African users), asia (use for Asian and Australian users), us (use for North and South American users)."
8
+ }
9
+ ],
10
+ "default": {
11
+ "endpoint": "https://$$DATA_CENTER$$.creativecdn.com/partner/omni/postbacks?",
12
+ "method": "POST",
13
+ "headers": [
14
+ {
15
+ "key": "Accept-Encoding",
16
+ "value": "application/json"
17
+ }
18
+ ],
19
+ "batchSize": 1,
20
+ "transform": {
21
+ "lang": "lua",
22
+ "body": "local params = {}\nfor key, val in pairs(batch[1]) do\n table.insert(params, key..\"=\"..val)\nend\nrequest.url = request.url .. JOIN(params, '&')\nrequest.body = {}\nreturn request"
23
+ }
24
+ }
25
+ }
@@ -0,0 +1 @@
1
+ "01f6cc9025f1ba8d09f6e1527bd1bc78"
@@ -0,0 +1,21 @@
1
+ {
2
+ "isDraft": false,
3
+ "isDeprecated": false,
4
+ "isBeta": true,
5
+ "friendlyName": "RTB House",
6
+ "description": "RTB House offers a demand-side platform (DSP) designed for real-time bidding (RTB) and advanced retargeting, leveraging deep learning algorithms to enhance ad targeting precision.",
7
+ "logo": "https://cdn.metarouter.io/rtb-house.png",
8
+ "color": "#EF4137",
9
+ "eventSource": {
10
+ "isAndroidApp": false,
11
+ "isIosApp": false,
12
+ "isWebApp": true
13
+ },
14
+ "inputSchema": "analytics_js",
15
+ "releaseNotes": [
16
+ {
17
+ "date": "2024-11-20T22:00:00.000Z",
18
+ "note": "Version: 0.1.0\nBeta Version\nRTB House initial release"
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1 @@
1
+ "425d707091f7b548bfc2d108664fecc8"
@@ -0,0 +1,65 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "params": [
4
+ {
5
+ "name": "PARTNER_KEY",
6
+ "exampleValue": "my-partner-key"
7
+ },
8
+ {
9
+ "name": "TAGGING_HASH",
10
+ "exampleValue": "my-tagging-hash"
11
+ }
12
+ ],
13
+ "default": {
14
+ "filters": [
15
+ {
16
+ "byEventNames": {
17
+ "action": "allow",
18
+ "events": [
19
+ ""
20
+ ]
21
+ }
22
+ }
23
+ ]
24
+ },
25
+ "eventSpecific": {
26
+ "order-completed": {
27
+ "enrichments": [
28
+ {
29
+ "outputKey": "pkey",
30
+ "staticString": "$$PARTNER_KEY$$"
31
+ }
32
+ ],
33
+ "mappings": [
34
+ {
35
+ "inputKey": "anonymousId",
36
+ "outputKey": "aid"
37
+ },
38
+ {
39
+ "inputKey": "input",
40
+ "outputKey": "time",
41
+ "transforms": [
42
+ {
43
+ "expression": {
44
+ "body": "return MILLISECONDS_SINCE_EPOCH_FROM_RFC3999(TO_DATE_TIME(input.timestamp or input.originalTimestamp or input.sentAt, { inputFormat = \"2006-01-02T15:04:05Z07:00\" }))",
45
+ "lang": "lua"
46
+ }
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ "inputKey": "input",
52
+ "outputKey": "tag",
53
+ "transforms": [
54
+ {
55
+ "expression": {
56
+ "body": "local value = SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end));\nlocal products = MAP(input.properties.products, function (p) return p.product_id or p.sku end );\nreturn JOIN({\n 'pr_$$TAGGING_HASH$$',\n 'conversion_order_purchase',\n value,\n input.properties.order_id,\n JOIN(products, \",\")\n}, '_')",
57
+ "lang": "lua"
58
+ }
59
+ }
60
+ ]
61
+ }
62
+ ]
63
+ }
64
+ }
65
+ }
@@ -1 +1 @@
1
- "0e1bf291cee9bf32cb236000f46132cf"
1
+ "df78b2ed13506c726fc9ad98a69a5f09"
@@ -28,6 +28,10 @@
28
28
  {
29
29
  "date": "2024-10-23T00:00:00.000Z",
30
30
  "note": "Version: 1.2.0\nAdded header `Accept-Encoding: application/json`"
31
+ },
32
+ {
33
+ "date": "2024-11-20T00:00:00.000Z",
34
+ "note": "Version: 1.3.0\nAdded the `_scid` cookie value as `user_data.sc_cookie1`"
31
35
  }
32
36
  ]
33
37
  }
@@ -1 +1 @@
1
- "a0364988d1a322017cc842b8f02c66a0"
1
+ "1e7079544bc462286e9c65c95cafa5d9"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.0",
2
+ "version": "1.3.0",
3
3
  "default": {
4
4
  "filters": [
5
5
  {
@@ -59,6 +59,10 @@
59
59
  "inputKey": "context.providers.snapchatCAPI.ScCid",
60
60
  "outputKey": "user_data.sc_click_id"
61
61
  },
62
+ {
63
+ "inputKey": "context.providers.snapchatCAPI._scid",
64
+ "outputKey": "user_data.sc_cookie1"
65
+ },
62
66
  {
63
67
  "inputKey": "context.ip",
64
68
  "outputKey": "user_data.client_ip_address"
package/README.md CHANGED
@@ -6,15 +6,18 @@ server, and other sources. It is particularly useful for tracking the pages or s
6
6
  users visit, the actions they take on your property, and whether the user has been identified
7
7
  previously.
8
8
  ## 2024-11
9
+ - Adobe Analytics - Experience (BETA)
9
10
  - AWIN (BETA)
11
+ - Convert (BETA)
10
12
  - Moloco (BETA)
11
13
  - Innervate
14
+ - RTB House (BETA)
15
+ - Snapchat - CAPI
12
16
  - Zeotap (BETA)
13
17
 
14
18
  ## 2024-10
15
19
  - ActionIQ
16
20
  - Acuity Ads
17
- - Adobe Analytics - Experience (BETA)
18
21
  - Adobe ID (BETA)
19
22
  - Amnet (BETA)
20
23
  - Amobee
@@ -26,7 +29,6 @@ previously.
26
29
  - Blueshift (BETA)
27
30
  - Clinch
28
31
  - Commission Junction
29
- - Convert (BETA)
30
32
  - Criteo
31
33
  - Customer.io
32
34
  - Facebook Pixel
@@ -55,7 +57,6 @@ previously.
55
57
  - Roomvo (BETA)
56
58
  - Salesforce CDP
57
59
  - Snapchat Ads
58
- - Snapchat - CAPI
59
60
  - TheTradeDesk Conversion Events
60
61
  - TheTradeDesk Firstparty Advertiser Data
61
62
  - TikTok
@@ -98,13 +99,16 @@ previously.
98
99
 
99
100
  | Kit Name | Date | Latest Note |
100
101
  |----------|------|-------------|
102
+ | Adobe Analytics - Experience (BETA) | 2024-11 | Version: 0.6.0 Adding checkout event Updating inputKey for siteSection |
101
103
  | AWIN (BETA) | 2024-11 | Version: 0.1.0 Beta Version AWIN initial release |
104
+ | Convert (BETA) | 2024-11 | Version: 0.3.0 Added new deduplication parameter for all events, `tid` |
102
105
  | Moloco (BETA) | 2024-11 | Version: 0.1.0 Beta Version |
103
106
  | Innervate | 2024-11 | Version: 1.0.0 Updated friendly name Stable release |
107
+ | RTB House (BETA) | 2024-11 | Version: 0.1.0 Beta Version RTB House initial release |
108
+ | Snapchat - CAPI | 2024-11 | Version: 1.3.0 Added the `_scid` cookie value as `user_data.sc_cookie1` |
104
109
  | Zeotap (BETA) | 2024-11 | Version: 0.4.0 Added new mapping for `context_country` |
105
110
  | ActionIQ | 2024-10 | Version: 1.2.0 Added header `Accept-Encoding: application/json` |
106
111
  | Acuity Ads | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
107
- | Adobe Analytics - Experience (BETA) | 2024-10 | Version: 0.5.0 Adding additional parameters for missing reports: trackingCode siteSection referrer |
108
112
  | Adobe ID (BETA) | 2024-10 | Version: 0.2.0 Added header `Accept-Encoding: application/json` |
109
113
  | Amnet (BETA) | 2024-10 | Version: 0.2.0 Added header `Accept-Encoding: application/json` |
110
114
  | Amobee | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
@@ -116,7 +120,6 @@ previously.
116
120
  | Blueshift (BETA) | 2024-10 | Version: 0.3.0 Added header `Accept-Encoding: application/json` |
117
121
  | Clinch | 2024-10 | Version: 1.2.0 Added header `Accept-Encoding: application/json` |
118
122
  | Commission Junction | 2024-10 | Version: 1.2.0 Added header `Accept-Encoding: application/json` |
119
- | Convert (BETA) | 2024-10 | Version: 0.2.0 Updated header `Accept-Encoding: application/json` |
120
123
  | Criteo | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
121
124
  | Customer.io | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
122
125
  | Facebook Pixel | 2024-10 | Version: 1.3.0 Added header `Accept-Encoding: application/json` |
@@ -145,7 +148,6 @@ previously.
145
148
  | Roomvo (BETA) | 2024-10 | Version: 0.2.0 Added header `Accept-Encoding: application/json` |
146
149
  | Salesforce CDP | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
147
150
  | Snapchat Ads | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
148
- | Snapchat - CAPI | 2024-10 | Version: 1.2.0 Added header `Accept-Encoding: application/json` |
149
151
  | TheTradeDesk Conversion Events | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
150
152
  | TheTradeDesk Firstparty Advertiser Data | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
151
153
  | TikTok | 2024-10 | Version: 2.2.0 Added header `Accept-Encoding: application/json` |
package/index.js CHANGED
@@ -375,6 +375,12 @@ exports.roomvo = {
375
375
  metadata: require('./.dist/roomvo/metadata.json')
376
376
  }
377
377
 
378
+ exports['rtb-house'] = {
379
+ endpointSchema: require('./.dist/rtb-house/connection.json'),
380
+ playbook: require('./.dist/rtb-house/playbook.json'),
381
+ metadata: require('./.dist/rtb-house/metadata.json')
382
+ }
383
+
378
384
  exports['salesforce-cdp'] = {
379
385
  endpointSchema: require('./.dist/salesforce-cdp/connection.json'),
380
386
  playbook: require('./.dist/salesforce-cdp/playbook.json'),
@@ -768,6 +774,11 @@ exports.etags = {
768
774
  playbook: require('./.dist/roomvo/playbook.etag.json'),
769
775
  kit: require('./.dist/roomvo/kit.etag.json')
770
776
  },
777
+ 'rtb-house': {
778
+ endpointSchema: require('./.dist/rtb-house/connection.etag.json'),
779
+ playbook: require('./.dist/rtb-house/playbook.etag.json'),
780
+ kit: require('./.dist/rtb-house/kit.etag.json')
781
+ },
771
782
  'salesforce-cdp': {
772
783
  endpointSchema: require('./.dist/salesforce-cdp/connection.etag.json'),
773
784
  playbook: require('./.dist/salesforce-cdp/playbook.etag.json'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/ajs-starter-kit",
3
- "version": "1.0.110",
3
+ "version": "1.0.112",
4
4
  "description": "MetaRouter analytics.js starter kit",
5
5
  "main": "index.js",
6
6
  "scripts": {