@metarouter/ajs-starter-kit 1.0.84 → 1.0.85

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
- "92c7ed06cd44b4f5968f6403fbfb8dc7"
1
+ "ba3cf74b862aa0ad225420cf51a4d4cc"
@@ -19,6 +19,10 @@
19
19
  {
20
20
  "date": "2024-02-12T00:00:00.000Z",
21
21
  "note": "Add order_canceled and order_updated."
22
+ },
23
+ {
24
+ "date": "2024-03-20T00:00:00.000Z",
25
+ "note": "Bugfix: `cjevent` spelling; `cjEvent` sent only for `order_completed` events.\nMoved the `actionTrackerId` value as the value of the `ACTION_TRACKER_ID` param."
22
26
  }
23
27
  ]
24
28
  }
@@ -1 +1 @@
1
- "d81df4b5939b0b95134d106389e9eafe"
1
+ "84909ed873973ab26ee36e8dad54a318"
@@ -1,9 +1,13 @@
1
1
  {
2
- "version": "0.2.0",
2
+ "version": "0.2.1",
3
3
  "params": [
4
4
  {
5
5
  "name": "ENTERPRISE_ID",
6
6
  "exampleValue": "my-enterprise-id"
7
+ },
8
+ {
9
+ "name": "ACTION_TRACKER_ID",
10
+ "exampleValue": "my-action-tracker-id"
7
11
  }
8
12
  ],
9
13
  "global": {
@@ -14,17 +18,18 @@
14
18
  }
15
19
  ],
16
20
  "mappings": [
17
- {
18
- "inputKey": "context.providers.commissionJunction.cjEvent",
19
- "outputKey": "cjEvent"
20
- },
21
21
  {
22
22
  "inputKey": "properties.sid",
23
23
  "outputKey": "sid"
24
24
  },
25
25
  {
26
26
  "inputKey": "properties.order_id",
27
- "outputKey": "orderId"
27
+ "outputKey": "orderId",
28
+ "transforms": [
29
+ {
30
+ "toScalar": "string"
31
+ }
32
+ ]
28
33
  }
29
34
  ]
30
35
  },
@@ -50,11 +55,15 @@
50
55
  {
51
56
  "expression": {
52
57
  "lang": "lua",
53
- "body": "return TO_TRUNCATED_INT(\"ADD_ACTION_TRACKER_ID_HERE\")"
58
+ "body": "return TO_TRUNCATED_INT($$ACTION_TRACKER_ID$$)"
54
59
  }
55
60
  }
56
61
  ]
57
62
  },
63
+ {
64
+ "inputKey": "context.providers.commissionJunction.cjevent",
65
+ "outputKey": "cjEvent"
66
+ },
58
67
  {
59
68
  "inputKey": "properties.revenue",
60
69
  "outputKey": "amount"
@@ -166,7 +175,7 @@
166
175
  {
167
176
  "expression": {
168
177
  "lang": "lua",
169
- "body": "return TO_TRUNCATED_INT(\"ADD_ACTION_TRACKER_ID_HERE\")"
178
+ "body": "return TO_TRUNCATED_INT($$ACTION_TRACKER_ID$$)"
170
179
  }
171
180
  }
172
181
  ]
@@ -282,7 +291,7 @@
282
291
  {
283
292
  "expression": {
284
293
  "lang": "lua",
285
- "body": "return TO_TRUNCATED_INT(\"ADD_ACTION_TRACKER_ID_HERE\")"
294
+ "body": "return TO_TRUNCATED_INT($$ACTION_TRACKER_ID$$)"
286
295
  }
287
296
  }
288
297
  ]
@@ -1 +1 @@
1
- "0e6999a383403cabe2da9beba3fede3e"
1
+ "7694bb76ed4aecbb7fd15dfb02fcae26"
@@ -19,6 +19,10 @@
19
19
  {
20
20
  "date": "2023-12-13T00:00:00.000Z",
21
21
  "note": "Marked as stable version: 1.0.0"
22
+ },
23
+ {
24
+ "date": "2024-03-20T00:00:00.000Z",
25
+ "note": "Updated Standard events usage\nVersion bump: 1.1.0"
22
26
  }
23
27
  ]
24
28
  }
