@metarouter/ajs-starter-kit 1.0.151 → 1.0.153

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.
Files changed (46) hide show
  1. package/.dist/attentive/connection.etag.json +1 -0
  2. package/.dist/attentive/connection.json +96 -0
  3. package/.dist/attentive/kit.etag.json +1 -0
  4. package/.dist/attentive/metadata.json +21 -0
  5. package/.dist/attentive/playbook.etag.json +1 -0
  6. package/.dist/attentive/playbook.json +1414 -0
  7. package/.dist/bing-ads/kit.etag.json +1 -1
  8. package/.dist/bing-ads/metadata.json +6 -2
  9. package/.dist/connection-schemas.json +0 -1
  10. package/.dist/engage-front/kit.etag.json +1 -1
  11. package/.dist/engage-front/metadata.json +4 -0
  12. package/.dist/engage-front/playbook.etag.json +1 -1
  13. package/.dist/engage-front/playbook.json +2 -2
  14. package/.dist/eulerian/connection.etag.json +1 -0
  15. package/.dist/eulerian/connection.json +30 -0
  16. package/.dist/eulerian/kit.etag.json +1 -0
  17. package/.dist/eulerian/metadata.json +21 -0
  18. package/.dist/eulerian/playbook.etag.json +1 -0
  19. package/.dist/eulerian/playbook.json +156 -0
  20. package/.dist/google-ads/kit.etag.json +1 -1
  21. package/.dist/google-ads/metadata.json +4 -0
  22. package/.dist/google-ads/playbook.etag.json +1 -1
  23. package/.dist/google-ads/playbook.json +11 -1
  24. package/.dist/google-analytics-4/connection.etag.json +1 -1
  25. package/.dist/google-analytics-4/connection.json +18 -13
  26. package/.dist/google-analytics-4/kit.etag.json +1 -1
  27. package/.dist/google-analytics-4/metadata.json +4 -0
  28. package/.dist/google-analytics-4/playbook.etag.json +1 -1
  29. package/.dist/google-analytics-4/playbook.json +209 -54
  30. package/.dist/microsoft-ads/kit.etag.json +1 -1
  31. package/.dist/microsoft-ads/metadata.json +5 -1
  32. package/.dist/tiktok/kit.etag.json +1 -1
  33. package/.dist/tiktok/metadata.json +4 -0
  34. package/.dist/tiktok/playbook.etag.json +1 -1
  35. package/.dist/tiktok/playbook.json +303 -24
  36. package/.dist/ttd-conversions/kit.etag.json +1 -1
  37. package/.dist/ttd-conversions/metadata.json +4 -0
  38. package/.dist/ttd-conversions/playbook.etag.json +1 -1
  39. package/.dist/ttd-conversions/playbook.json +3 -7
  40. package/.dist/wallaroo/kit.etag.json +1 -1
  41. package/.dist/wallaroo/metadata.json +4 -0
  42. package/.dist/wallaroo/playbook.etag.json +1 -1
  43. package/.dist/wallaroo/playbook.json +2 -1
  44. package/README.md +20 -9
  45. package/index.js +22 -0
  46. package/package.json +1 -1
@@ -1 +1 @@
1
- "eb830b6ef8946e1a127a8985ac0474f8 -"
1
+ "a089690679fd421b1980593bcd763d52 -"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "isDraft": false,
3
- "isDeprecated": false,
4
- "isBeta": true,
3
+ "isDeprecated": true,
4
+ "isBeta": false,
5
5
  "friendlyName": "Microsoft Advertising",
6
6
  "description": "Microsoft's pay-per-click advertising solution, which includes Bing, Yahoo! and MSN.",
7
7
  "logo": "https://cdn.metarouter.io/logo.svg",
@@ -36,6 +36,10 @@
36
36
  {
37
37
  "date": "2025-07-16T00:00:00.000Z",
38
38
  "note": "Version: 0.3.0\nTABLE_SLICE custom function usage."
39
+ },
40
+ {
41
+ "date": "2025-12-17T00:00:00.000Z",
42
+ "note": "Version: 0.4.0\nDeprecating this in favor of the released Microsoft Ads CAPI kit"
39
43
  }
40
44
  ]
41
45
  }
@@ -242,7 +242,6 @@
242
242
  }
243
243
  },
