@metarouter/ajs-starter-kit 1.0.152 → 1.0.154
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.
- package/.dist/adobe-bdia/kit.etag.json +1 -1
- package/.dist/adobe-bdia/metadata.json +5 -1
- package/.dist/adobe-bdia/playbook.etag.json +1 -1
- package/.dist/adobe-bdia/playbook.json +1 -1
- package/.dist/attentive/connection.etag.json +1 -0
- package/.dist/attentive/connection.json +96 -0
- package/.dist/attentive/kit.etag.json +1 -0
- package/.dist/attentive/metadata.json +21 -0
- package/.dist/attentive/playbook.etag.json +1 -0
- package/.dist/attentive/playbook.json +1414 -0
- package/.dist/bing-ads/kit.etag.json +1 -1
- package/.dist/bing-ads/metadata.json +6 -2
- package/.dist/facebook-pixel/kit.etag.json +1 -1
- package/.dist/facebook-pixel/metadata.json +4 -0
- package/.dist/facebook-pixel/playbook.etag.json +1 -1
- package/.dist/facebook-pixel/playbook.json +18 -1
- package/.dist/google-ads/connection.etag.json +1 -1
- package/.dist/google-ads/connection.json +1 -1
- package/.dist/google-ads/kit.etag.json +1 -1
- package/.dist/google-ads/metadata.json +4 -0
- package/.dist/google-ads/playbook.etag.json +1 -1
- package/.dist/google-ads/playbook.json +47 -10
- package/.dist/google-analytics-4/connection.etag.json +1 -1
- package/.dist/google-analytics-4/connection.json +18 -13
- package/.dist/google-analytics-4/kit.etag.json +1 -1
- package/.dist/google-analytics-4/metadata.json +4 -0
- package/.dist/google-analytics-4/playbook.etag.json +1 -1
- package/.dist/google-analytics-4/playbook.json +209 -54
- package/.dist/microsoft-ads/kit.etag.json +1 -1
- package/.dist/microsoft-ads/metadata.json +5 -1
- package/.dist/reddit-ads/kit.etag.json +1 -1
- package/.dist/reddit-ads/metadata.json +5 -1
- package/.dist/reddit-ads/playbook.etag.json +1 -1
- package/.dist/reddit-ads/playbook.json +1 -1
- package/.dist/teads/kit.etag.json +1 -1
- package/.dist/teads/metadata.json +5 -1
- package/.dist/teads/playbook.etag.json +1 -1
- package/.dist/teads/playbook.json +1 -1
- package/.dist/tiktok/kit.etag.json +1 -1
- package/.dist/tiktok/metadata.json +4 -0
- package/.dist/tiktok/playbook.etag.json +1 -1
- package/.dist/tiktok/playbook.json +303 -24
- package/.dist/yahoo-enhanced-attribution/kit.etag.json +1 -1
- package/README.md +18 -19
- package/index.js +11 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"a089690679fd421b1980593bcd763d52 -"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"isDraft": false,
|
|
3
|
-
"isDeprecated":
|
|
4
|
-
"isBeta":
|
|
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
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"1cddac048e8b4539808699a90af12e4d -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"594dfb211ee390926762e596d959a89f -"
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.8.0",
|
|
3
3
|
"global": {
|
|
4
|
+
"enrichments": [
|
|
5
|
+
{
|
|
6
|
+
"staticInt": 0,
|
|
7
|
+
"outputKey": "data_processing_options_country"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"staticInt": 0,
|
|
11
|
+
"outputKey": "data_processing_options_state"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
4
14
|
"mappings": [
|
|
5
15
|
{
|
|
6
16
|
"inputKey": "input",
|
|
@@ -91,6 +101,13 @@
|
|
|
91
101
|
"inputKey": "context.providers.facebookTag._fbp",
|
|
92
102
|
"outputKey": "user_data.fbp"
|
|
93
103
|
}
|
|
104
|
+
],
|
|
105
|
+
"expressions": [
|
|
106
|
+
{
|
|
107
|
+
"lang": "lua",
|
|
108
|
+
"name": "Limited Data Usage",
|
|
109
|
+
"body": "return { data_processing_options = { \"LDU\" } }"
|
|
110
|
+
}
|
|
94
111
|
]
|
|
95
112
|
},
|
|
96
113
|
"eventSpecific": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"2ed1413733d43f2bd8afbca894e83f2d -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"859519eb654674e8f213990dcdbbb66d -"
|
|
@@ -52,6 +52,10 @@
|
|
|
52
52
|
{
|
|
53
53
|
"date": "2025-12-10T00:00:00.000Z",
|
|
54
54
|
"note": "Version: 1.4.0\nAdded consent field"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"date": "2026-01-07T00:00:00.000Z",
|
|
58
|
+
"note": "Version: 1.5.0\nUpgraded to Google Ads API v22\nAdded userIdentifiers and userIpAddress fields\nRemoved gbraid mapping"
|
|
55
59
|
}
|
|
56
60
|
]
|
|
57
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"0a1842e5ec40c03774836010b14e4118 -"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.5.0",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
5
|
"name": "CUSTOMER_ID",
|
|
@@ -19,20 +19,29 @@
|
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
21
|
"global": {
|
|
22
|
-
"expressions": [
|
|
23
|
-
{
|
|
24
|
-
"lang": "lua",
|
|
25
|
-
"name": "Click IDs",
|
|
26
|
-
"body": "local click_ids = {}\nif input.context.providers.googleGtag.data.wbraid then\n click_ids.wbraid = SPLIT(input.context.providers.googleGtag.data.wbraid,\".\",3)[3]\nelseif input.context.providers.googleGtag.data.gbraid then\n click_ids.gbraid = SPLIT(input.context.providers.googleGtag.data.gbraid,\".\",3)[3]\nend\nreturn click_ids"
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
22
|
"filters": [
|
|
30
23
|
{
|
|
31
24
|
"byConditions": {
|
|
32
25
|
"action": "allow",
|
|
33
26
|
"when": {
|
|
34
|
-
"
|
|
35
|
-
"
|
|
27
|
+
"matchesAny": {
|
|
28
|
+
"conditions": [
|
|
29
|
+
{
|
|
30
|
+
"inputPathExists": {
|
|
31
|
+
"inputPath": "context.providers.googleGtag.data.gclid"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"inputPathExists": {
|
|
36
|
+
"inputPath": "traits.email"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"inputPathExists": {
|
|
41
|
+
"inputPath": "traits.phone"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
]
|
|
36
45
|
}
|
|
37
46
|
}
|
|
38
47
|
}
|
|
@@ -49,6 +58,34 @@
|
|
|
49
58
|
}
|
|
50
59
|
],
|
|
51
60
|
"mappings": [
|
|
61
|
+
{
|
|
62
|
+
"inputKey": "input",
|
|
63
|
+
"outputKey": "wbraid",
|
|
64
|
+
"transforms": [
|
|
65
|
+
{
|
|
66
|
+
"expression": {
|
|
67
|
+
"lang": "lua",
|
|
68
|
+
"body": "if input.context.providers.googleGtag.data.wbraid then\n return SPLIT(input.context.providers.googleGtag.data.wbraid,\".\",3)[3]\nend"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"inputKey": "context.ip",
|
|
75
|
+
"outputKey": "userIpAddress"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"inputKey": "input",
|
|
79
|
+
"outputKey": "userIdentifiers",
|
|
80
|
+
"transforms": [
|
|
81
|
+
{
|
|
82
|
+
"expression": {
|
|
83
|
+
"lang": "lua",
|
|
84
|
+
"body": "local identifiers = {}\nlocal email = input.traits.email\nif email then\n local cleaned_email = (email:gsub(\"([^@]+)@(.+)\", function(user, domain)\n return (user:gsub(\"%+.*\", \"\"):gsub(\"%.\", \"\")) .. \"@\" .. domain\n end))\n table.insert(identifiers, {\n userIdentifierSource = \"FIRST_PARTY\",\n hashedEmail = TO_SHA256_HASH(LOWER(TRIM(cleaned_email)))\n })\nend\nlocal phone = input.traits.phone\nif phone then\n local normalized_phone = phone:gsub(\"[^%d+]\", \"\"):gsub(\"^00\", \"+\"):gsub(\"^(%d)\", \"+1%1\")\n table.insert(identifiers, {\n userIdentifierSource = \"FIRST_PARTY\",\n hashedPhoneNumber = TO_SHA256_HASH(normalized_phone)\n })\nend\nif #identifiers > 0 then\n return identifiers\nend"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
52
89
|
{
|
|
53
90
|
"inputKey": "input",
|
|
54
91
|
"outputKey": "gclid",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
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": "
|
|
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
|
-
"
|
|
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
|
-
"
|
|
1
|
+
"381e09e4652cb3dba853f3aa236c8cdc -"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.3.0",
|
|
3
3
|
"global": {
|
|
4
4
|
"enrichments": [
|
|
5
5
|
{
|
|
@@ -9,44 +9,44 @@
|
|
|
9
9
|
{
|
|
10
10
|
"outputKey": "event.params.engagement_time_msec",
|
|
11
11
|
"staticInt": 1
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"staticString": "GRANTED",
|
|
15
|
+
"outputKey": "consent.ad_user_data"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"staticString": "GRANTED",
|
|
19
|
+
"outputKey": "consent.ad_personalization"
|
|
12
20
|
}
|
|
13
21
|
],
|
|
14
22
|
"mappings": [
|
|
15
23
|
{
|
|
16
|
-
"inputKey": "
|
|
17
|
-
"outputKey": "
|
|
24
|
+
"inputKey": "context.userAgent",
|
|
25
|
+
"outputKey": "user_agent"
|
|
18
26
|
},
|
|
19
27
|
{
|
|
20
28
|
"inputKey": "input",
|
|
21
|
-
"outputKey": "
|
|
29
|
+
"outputKey": "device",
|
|
22
30
|
"transforms": [
|
|
23
31
|
{
|
|
24
32
|
"expression": {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
33
|
+
"lang": "lua",
|
|
34
|
+
"body": "if input.context.device.type then\n local device = {}\n device.category = 'mobile'\n device.language = input.context.locale\n device.operating_system = input.context.os.name\n device.operating_system_version = input.context.os.version\n device.model = input.context.device.model\n device.brand = input.context.device.manufacturer\n\n local width = input.context.screen.width\n local height = input.context.screen.height\n if width and height then\n device.screen_resolution = TO_STRING(width) .. 'x' .. TO_STRING(height)\n end\n\n return device\nend"
|
|
27
35
|
}
|
|
28
36
|
}
|
|
29
37
|
]
|
|
30
38
|
},
|
|
31
39
|
{
|
|
32
|
-
"inputKey": "
|
|
33
|
-
"outputKey": "
|
|
34
|
-
"transforms": [
|
|
35
|
-
{
|
|
36
|
-
"expression": {
|
|
37
|
-
"body": "return TO_STRING(\nMILLISECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp)* 1000)",
|
|
38
|
-
"lang": "lua"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
]
|
|
40
|
+
"inputKey": "userId",
|
|
41
|
+
"outputKey": "user_id"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"inputKey": "input",
|
|
45
|
-
"outputKey": "
|
|
45
|
+
"outputKey": "client_id",
|
|
46
46
|
"transforms": [
|
|
47
47
|
{
|
|
48
48
|
"expression": {
|
|
49
|
-
"body": "
|
|
49
|
+
"body": "local value = input.context.providers.googleGtag.data.ga\nif value == nil then\n return input.anonymousId\nelse\n local arr = {}\n local ga = SPLIT(value, \".\", 4)\n arr[1] = ga[3]\n arr[2] = ga[4]\n return JOIN(arr, \".\")\nend",
|
|
50
50
|
"lang": "lua"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"inputKey": "input",
|
|
57
|
-
"outputKey": "
|
|
57
|
+
"outputKey": "timestamp_micros",
|
|
58
58
|
"transforms": [
|
|
59
59
|
{
|
|
60
60
|
"expression": {
|
|
61
|
-
"body": "return
|
|
61
|
+
"body": "return TO_STRING(\nMILLISECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp)* 1000)",
|
|
62
62
|
"lang": "lua"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -106,6 +106,18 @@
|
|
|
106
106
|
}
|
|
107
107
|
]
|
|
108
108
|
},
|
|
109
|
+
"default": {
|
|
110
|
+
"filters": [
|
|
111
|
+
{
|
|
112
|
+
"byEventNames": {
|
|
113
|
+
"action": "allow",
|
|
114
|
+
"events": [
|
|
115
|
+
""
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
109
121
|
"eventSpecific": {
|
|
110
122
|
"page": {
|
|
111
123
|
"enrichments": [
|
|
@@ -181,8 +193,8 @@
|
|
|
181
193
|
"transforms": [
|
|
182
194
|
{
|
|
183
195
|
"expression": {
|
|
184
|
-
"
|
|
185
|
-
"
|
|
196
|
+
"lang": "lua",
|
|
197
|
+
"body": "return MAP(input.properties.products, function(p)\n return {\n coupon = p.coupon,\n item_brand = p.brand,\n item_category = p.category,\n item_id = p.product_id,\n item_name = p.name,\n item_price = p.price,\n item_quantity = p.quantity\n }\nend)"
|
|
186
198
|
}
|
|
187
199
|
}
|
|
188
200
|
]
|
|
@@ -249,10 +261,6 @@
|
|
|
249
261
|
}
|
|
250
262
|
],
|
|
251
263
|
"mappings": [
|
|
252
|
-
{
|
|
253
|
-
"inputKey": "properties.currency",
|
|
254
|
-
"outputKey": "event.params.currency"
|
|
255
|
-
},
|
|
256
264
|
{
|
|
257
265
|
"inputKey": "input",
|
|
258
266
|
"outputKey": "event.params.items",
|
|
@@ -307,11 +315,20 @@
|
|
|
307
315
|
"mappings": [
|
|
308
316
|
{
|
|
309
317
|
"inputKey": "properties.currency",
|
|
310
|
-
"outputKey": "event.params.currency"
|
|
318
|
+
"outputKey": "event.params.currency",
|
|
319
|
+
"defaultString": "USD"
|
|
311
320
|
},
|
|
312
321
|
{
|
|
313
|
-
"inputKey": "
|
|
314
|
-
"outputKey": "event.params.value"
|
|
322
|
+
"inputKey": "input",
|
|
323
|
+
"outputKey": "event.params.value",
|
|
324
|
+
"transforms": [
|
|
325
|
+
{
|
|
326
|
+
"expression": {
|
|
327
|
+
"lang": "lua",
|
|
328
|
+
"body": "return TOTAL_VALUE(input.properties)"
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
]
|
|
315
332
|
},
|
|
316
333
|
{
|
|
317
334
|
"inputKey": "input",
|
|
@@ -337,11 +354,20 @@
|
|
|
337
354
|
"mappings": [
|
|
338
355
|
{
|
|
339
356
|
"inputKey": "properties.currency",
|
|
340
|
-
"outputKey": "event.params.currency"
|
|
357
|
+
"outputKey": "event.params.currency",
|
|
358
|
+
"defaultString": "USD"
|
|
341
359
|
},
|
|
342
360
|
{
|
|
343
|
-
"inputKey": "
|
|
344
|
-
"outputKey": "event.params.value"
|
|
361
|
+
"inputKey": "input",
|
|
362
|
+
"outputKey": "event.params.value",
|
|
363
|
+
"transforms": [
|
|
364
|
+
{
|
|
365
|
+
"expression": {
|
|
366
|
+
"lang": "lua",
|
|
367
|
+
"body": "return TOTAL_VALUE(input.properties)"
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
]
|
|
345
371
|
},
|
|
346
372
|
{
|
|
347
373
|
"inputKey": "input",
|
|
@@ -375,7 +401,7 @@
|
|
|
375
401
|
"transforms": [
|
|
376
402
|
{
|
|
377
403
|
"expression": {
|
|
378
|
-
"body": "return
|
|
404
|
+
"body": "return TOTAL_VALUE(input.properties.products)",
|
|
379
405
|
"lang": "lua"
|
|
380
406
|
}
|
|
381
407
|
}
|
|
@@ -387,8 +413,8 @@
|
|
|
387
413
|
"transforms": [
|
|
388
414
|
{
|
|
389
415
|
"expression": {
|
|
390
|
-
"
|
|
391
|
-
"
|
|
416
|
+
"lang": "lua",
|
|
417
|
+
"body": "return MAP(input.properties.products, function(p)\n return {\n coupon = p.coupon,\n item_brand = p.brand,\n item_category = p.category,\n item_id = p.product_id,\n item_name = p.name,\n item_price = p.price,\n item_quantity = p.quantity\n }\nend)"
|
|
392
418
|
}
|
|
393
419
|
}
|
|
394
420
|
]
|
|
@@ -420,7 +446,7 @@
|
|
|
420
446
|
"outputKey": "event.params.tax"
|
|
421
447
|
},
|
|
422
448
|
{
|
|
423
|
-
"inputKey": "properties.
|
|
449
|
+
"inputKey": "properties.order_id",
|
|
424
450
|
"outputKey": "event.params.transaction_id"
|
|
425
451
|
},
|
|
426
452
|
{
|
|
@@ -433,29 +459,158 @@
|
|
|
433
459
|
"transforms": [
|
|
434
460
|
{
|
|
435
461
|
"expression": {
|
|
436
|
-
"
|
|
437
|
-
"
|
|
462
|
+
"lang": "lua",
|
|
463
|
+
"body": "return MAP(input.properties.products, function(p)\n return {\n coupon = p.coupon,\n item_brand = p.brand,\n item_category = p.category,\n item_id = p.product_id,\n item_name = p.name,\n item_price = p.price,\n item_quantity = p.quantity\n }\nend)"
|
|
438
464
|
}
|
|
439
465
|
}
|
|
440
466
|
]
|
|
441
467
|
}
|
|
442
468
|
]
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
469
|
+
},
|
|
470
|
+
"checkout_started": {
|
|
471
|
+
"enrichments": [
|
|
472
|
+
{
|
|
473
|
+
"outputKey": "event.name",
|
|
474
|
+
"staticString": "begin_checkout"
|
|
475
|
+
}
|
|
476
|
+
],
|
|
477
|
+
"mappings": [
|
|
478
|
+
{
|
|
479
|
+
"inputKey": "properties.currency",
|
|
480
|
+
"outputKey": "event.params.currency"
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"inputKey": "input",
|
|
484
|
+
"outputKey": "event.params.value",
|
|
485
|
+
"transforms": [
|
|
486
|
+
{
|
|
487
|
+
"expression": {
|
|
488
|
+
"lang": "lua",
|
|
489
|
+
"body": "return TOTAL_VALUE(input.properties.products)"
|
|
490
|
+
}
|
|
455
491
|
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
492
|
+
]
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"inputKey": "properties.coupon",
|
|
496
|
+
"outputKey": "event.params.coupon"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"inputKey": "input",
|
|
500
|
+
"outputKey": "event.params.items",
|
|
501
|
+
"transforms": [
|
|
502
|
+
{
|
|
503
|
+
"expression": {
|
|
504
|
+
"lang": "lua",
|
|
505
|
+
"body": "return MAP(input.properties.products, function(p)\n return {\n coupon = p.coupon,\n item_brand = p.brand,\n item_category = p.category,\n item_id = p.product_id,\n item_name = p.name,\n item_price = p.price,\n item_quantity = p.quantity\n }\nend)"
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
]
|
|
509
|
+
}
|
|
510
|
+
]
|
|
511
|
+
},
|
|
512
|
+
"payment_info_entered": {
|
|
513
|
+
"enrichments": [
|
|
514
|
+
{
|
|
515
|
+
"outputKey": "event.name",
|
|
516
|
+
"staticString": "add_payment_info"
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"mappings": [
|
|
520
|
+
{
|
|
521
|
+
"inputKey": "properties.coupon",
|
|
522
|
+
"outputKey": "event.params.coupon"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"inputKey": "properties.payment_method",
|
|
526
|
+
"outputKey": "event.params.payment_type"
|
|
527
|
+
}
|
|
528
|
+
]
|
|
529
|
+
},
|
|
530
|
+
"product_added_to_wishlist": {
|
|
531
|
+
"enrichments": [
|
|
532
|
+
{
|
|
533
|
+
"outputKey": "event.name",
|
|
534
|
+
"staticString": "add_to_wishlist"
|
|
535
|
+
}
|
|
536
|
+
],
|
|
537
|
+
"mappings": [
|
|
538
|
+
{
|
|
539
|
+
"inputKey": "properties.currency",
|
|
540
|
+
"outputKey": "event.params.currency",
|
|
541
|
+
"defaultString": "USD"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"inputKey": "input",
|
|
545
|
+
"outputKey": "event.params.value",
|
|
546
|
+
"transforms": [
|
|
547
|
+
{
|
|
548
|
+
"expression": {
|
|
549
|
+
"lang": "lua",
|
|
550
|
+
"body": "return TOTAL_VALUE(input.properties)"
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
]
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"inputKey": "input",
|
|
557
|
+
"outputKey": "event.params.items",
|
|
558
|
+
"transforms": [
|
|
559
|
+
{
|
|
560
|
+
"expression": {
|
|
561
|
+
"lang": "lua",
|
|
562
|
+
"body": "return {{\n coupon = input.properties.coupon,\n item_brand = input.properties.brand,\n item_category = input.properties.category,\n item_id = input.properties.product_id,\n item_name = input.properties.name,\n item_price = input.properties.price,\n item_quantity = input.properties.quantity\n}}"
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
]
|
|
566
|
+
}
|
|
567
|
+
]
|
|
568
|
+
},
|
|
569
|
+
"order_refunded": {
|
|
570
|
+
"enrichments": [
|
|
571
|
+
{
|
|
572
|
+
"outputKey": "event.name",
|
|
573
|
+
"staticString": "refund"
|
|
574
|
+
}
|
|
575
|
+
],
|
|
576
|
+
"mappings": [
|
|
577
|
+
{
|
|
578
|
+
"inputKey": "properties.coupon",
|
|
579
|
+
"outputKey": "event.params.coupon"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"inputKey": "properties.currency",
|
|
583
|
+
"outputKey": "event.params.currency"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"inputKey": "properties.shipping",
|
|
587
|
+
"outputKey": "event.params.shipping"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"inputKey": "properties.tax",
|
|
591
|
+
"outputKey": "event.params.tax"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"inputKey": "properties.order_id",
|
|
595
|
+
"outputKey": "event.params.transaction_id"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"inputKey": "properties.total",
|
|
599
|
+
"outputKey": "event.params.value"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"inputKey": "input",
|
|
603
|
+
"outputKey": "event.params.items",
|
|
604
|
+
"transforms": [
|
|
605
|
+
{
|
|
606
|
+
"expression": {
|
|
607
|
+
"lang": "lua",
|
|
608
|
+
"body": "return MAP(input.properties.products, function(p)\n return {\n coupon = p.coupon,\n item_brand = p.brand,\n item_category = p.category,\n item_id = p.product_id,\n item_name = p.name,\n item_price = p.price,\n item_quantity = p.quantity\n }\nend)"
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
]
|
|
612
|
+
}
|
|
613
|
+
]
|
|
614
|
+
}
|
|
460
615
|
}
|
|
461
616
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d4068fe406f2b4ce822b1d0b429ee6cb -"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"isDraft": false,
|
|
3
|
-
"isDeprecated":
|
|
3
|
+
"isDeprecated": true,
|
|
4
4
|
"isBeta": false,
|
|
5
5
|
"friendlyName": "Microsoft Ads",
|
|
6
6
|
"description": "Microsoft Ads is a digital advertising platform that allows businesses to create and manage paid search and display ad campaigns across Microsoft's network, including Bing, MSN, and other partner sites.",
|
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
{
|
|
29
29
|
"date": "2025-07-30T00:00:00.000Z",
|
|
30
30
|
"note": "Version: 1.1.0\nReplaced context.traits with traits."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"date": "2025-12-17T00:00:00.000Z",
|
|
34
|
+
"note": "Version: 1.2.0\nDeprecating this in favor of the released Microsoft Ads CAPI kit"
|
|
31
35
|
}
|
|
32
36
|
]
|
|
33
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"dad26766c6d5c1f56745d4b79234fc74 -"
|