@@ -1 +1 @@
1
- "076b7f761bd4deb66311e84af8335ec4"
1
+ "0a0277466c0607d5247c79480617bbd9"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0",
2
+ "version": "1.1.0",
3
3
  "default": {
4
4
  "filters": [
5
5
  {
@@ -62,11 +62,7 @@
62
62
  "enrichments": [
63
63
  {
64
64
  "outputKey": "event_type.tracking_type",
65
- "staticString": "Custom"
66
- },
67
- {
68
- "outputKey": "event_type.custom_event_name",
69
- "staticString": "Page"
65
+ "staticString": "PageVisit"
70
66
  }
71
67
  ]
72
68
  },
@@ -74,13 +70,7 @@
74
70
  "enrichments": [
75
71
  {
76
72
  "outputKey": "event_type.tracking_type",
77
- "staticString": "Custom"
78
- }
79
- ],
80
- "mappings": [
81
- {
82
- "inputKey": "event",
83
- "outputKey": "event_type.custom_event_name"
73
+ "staticString": "Search"
84
74
  }
85
75
  ]
86
76
  },
@@ -126,7 +116,7 @@
126
116
  "enrichments": [
127
117
  {
128
118
  "outputKey": "event_type.tracking_type",
129
- "staticString": "Custom"
119
+ "staticString": "ViewContent"
130
120
  },
131
121
  {
132
122
  "outputKey": "event_metadata.item_count",
@@ -134,10 +124,6 @@
134
124
  }
135
125
  ],
136
126
  "mappings": [
137
- {
138
- "inputKey": "event",
139
- "outputKey": "event_type.custom_event_name"
140
- },
141
127
  {
142
128
  "inputKey": "input",
143
129
  "outputKey": "event_metadata.products",
package/README.md CHANGED
@@ -6,12 +6,13 @@ 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-03
9
+ - Commission Junction (BETA)
9
10
  - Criteo (BETA)
10
11
  - Facebook Pixel
12
+ - Reddit Ads
11
13
 
12
14
  ## 2024-02
13
15
  - Azure Blob
14
- - Commission Junction (BETA)
15
16
  - Google Cloud Storage (BETA)
16
17
  - Google Pub/Sub
17
18
  - Kafka
@@ -59,7 +60,6 @@ previously.
59
60
  - Pinterest Ads
60
61
  - Pinterest CAPI
61
62
  - Podsights (BETA)
62
- - Reddit Ads
63
63
  - RevJet (BETA)
64
64
  - Roku
65
65
  - Roomvo (BETA)
@@ -77,10 +77,11 @@ previously.
77
77
 
78
78
  | Kit Name | Date | Latest Note |
79
79
  |----------|------|-------------|
80
+ | Commission Junction (BETA) | 2024-03 | Bugfix: `cjevent` spelling; `cjEvent` sent only for `order_completed` events. Moved the `actionTrackerId` value as the value of the `ACTION_TRACKER_ID` param. |
80
81
  | Criteo (BETA) | 2024-03 | Migrated to Server to Server endpoint |
81
82
  | Facebook Pixel | 2024-03 | Moved context.providors.facebookPixel to context.providers.facebookTag |
83
+ | Reddit Ads | 2024-03 | Updated Standard events usage Version bump: 1.1.0 |
82
84
  | Azure Blob | 2024-02 | Removed Identity |
83
- | Commission Junction (BETA) | 2024-02 | Add order_canceled and order_updated. |
84
85
  | Google Cloud Storage (BETA) | 2024-02 | Removed Identity |
85
86
  | Google Pub/Sub | 2024-02 | Removed Identity |
86
87
  | Kafka | 2024-02 | Removed Identity |
@@ -124,7 +125,6 @@ previously.
124
125
  | Pinterest Ads | 2023-12 | Marked as stable version: 1.0.0 |
125
126
  | Pinterest CAPI | 2023-12 | Marked as stable version: 1.0.0 |
126
127
  | Podsights (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
127
- | Reddit Ads | 2023-12 | Marked as stable version: 1.0.0 |
128
128
  | RevJet (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
129
129
  | Roku | 2023-12 | Marked as stable version: 1.0.0 |
130
130
  | Roomvo (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/ajs-starter-kit",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "MetaRouter analytics.js starter kit",
5
5
  "main": "index.js",
6
6
  "scripts": {