@metarouter/ajs-starter-kit 1.0.128 → 1.0.129

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.
@@ -0,0 +1 @@
1
+ "ff2bbb3d545810a3cecd723c17fc8988"
@@ -0,0 +1,34 @@
1
+ {
2
+ "params": [
3
+ {
4
+ "name": "ADVERTISABLE_EID",
5
+ "exampleValue": "my-advertisable-eid"
6
+ },
7
+ {
8
+ "name": "SERVER_ACCESS_TOKEN",
9
+ "exampleValue": "my-server-access-token"
10
+ }
11
+ ],
12
+ "default": {
13
+ "endpoint": "https://srv.adroll.com/api?advertisable=$$ADVERTISABLE_EID$$",
14
+ "method": "POST",
15
+ "headers": [
16
+ {
17
+ "key": "Accept-Encoding",
18
+ "value": "application/json"
19
+ },
20
+ {
21
+ "key": "Content-Type",
22
+ "value": "application/json"
23
+ },
24
+ {
25
+ "key": "User-Agent",
26
+ "fromEventKey": "context.userAgent"
27
+ },
28
+ {
29
+ "key": "Authorization",
30
+ "value": "Token $$SERVER_ACCESS_TOKEN$$"
31
+ }
32
+ ]
33
+ }
34
+ }
@@ -0,0 +1 @@
1
+ "3d0cac0125e3c87c73dbd72a5a25f337"
@@ -0,0 +1,21 @@
1
+ {
2
+ "isDraft": true,
3
+ "isDeprecated": false,
4
+ "isBeta": false,
5
+ "friendlyName": "AdRoll",
6
+ "description": "AdRoll is a digital marketing platform designed to help businesses grow their online presence\nthrough targeted advertising and retargeting strategies.",
7
+ "logo": "https://cdn.metarouter.io/adroll.png",
8
+ "color": "#dbf3fc",
9
+ "eventSource": {
10
+ "isAndroidApp": false,
11
+ "isIosApp": false,
12
+ "isWebApp": true
13
+ },
14
+ "inputSchema": "analytics_js",
15
+ "releaseNotes": [
16
+ {
17
+ "date": "2025-03-12T07:00:00.000Z",
18
+ "note": "Version: 0.1.0\nDraft Mode\nAdRoll draft release"
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1 @@
1
+ "6df52e68ec1260123db132718d5cfdf7"
@@ -0,0 +1,189 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "params": [
4
+ {
5
+ "name": "ADVERTISABLE_EID",
6
+ "exampleValue": "org_123456"
7
+ },
8
+ {
9
+ "name": "PIXEL_EID",
10
+ "exampleValue": "pixel_123456"
11
+ }
12
+ ],
13
+ "global": {
14
+ "enrichments": [
15
+ {
16
+ "outputKey": "advertisable_eid",
17
+ "staticString": "$$ADVERTISABLE_EID$$"
18
+ },
19
+ {
20
+ "outputKey": "pixel_eid",
21
+ "staticString": "$$PIXEL_EID$$"
22
+ }
23
+ ],
24
+ "mappings": [
25
+ {
26
+ "inputKey": "context.page.url",
27
+ "outputKey": "page_location"
28
+ },
29
+ {
30
+ "inputKey": "context.ip",
31
+ "outputKey": "ip"
32
+ },
33
+ {
34
+ "inputKey": "userId",
35
+ "outputKey": "identifiers.user_id"
36
+ },
37
+ {
38
+ "inputKey": "traits.email",
39
+ "outputKey": "identifiers.email"
40
+ },
41
+ {
42
+ "inputKey": "context.providers.adroll.adct",
43
+ "outputKey": "identifiers.adct"
44
+ },
45
+ {
46
+ "inputKey": "context.providers.adroll.fpc_cookie",
47
+ "outputKey": "identifiers.first_party_cookie"
48
+ },
49
+ {
50
+ "inputKey": "context.userAgent",
51
+ "outputKey": "user_agent"
52
+ },
53
+ {
54
+ "inputKey": "input",
55
+ "outputKey": "external_data",
56
+ "transforms": [
57
+ {
58
+ "expression": {
59
+ "lang": "lua",
60
+ "body": "local p = input.properties\nlocal result = {}\n\nfor k, v in pairs(p) do\n result[k] = TO_STRING(v)\nend\n\nreturn TO_STRING(result)"
61
+ }
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "inputKey": "input",
67
+ "outputKey": "timestamp",
68
+ "transforms": [
69
+ {
70
+ "expression": {
71
+ "lang": "lua",
72
+ "body": "return TO_STRING(SECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp))"
73
+ }
74
+ }
75
+ ]
76
+ },
77
+ {
78
+ "inputKey": "input",
79
+ "outputKey": "event_attributes.products",
80
+ "transforms": [
81
+ {
82
+ "expression": {
83
+ "lang": "lua",
84
+ "body": "return MAP(input.properties.products, function(p)\n return {\n product_id = p.product_id or p.sku,\n product_group = p.category,\n price = TO_STRING(p.price),\n quantity = p.quantity,\n product_category = p.category,\n }\n end)"
85
+ }
86
+ }
87
+ ]
88
+ }
89
+ ]
90
+ },
91
+ "default": {
92
+ "enrichments": [
93
+ {
94
+ "staticString": "pageView",
95
+ "outputKey": "event_name"
96
+ }
97
+ ],
98
+ "mappings": [
99
+ {
100
+ "inputKey": "properties.products",
101
+ "outputKey": "event_attributes.products"
102
+ }
103
+ ]
104
+ },
105
+ "eventSpecific": {
106
+ "products_searched": {
107
+ "enrichments": [
108
+ {
109
+ "staticString": "productSearch",
110
+ "outputKey": "event_name"
111
+ }
112
+ ],
113
+ "mappings": [
114
+ {
115
+ "inputKey": "properties.query",
116
+ "outputKey": "event_attributes.keywords"
117
+ }
118
+ ]
119
+ },
120
+ "product_added": {
121
+ "enrichments": [
122
+ {
123
+ "staticString": "addToCart",
124
+ "outputKey": "event_name"
125
+ }
126
+ ],
127
+ "mappings": [
128
+ {
129
+ "inputKey": "properties.currency",
130
+ "outputKey": "currency"
131
+ },
132
+ {
133
+ "inputKey": "input",
134
+ "outputKey": "event_attributes.products",
135
+ "transforms": [
136
+ {
137
+ "expression": {
138
+ "lang": "lua",
139
+ "body": "local p = input.properties\nreturn {{\n product_id = p.product_id or p.sku,\n product_group = p.category,\n price = TO_STRING(p.price),\n quantity = p.quantity,\n product_category = p.category,\n }}"
140
+ }
141
+ }
142
+ ]
143
+ }
144
+ ]
145
+ },
146
+ "order_completed": {
147
+ "enrichments": [
148
+ {
149
+ "staticString": "purchase",
150
+ "outputKey": "event_name"
151
+ }
152
+ ],
153
+ "mappings": [
154
+ {
155
+ "inputKey": "input",
156
+ "outputKey": "conversion_value",
157
+ "transforms": [
158
+ {
159
+ "expression": {
160
+ "lang": "lua",
161
+ "body": "return TO_STRING(input.properties.total or 0)"
162
+ }
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ "inputKey": "properties.currency",
168
+ "outputKey": "currency"
169
+ },
170
+ {
171
+ "inputKey": "properties.order_id",
172
+ "outputKey": "event_attributes.order_id"
173
+ },
174
+ {
175
+ "inputKey": "input",
176
+ "outputKey": "event_attributes.external_data",
177
+ "transforms": [
178
+ {
179
+ "expression": {
180
+ "lang": "lua",
181
+ "body": "local p = input.properties\nreturn TO_STRING({\n affiliation = p.affiliation,\n checkout_id = p.checkout_id,\n checkout_id = p.checkout_id,\n coupon = p.coupon,\n discount = TO_STRING(p.discount),\n revenue = TO_STRING(p.revenue),\n shipping = TO_STRING(p.shipping),\n tax = TO_STRING(p.tax),\n total = TO_STRING(p.total)\n})"
182
+ }
183
+ }
184
+ ]
185
+ }
186
+ ]
187
+ }
188
+ }
189
+ }
@@ -1 +1 @@
1
- "108898d34641aa9470ad9db37a00668d"
1
+ "9d01feb99d1a7d410d1b73df1b8d9962"
@@ -1 +1 @@
1
- "535415e5fdfd12b74463a24690207c69"
1
+ "d90b144d640a0aa3de3d45e5c8bbd015"
@@ -1 +1 @@
1
- "5600a96e7ef5797b2dcb2cb16899832b"
1
+ "ba8ae9e0cc81810ec436169fef4575b9"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "isDraft": false,
3
- "isDeprecated": false,
3
+ "isDeprecated": true,
4
4
  "isBeta": false,
5
5
  "friendlyName": "TheTradeDesk Conversion Events",
6
6
  "description": "Real time conversion events API\nhttps://api.thetradedesk.com/v3/portal/data/doc/DataConversionEventsApi#parameters-items",
@@ -24,6 +24,10 @@
24
24
  {
25
25
  "date": "2024-10-23T00:00:00.000Z",
26
26
  "note": "Version: 1.1.0\nAdded header `Accept-Encoding: application/json`"
27
+ },
28
+ {
29
+ "date": "2025-05-07T00:00:00.000Z",
30
+ "note": "Version: 1.2.0\nDeprecated"
27
31
  }
28
32
  ]
29
33
  }
@@ -1 +1 @@
1
- "01373e169a10ba1ffe0759fc4b32127c"
1
+ "05f9937398ee12d1575651fb5a9aa185"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0",
2
+ "version": "1.2.0",
3
3
  "params": [
4
4
  {
5
5
  "name": "MERCHANT_ID",
package/README.md CHANGED
@@ -5,6 +5,9 @@ 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-05
9
+ - TheTradeDesk Conversion Events
10
+
8
11
  ## 2025-04
9
12
  - Amazon Data Firehose
10
13
  - Meta CAPI
@@ -77,7 +80,6 @@ previously.
77
80
  - Roomvo (BETA)
78
81
  - Salesforce CDP
79
82
  - Snapchat Ads
80
- - TheTradeDesk Conversion Events
81
83
  - TheTradeDesk Firstparty Advertiser Data
82
84
  - VideoAmp (BETA)
83
85
  - Xandr
@@ -114,6 +116,7 @@ previously.
114
116
 
115
117
  | Kit Name | Date | Latest Note |
116
118
  |----------|------|-------------|
119
+ | TheTradeDesk Conversion Events | 2025-05 | Version: 1.2.0 Deprecated |
117
120
  | Amazon Data Firehose | 2025-04 | Version: 1.0.0 Stable release |
118
121
  | Meta CAPI | 2025-04 | Version: 1.5.0 Friendly name updated |
119
122
  | Microsoft Ads | 2025-04 | Version: 1.0.0 Microsoft Ads stable release |
@@ -173,7 +176,6 @@ previously.
173
176
  | Roomvo (BETA) | 2024-10 | Version: 0.2.0 Added header `Accept-Encoding: application/json` |
174
177
  | Salesforce CDP | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
175
178
  | Snapchat Ads | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
176
- | TheTradeDesk Conversion Events | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
177
179
  | TheTradeDesk Firstparty Advertiser Data | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
178
180
  | VideoAmp (BETA) | 2024-10 | Version: 0.3.0 Added header `Accept-Encoding: application/json` |
179
181
  | Xandr | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
package/index.js CHANGED
@@ -94,6 +94,12 @@ exports['adobe-id'] = {
94
94
  metadata: require('./.dist/adobe-id/metadata.json')
95
95
  }
96
96
 
97
+ exports.adroll = {
98
+ endpointSchema: require('./.dist/adroll/connection.json'),
99
+ playbook: require('./.dist/adroll/playbook.json'),
100
+ metadata: require('./.dist/adroll/metadata.json')
101
+ }
102
+
97
103
  exports.amnet = {
98
104
  endpointSchema: require('./.dist/amnet/connection.json'),
99
105
  playbook: require('./.dist/amnet/playbook.json'),
@@ -563,6 +569,11 @@ exports.etags = {
563
569
  playbook: require('./.dist/adobe-id/playbook.etag.json'),
564
570
  kit: require('./.dist/adobe-id/kit.etag.json')
565
571
  },
572
+ adroll: {
573
+ endpointSchema: require('./.dist/adroll/connection.etag.json'),
574
+ playbook: require('./.dist/adroll/playbook.etag.json'),
575
+ kit: require('./.dist/adroll/kit.etag.json')
576
+ },
566
577
  amnet: {
567
578
  endpointSchema: require('./.dist/amnet/connection.etag.json'),
568
579
  playbook: require('./.dist/amnet/playbook.etag.json'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/ajs-starter-kit",
3
- "version": "1.0.128",
3
+ "version": "1.0.129",
4
4
  "description": "MetaRouter analytics.js starter kit",
5
5
  "main": "index.js",
6
6
  "scripts": {