@metarouter/ajs-starter-kit 1.0.123 → 1.0.124

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
- "7760e17c3d8f9bd3de9c72ab399283e0"
1
+ "bacfc071fc8b0340f1ea002106f7aeba"
@@ -3,10 +3,15 @@
3
3
  {
4
4
  "name": "API_KEY",
5
5
  "exampleValue": "my-api-key"
6
+ },
7
+ {
8
+ "name": "API_URL",
9
+ "exampleValue": "my-api-url",
10
+ "defaultValue": "https://api2.amplitude.com"
6
11
  }
7
12
  ],
8
13
  "default": {
9
- "endpoint": "https://api2.amplitude.com/batch",
14
+ "endpoint": "$$API_URL$$/batch",
10
15
  "batchSize": 10,
11
16
  "transform": {
12
17
  "lang": "lua",
@@ -30,7 +35,7 @@
30
35
  },
31
36
  "eventSpecific": {
32
37
  "identify": {
33
- "endpoint": "https://api.amplitude.com/identify",
38
+ "endpoint": "$$API_URL$$/identify",
34
39
  "method": "GET"
35
40
  }
36
41
  }
@@ -1 +1 @@
1
- "cb30602a497694715e97fcc66bfab5d1"
1
+ "9c4ef4fef98bd2c5767e6a257f1e42ca"
@@ -52,6 +52,10 @@
52
52
  {
53
53
  "date": "2024-10-23T00:00:00.000Z",
54
54
  "note": "Version: 1.1.0\nAdded header `Accept-Encoding: application/json`"
55
+ },
56
+ {
57
+ "date": "2025-03-12T00:00:00.000Z",
58
+ "note": "Version: 1.2.0\nAdded API_URL param to accommodate Amplitude's EU residency server"
55
59
  }
56
60
  ]
57
61
  }
@@ -1 +1 @@
1
- "834bfe68a6a49475ad5b437efe6a3dc5"
1
+ "c124144473be88c006d8529790bebac6"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0",
2
+ "version": "1.2.0",
3
3
  "params": [
4
4
  {
5
5
  "name": "API_KEY",
@@ -1 +1 @@
1
- "d877f39358279e01f0127d56eb00907a"
1
+ "5363d91988101708e8208a5ee65ea94e"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "isDraft": false,
3
3
  "isDeprecated": false,
4
- "isBeta": true,
4
+ "isBeta": false,
5
5
  "friendlyName": "Button",
6
6
  "description": "Button is a commerce optimization platform that enhances affiliate, creator, and social traffic through AI-driven solutions.",
7
7
  "logo": "https://cdn.metarouter.io/button.png",
@@ -16,6 +16,14 @@
16
16
  {
17
17
  "date": "2025-02-19T22:00:00.000Z",
18
18
  "note": "Version: 0.1.0\nBeta Version\nButton initial release"
19
+ },
20
+ {
21
+ "date": "2025-03-12T22:00:00.000Z",
22
+ "note": "Version: 0.1.1\nFix stanza spelling"
23
+ },
24
+ {
25
+ "date": "2025-03-12T22:00:00.000Z",
26
+ "note": "Version: 1.0.0\nStable release"
19
27
  }
20
28
  ]
21
29
  }
@@ -1 +1 @@
1
- "64e7cfb0aedd617a5abb97559137ff29"
1
+ "a26132d23cc3868990f71e20aaeadd82"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.0",
2
+ "version": "1.0.0",
3
3
  "default": {
4
4
  "filters": [
5
5
  {
@@ -72,7 +72,7 @@
72
72
  }
73
73
  ]
74
74
  },