244
244
  "required": [
245
- "credentials",
246
245
  "dataset",
247
246
  "projectId",
248
247
  "region"
@@ -1 +1 @@
1
- "d0ac10b67a42773937813707ebe18c93 -"
1
+ "6756f2a83051f41750c07f490fcdeae8 -"
@@ -20,6 +20,10 @@
20
20
  {
21
21
  "date": "2025-11-19T00:00:00.000Z",
22
22
  "note": "Version: 0.2.0\nUpdate playbook with twn_id and attr_cookie."
23
+ },
24
+ {
25
+ "date": "2025-12-10T00:00:00.000Z",
26
+ "note": "Version: 0.3.0\nUpdate campaign/advertiser ID output key"
23
27
  }
24
28
  ]
25
29
  }
@@ -1 +1 @@
1
- "c9b879f5efb6123561407bb59d6a5d59 -"
1
+ "85a4847f98722d5523d76d34cbf674f1 -"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.0",
2
+ "version": "0.3.0",
3
3
  "global": {
4
4
  "filters": [
5
5
  {
@@ -31,7 +31,7 @@
31
31
  "enrichments": [
32
32
  {
33
33
  "staticString": "ADD_YOUR_VALUE_HERE",
34
- "outputKey": "ef_[ADD_CAMPAIGN_OR_ADVERTISER]_id"
34
+ "outputKey": "ef_[CHANGE_TO_campaign_OR_advertiser]_id"
35
35
  }
36
36
  ],
37
37
  "mappings": [
@@ -0,0 +1 @@
1
+ "12159a75e6c6da097f1943cfbf37268f -"
@@ -0,0 +1,30 @@
1
+ {
2
+ "params": [
3
+ {
4
+ "name": "ENDPOINT",
5
+ "exampleValue": "my-endpoint"
6
+ }
7
+ ],
8
+ "default": {
9
+ "endpoint": "$$ENDPOINT$$",
10
+ "headers": [
11
+ {
12
+ "key": "Content-Type",
13
+ "value": "application/json"
14
+ },
15
+ {
16
+ "key": "Accept-Encoding",
17
+ "value": "application/json"
18
+ },
19
+ {
20
+ "key": "User-Agent",
21
+ "fromEventKey": "context.userAgent"
22
+ },
23
+ {
24
+ "key": "X-Forwarded-For",
25
+ "fromEventKey": "context.ip"
26
+ }
27
+ ],
28
+ "method": "POST"
29
+ }
30
+ }
@@ -0,0 +1 @@
1
+ "bd423354af5e0f8700130e1813ffddee -"
@@ -0,0 +1,21 @@
1
+ {
2
+ "isDraft": false,
3
+ "isDeprecated": false,
4
+ "isBeta": true,
5
+ "friendlyName": "Eulerian",
6
+ "description": "Eulerian is a French marketing analytics platform focused on attribution, analytics, and activation across web and apps. It unifies customer journeys in real time to help advertisers evaluate channel performance and optimize media decisions, with a strong emphasis on first-party data quality and control.",
7
+ "logo": "https://drive.google.com/file/d/1hyd2C1I1nM9TNkvY_1O5vUD_nr7Uju2P/view",
8
+ "color": "#2b3066",
9
+ "eventSource": {
10
+ "isAndroidApp": true,
11
+ "isIosApp": true,
12
+ "isWebApp": true
13
+ },
14
+ "inputSchema": "analytics_js",
15
+ "releaseNotes": [
16
+ {
17
+ "date": "2025-12-10T21:00:00.000Z",
18
+ "note": "Version: 0.1.0\nBeta Version\nEulerian initial release"
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1 @@
1
+ "03405c2eef992ae1c5d8b5fb215eceac -"
@@ -0,0 +1,156 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "global": {
4
+ "enrichments": [
5
+ {
6
+ "staticString": "metarouter",
7
+ "outputKey": "ereplay-platform"
8
+ }
9
+ ],
10
+ "mappings": [
11
+ {
12
+ "inputKey": "input",
13
+ "outputKey": "eemail",
14
+ "transforms": [
15
+ {
16
+ "expression": {
17
+ "body": "local email = input.traits.email\nif email then return TO_SHA256_HASH(LOWER(TRIM(email))) end",
18
+ "lang": "lua"
19
+ }
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "inputKey": "anonymousId",
25
+ "outputKey": "euidl"
26
+ },
27
+ {
28
+ "inputKey": "userId",
29
+ "outputKey": "uid"
30
+ },
31
+ {
32
+ "inputKey": "context.ip",
33
+ "outputKey": "ereplay-ip"
34
+ },
35
+ {
36
+ "inputKey": "context.userAgent",
37
+ "outputKey": "ereplay-ua"
38
+ },
39
+ {
40
+ "inputKey": "context.page.url",
41
+ "outputKey": "url"
42
+ },
43
+ {
44
+ "inputKey": "context.page.referrer",
45
+ "outputKey": "rf"
46
+ },
47
+ {
48
+ "inputKey": "input",
49
+ "outputKey": "ereplay-time",
50
+ "transforms": [
51
+ {
52
+ "expression": {
53
+ "lang": "lua",
54
+ "body": "return SECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp or input.originalTimestamp or input.sentAt)"
55
+ }
56
+ }
57
+ ]
58
+ }
59
+ ]
60
+ },
61
+ "eventSpecific": {
62
+ "order_completed": {
63
+ "enrichments": [
64
+ {
65
+ "staticInt": "1",
66
+ "outputKey": "order"
67
+ }
68
+ ],
69
+ "mappings": [
70
+ {
71
+ "inputKey": "input",
72
+ "outputKey": "amount",
73
+ "transforms": [
74
+ {
75
+ "expression": {
76
+ "lang": "lua",
77
+ "body": "return TOTAL_VALUE(input.properties.products)"
78
+ }
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ "inputKey": "properties.currency",
84
+ "outputKey": "currency",
85
+ "transforms": [
86
+ {
87
+ "modifyString": "uppercase"
88
+ }
89
+ ],
90
+ "defaultString": "USD"
91
+ },
92
+ {
93
+ "inputKey": "properties.order_id",
94
+ "outputKey": "ref"
95
+ },
96
+ {
97
+ "inputKey": "input",
98
+ "outputKey": "products",
99
+ "transforms": [
100
+ {
101
+ "expression": {
102
+ "lang": "lua",
103
+ "body": "local properties = input.properties or {}\nlocal products = properties.products or {}\n\nreturn MAP(\n products,\n function(p)\n local qty = tonumber(p.quantity) or 1\n return {\n ref = p.product_id,\n name = p.name,\n quantity = qty,\n amount = TOTAL_VALUE(p)\n }\n end\n)"
104
+ }
105
+ }
106
+ ]
107
+ }
108
+ ]
109
+ },
110
+ "product_added": {
111
+ "enrichments": [
112
+ {
113
+ "staticInt": "1",
114
+ "outputKey": "scart"
115
+ }
116
+ ],
117
+ "mappings": [
118
+ {
119
+ "inputKey": "properties.currency",
120
+ "outputKey": "currency",
121
+ "transforms": [
122
+ {
123
+ "modifyString": "uppercase"
124
+ }
125
+ ],
126
+ "defaultString": "USD"
127
+ },
128
+ {
129
+ "inputKey": "input",
130
+ "outputKey": "products",
131
+ "transforms": [
132
+ {
133
+ "expression": {
134
+ "lang": "lua",
135
+ "body": "local properties = input.properties or {}\nlocal q = tonumber(properties.quantity) or 1\n\nreturn {\n {\n ref = properties.product_id,\n name = properties.name,\n quantity = q,\n amount = TOTAL_VALUE(properties)\n }\n}"
136
+ }
137
+ }
138
+ ]
139
+ }
140
+ ]
141
+ }
142
+ },
143
+ "default": {
144
+ "filters": [
145
+ {
146
+ "byEventNames": {
147
+ "action": "allow",
148
+ "events": [
149
+ "page",
150
+ ""
151
+ ]
152
+ }
153
+ }
154
+ ]
155
+ }
156
+ }
@@ -1 +1 @@
1
- "c625bbb5aaa6e15791c55a7ef4affa95 -"
1
+ "245bc68e722adf756625f4d772168004 -"
@@ -48,6 +48,10 @@
48
48
  {
49
49
  "date": "2025-10-15T00:00:00.000Z",
50
50
  "note": "Version: 1.3.1\nAdded friendly names to expressions"
51
+ },
52
+ {
53
+ "date": "2025-12-10T00:00:00.000Z",
54
+ "note": "Version: 1.4.0\nAdded consent field"
51
55
  }
52
56
  ]
53
57
  }
@@ -1 +1 @@
1
- "b002eb5bfd4ab0a8e0807c1c840f6538 -"
1
+ "e76f934adb1c3eb51442b004aef8a089 -"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.1",
2
+ "version": "1.4.0",
3
3
  "params": [
4
4
  {
5
5
  "name": "CUSTOMER_ID",
@@ -38,6 +38,16 @@
38
38
  }
39
39
  }
40
40
  ],
41
+ "enrichments": [
42
+ {
43
+ "staticString": "GRANTED",
44
+ "outputKey": "consent.ad_user_data"
45
+ },
46
+ {
47
+ "staticString": "GRANTED",
48
+ "outputKey": "consent.ad_personalization"
49
+ }
50
+ ],
41
51
  "mappings": [
42
52
  {
43
53
  "inputKey": "input",
@@ -1 +1 @@
1
- "0a4ecfa482b6aee622eb8a1bb78a1c5e -"
1
+ "8cc48a72edef0b30e1475e5bf0e03257 -"
@@ -1,6 +1,21 @@
1
1
  {
2
+ "params": [
3
+ {
4
+ "name": "API_SECRET",
5
+ "exampleValue": "my-api-secret"
6
+ },
7
+ {
8
+ "name": "MEASUREMENT_ID",
9
+ "exampleValue": "my-measurement-id"
10
+ },
11
+ {
12
+ "name": "API_ENDPOINT",
13
+ "exampleValue": "my-api-endpoint",
14
+ "defaultValue": "https://www.google-analytics.com/mp/collect"
15
+ }
16
+ ],
2
17
  "default": {
3
- "endpoint": "https://www.google-analytics.com/mp/collect?api_secret=$$API_SECRET$$&measurement_id=$$MEASUREMENT_ID$$",
18
+ "endpoint": "$$API_ENDPOINT$$?api_secret=$$API_SECRET$$&measurement_id=$$MEASUREMENT_ID$$",
4
19
  "method": "POST",
5
20
  "headers": [
6
21
  {
@@ -14,17 +29,7 @@
14
29
  ],
15
30
  "transform": {
16
31
  "lang": "lua",
17
- "body": "request.body = {\n client_id = batch[1].client_id,\n user_id = batch[1].user_id,\n timestamp_micros = batch[1].timestamp_micros,\n user_location = batch[1].user_location,\n ip_override = batch[1].ip_override,\n events = { batch[1].event }\n}\nreturn request"
18
- }
19
- },
20
- "params": [
21
- {
22
- "name": "API_SECRET",
23
- "exampleValue": "my-api-secret"
24
- },
25
- {
26
- "name": "MEASUREMENT_ID",
27
- "exampleValue": "my-measurement-id"
32
+ "body": "request.body = {\n client_id = batch[1].client_id,\n user_id = batch[1].user_id,\n timestamp_micros = batch[1].timestamp_micros,\n user_location = batch[1].user_location,\n ip_override = batch[1].ip_override,\n device = batch[1].device,\n user_agent = batch[1].user_agent,\n consent = batch[1].consent,\n events = { batch[1].event }\n}\nreturn request"
28
33
  }
29
- ]
34
+ }
30
35
  }
@@ -1 +1 @@
1
- "6fde9a8efeb0cb5557bcf8fbc019a7df -"
1
+ "40f9cb75f21b2513d7e389c6f2f8135a -"
@@ -36,6 +36,10 @@
36
36
  {
37
37
  "date": "2025-10-29T00:00:00.000Z",
38
38
  "note": "Version: 1.2.0\nAdded geolocation data with ip_override and user_location fields"
39
+ },
40
+ {
41
+ "date": "2025-12-17T00:00:00.000Z",
42
+ "note": "Version: 1.3.0\nAdded consent, device and user_agent mappings\nRemoved gclid and dclid fields\nAdded additional standard events and updated endpoint to a parameter"
39
43
  }
40
44
  ]
41
45
  }
@@ -1 +1 @@
1
- "73d531a4c5711cebeda2919801bd0eb5 -"
1
+ "381e09e4652cb3dba853f3aa236c8cdc -"