75
- "event_specific": {
75
+ "eventSpecific": {
76
76
  "order_completed": {
77
77
  "enrichments": [
78
78
  {
@@ -0,0 +1 @@
1
+ "844d255b7d234f50fad501d603c4ae87"
@@ -0,0 +1,6 @@
1
+ {
2
+ "default": {
3
+ "endpoint": "https://verifi.podscribe.com/tag",
4
+ "method": "GET"
5
+ }
6
+ }
@@ -0,0 +1 @@
1
+ "452a0143cf13dcf5e5b4055a84545688"
@@ -0,0 +1,21 @@
1
+ {
2
+ "isDraft": false,
3
+ "isDeprecated": false,
4
+ "isBeta": true,
5
+ "friendlyName": "Podscribe",
6
+ "description": "Podscribe is a podcast attribution and analytics platform that helps advertisers, agencies, and publishers measure the effectiveness of podcast advertising.",
7
+ "logo": "https://cdn.metarouter.io/podscribe.png",
8
+ "color": "#000000",
9
+ "eventSource": {
10
+ "isAndroidApp": true,
11
+ "isIosApp": true,
12
+ "isWebApp": true
13
+ },
14
+ "inputSchema": "analytics_js",
15
+ "releaseNotes": [
16
+ {
17
+ "date": "2025-03-12T22:00:00.000Z",
18
+ "note": "Version: 0.1.0\nBeta Version\nPodscribe initial release"
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1 @@
1
+ "5eba1d298e1c3c277d6fd56fc61ec87e"
@@ -0,0 +1,155 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "params": [
4
+ {
5
+ "name": "ADVERTISER_ID",
6
+ "exampleValue": "my-advertiser-id"
7
+ }
8
+ ],
9
+ "default": {
10
+ "mappings": [
11
+ {
12
+ "inputKey": "input",
13
+ "outputKey": "action",
14
+ "transforms": [
15
+ {
16
+ "expression": {
17
+ "lang": "lua",
18
+ "body": "if input.type == 'track' then return input.event\nelse return input.type\nend"
19
+ }
20
+ }
21
+ ]
22
+ }
23
+ ]
24
+ },
25
+ "global": {
26
+ "enrichments": [
27
+ {
28
+ "staticString": "$$ADVERTISER_ID$$",
29
+ "outputKey": "advertiser"
30
+ },
31
+ {
32
+ "staticString": "server",
33
+ "outputKey": "source"
34
+ }
35
+ ],
36
+ "mappings": [
37
+ {
38
+ "inputKey": "context.userAgent",
39
+ "outputKey": "user_agent"
40
+ },
41
+ {
42
+ "inputKey": "context.ip",
43
+ "outputKey": "ip"
44
+ },
45
+ {
46
+ "inputKey": "input",
47
+ "outputKey": "timestamp",
48
+ "transforms": [
49
+ {
50
+ "expression": {
51
+ "lang": "lua",
52
+ "body": "return input.originalTimestamp or input.sentAt"
53
+ }
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "inputKey": "anonymousId",
59
+ "outputKey": "device_id"
60
+ },
61
+ {
62
+ "inputKey": "input",
63
+ "outputKey": "event_url",
64
+ "transforms": [
65
+ {
66
+ "expression": {
67
+ "lang": "lua",
68
+ "body": "return SPLIT(input.context.page.url, \"?\", 1)[1] or \"\""
69
+ }
70
+ }
71
+ ]
72
+ },
73
+ {
74
+ "inputKey": "input",
75
+ "outputKey": "referrer_url",
76
+ "transforms": [
77
+ {
78
+ "expression": {
79
+ "lang": "lua",
80
+ "body": "return SPLIT(input.context.page.referrer, \"?\", 1)[1] or \"\""
81
+ }
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "inputKey": "input",
87
+ "outputKey": "hashed_email",
88
+ "transforms": [
89
+ {
90
+ "expression": {
91
+ "body": "local email = input.traits.email or input.context.traits.email\nif email then return TO_SHA256_HASH(LOWER(TRIM(email))) end\nreturn",
92
+ "lang": "lua"
93
+ }
94
+ }
95
+ ]
96
+ }
97
+ ],
98
+ "expressions": [
99
+ {
100
+ "body": "local output = {}\nif input.context.device.id then\n if input.context.device and input.context.device.type then\n if LOWER(input.context.device.type) == 'ios' then output['idfa'] = input.context.device.id\n elseif LOWER(input.context.device.type) == 'android' then output['gaid'] = input.context.device.id\n end\n end\nend\n\nreturn output",
101
+ "lang": "lua"
102
+ }
103
+ ]
104
+ },
105
+ "eventSpecific": {
106
+ "page": {
107
+ "enrichments": [
108
+ {
109
+ "staticString": "view",
110
+ "outputKey": "action"
111
+ }
112
+ ]
113
+ },
114
+ "order_completed": {
115
+ "enrichments": [
116
+ {
117
+ "staticString": "purchase",
118
+ "outputKey": "action"
119
+ }
120
+ ],
121
+ "mappings": [
122
+ {
123
+ "inputKey": "properties.order_id",
124
+ "outputKey": "order_number"
125
+ },
126
+ {
127
+ "inputKey": "properties.currency",
128
+ "outputKey": "currency",
129
+ "transforms": [
130
+ {
131
+ "modifyString": "uppercase"
132
+ }
133
+ ],
134
+ "defaultString": "USD"
135
+ },
136
+ {
137
+ "inputKey": "input",
138
+ "outputKey": "value",
139
+ "transforms": [
140
+ {
141
+ "expression": {
142
+ "lang": "lua",
143
+ "body": "return SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end))"
144
+ }
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "inputKey": "properties.coupon",
150
+ "outputKey": "discount_code"
151
+ }
152
+ ]
153
+ }
154
+ }
155
+ }
@@ -1 +1 @@
1
- "7f8658a8d50422ab86138d7e7cecb551"
1
+ "f639f517a5f095a21983b8ac982b5573"
@@ -32,6 +32,10 @@
32
32
  {
33
33
  "date": "2024-10-23T00:00:00.000Z",
34
34
  "note": "Version: 2.2.0\nAdded header `Accept-Encoding: application/json`"
35
+ },
36
+ {
37
+ "date": "2025-03-12T00:00:00.000Z",
38
+ "note": "Version: 2.3.0\nMapping updates due to TikTok API changes"
35
39
  }
36
40
  ]
37
41
  }
@@ -1 +1 @@
1
- "9ad8f2ba494bbab6321cb52bad352b5c"
1
+ "94c19646074a59b0eb043756bc6f2494"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.2.0",
2
+ "version": "2.3.0",
3
3
  "default": {
4
4
  "filters": [
5
5
  {
@@ -334,7 +334,7 @@
334
334
  "enrichments": [
335
335
  {
336
336
  "outputKey": "event",
337
- "staticString": "CompletePayment"
337
+ "staticString": "Purchase"
338
338
  },
339
339
  {
340
340
  "outputKey": "properties.content_type",
package/README.md CHANGED
@@ -6,12 +6,15 @@ 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
  ## 2025-03
9
+ - Amplitude
10
+ - Button
11
+ - Podscribe (BETA)
9
12
  - Ringier Axel Springer Poland (BETA)
13
+ - TikTok
10
14
 
11
15
  ## 2025-02
12
16
  - Amazon Data Firehose (BETA)
13
17
  - AWIN
14
- - Button (BETA)
15
18
  - Merkle
16
19
  - Moloco Commerce Media
17
20
 
@@ -39,7 +42,6 @@ previously.
39
42
  - Amnet (BETA)
40
43
  - Amobee
41
44
  - Amperity (BETA)
42
- - Amplitude
43
45
  - AppsFlyer Android
44
46
  - AppsFlyer iOS
45
47
  - Microsoft Advertising (BETA)
@@ -73,7 +75,6 @@ previously.
73
75
  - Snapchat Ads
74
76
  - TheTradeDesk Conversion Events
75
77
  - TheTradeDesk Firstparty Advertiser Data
76
- - TikTok
77
78
  - VideoAmp (BETA)
78
79
  - Xandr
79
80
  - Yahoo Enhanced Attribution (BETA)
@@ -111,10 +112,13 @@ previously.
111
112
 
112
113
  | Kit Name | Date | Latest Note |
113
114
  |----------|------|-------------|
115
+ | Amplitude | 2025-03 | Version: 1.2.0 Added API_URL param to accommodate Amplitude's EU residency server |
116
+ | Button | 2025-03 | Version: 0.1.1 Fix stanza spelling |
117
+ | Podscribe (BETA) | 2025-03 | Version: 0.1.0 Beta Version Podscribe initial release |
114
118
  | Ringier Axel Springer Poland (BETA) | 2025-03 | Version: 0.1.0 Beta Version Ringier Axel Springer Poland initial release |
119
+ | TikTok | 2025-03 | Version: 2.3.0 Mapping updates due to TikTok API changes |
115
120
  | Amazon Data Firehose (BETA) | 2025-02 | Version: 0.1.0 Beta Version Amazon Data Firehose initial release. |
116
121
  | AWIN | 2025-02 | Version: 1.0.0 Stable release |
117
- | Button (BETA) | 2025-02 | Version: 0.1.0 Beta Version Button initial release |
118
122
  | 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 |
119
123
  | 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 |
120
124
  | Blueshift | 2025-01 | Version: 1.0.0 Stable release |
@@ -134,7 +138,6 @@ previously.
134
138
  | Amnet (BETA) | 2024-10 | Version: 0.2.0 Added header `Accept-Encoding: application/json` |
135
139
  | Amobee | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
136
140
  | Amperity (BETA) | 2024-10 | Version: 0.2.0 Added header `Accept-Encoding: application/json` |
137
- | Amplitude | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
138
141
  | AppsFlyer Android | 2024-10 | Version: 1.2.0 Added header `Accept-Encoding: application/json` |
139
142
  | AppsFlyer iOS | 2024-10 | Version: 1.2.0 Added header `Accept-Encoding: application/json` |
140
143
  | Microsoft Advertising (BETA) | 2024-10 | Version: 0.2.0 Added header `Accept-Encoding: application/json` |
@@ -168,7 +171,6 @@ previously.
168
171
  | Snapchat Ads | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
169
172
  | TheTradeDesk Conversion Events | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
170
173
  | TheTradeDesk Firstparty Advertiser Data | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
171
- | TikTok | 2024-10 | Version: 2.2.0 Added header `Accept-Encoding: application/json` |
172
174
  | VideoAmp (BETA) | 2024-10 | Version: 0.3.0 Added header `Accept-Encoding: application/json` |
173
175
  | Xandr | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
174
176
  | Yahoo Enhanced Attribution (BETA) | 2024-10 | Version: 0.2.0 Added header `Accept-Encoding: application/json` |
package/index.js CHANGED
@@ -363,6 +363,12 @@ exports['pinterest-capi'] = {
363
363
  metadata: require('./.dist/pinterest-capi/metadata.json')
364
364
  }
365
365
 
366
+ exports.podscribe = {
367
+ endpointSchema: require('./.dist/podscribe/connection.json'),
368
+ playbook: require('./.dist/podscribe/playbook.json'),
369
+ metadata: require('./.dist/podscribe/metadata.json')
370
+ }
371
+
366
372
  exports.podsights = {
367
373
  endpointSchema: require('./.dist/podsights/connection.json'),
368
374
  playbook: require('./.dist/podsights/playbook.json'),
@@ -786,6 +792,11 @@ exports.etags = {
786
792
  playbook: require('./.dist/pinterest-capi/playbook.etag.json'),
787
793
  kit: require('./.dist/pinterest-capi/kit.etag.json')
788
794
  },
795
+ 'podscribe': {
796
+ endpointSchema: require('./.dist/podscribe/connection.etag.json'),
797
+ playbook: require('./.dist/podscribe/playbook.etag.json'),
798
+ kit: require('./.dist/podscribe/kit.etag.json')
799
+ },
789
800
  'podsights': {
790
801
  endpointSchema: require('./.dist/podsights/connection.etag.json'),
791
802
  playbook: require('./.dist/podsights/playbook.etag.json'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/ajs-starter-kit",
3
- "version": "1.0.123",
3
+ "version": "1.0.124",
4
4
  "description": "MetaRouter analytics.js starter kit",
5
5
  "main": "index.js",
6
6
  "scripts": {