@metarouter/ajs-starter-kit 1.0.125 → 1.0.126
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/facebook-pixel/connection.etag.json +1 -1
- package/.dist/facebook-pixel/connection.json +1 -1
- 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 +186 -5
- package/.dist/linkedin-ads/kit.etag.json +1 -1
- package/.dist/microsoft-ads/kit.etag.json +1 -1
- package/.dist/microsoft-ads/metadata.json +4 -0
- package/.dist/microsoft-ads/playbook.etag.json +1 -1
- package/.dist/microsoft-ads/playbook.json +5 -5
- package/README.md +4 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"04a4c0cc0a4e3e779bfe092cd2a4b7b1"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"72e40c09f33acab51ea4e98d3cff20bb"
|
|
@@ -56,6 +56,10 @@
|
|
|
56
56
|
{
|
|
57
57
|
"date": "2024-10-23T00:00:00.000Z",
|
|
58
58
|
"note": "Version: 1.3.0\nAdded header `Accept-Encoding: application/json`"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"date": "2025-03-26T00:00:00.000Z",
|
|
62
|
+
"note": "Version: 1.4.0\nUpdating default Facebook API version to 22.0\nAdding additional event mappings\nAdding app event mappings"
|
|
59
63
|
}
|
|
60
64
|
]
|
|
61
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"a65011d622b88ef5cf67e77d4dd75b14"
|
|
@@ -1,17 +1,45 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.4.0",
|
|
3
3
|
"global": {
|
|
4
4
|
"enrichments": [
|
|
5
|
-
{
|
|
6
|
-
"staticString": "website",
|
|
7
|
-
"outputKey": "action_source"
|
|
8
|
-
},
|
|
9
5
|
{
|
|
10
6
|
"timestamp": "seconds",
|
|
11
7
|
"outputKey": "event_time"
|
|
12
8
|
}
|
|
13
9
|
],
|
|
14
10
|
"mappings": [
|
|
11
|
+
{
|
|
12
|
+
"inputKey": "input",
|
|
13
|
+
"outputKey": "action_source",
|
|
14
|
+
"transforms": [
|
|
15
|
+
{
|
|
16
|
+
"expression": {
|
|
17
|
+
"lang": "lua",
|
|
18
|
+
"body": "local t = (input.context.device.type and LOWER(input.context.device.type)) or ''\nreturn ({ ios = 'app', android = 'app' })[t] or 'website'"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"inputKey": "context.device.adTrackingEnabled",
|
|
25
|
+
"outputKey": "app_data.advertiser_tracking_enabled"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"inputKey": "context.device.adTrackingEnabled",
|
|
29
|
+
"outputKey": "app_data.application_tracking_enabled"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"inputKey": "input",
|
|
33
|
+
"outputKey": "app_data.extinfo",
|
|
34
|
+
"transforms": [
|
|
35
|
+
{
|
|
36
|
+
"expression": {
|
|
37
|
+
"lang": "lua",
|
|
38
|
+
"body": "local deviceType = LOWER(input.context.device.type)\nlocal extinfoversion\nif deviceType == 'ios' then\n extinfoversion = 'i2'\nelseif deviceType == 'android' then\n extinfoversion = 'a2'\nend\n\nreturn {\nextinfoversion,\ninput.context.app.name or '',\n'', -- Short Version Example: 1.0\n'', -- Long Version Example: 1.0 long\ninput.context.os.version,\ninput.context.device.model or '',\ninput.context.locale or '',\n'', -- Timezone Abbreviation Example: PDT\ninput.context.network.carrier or '',\ninput.context.screen.width or '',\ninput.context.screen.height or '',\ninput.context.screen.density or '',\n'', -- CPU Cores Example: 2\n'', -- External Storage Size in GB Example: 13\n'', -- Free Space on External Storage in GB Example: 8\ninput.context.timezone or ''\n}"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
15
43
|
{
|
|
16
44
|
"inputKey": "input",
|
|
17
45
|
"outputKey": "user_data.em",
|
|
@@ -416,6 +444,159 @@
|
|
|
416
444
|
"outputKey": "custom_data.order_id"
|
|
417
445
|
}
|
|
418
446
|
]
|
|
447
|
+
},
|
|
448
|
+
"payment_info_entered": {
|
|
449
|
+
"enrichments": [
|
|
450
|
+
{
|
|
451
|
+
"staticString": "AddPaymentInfo",
|
|
452
|
+
"outputKey": "event_name"
|
|
453
|
+
}
|
|
454
|
+
],
|
|
455
|
+
"mappings": [
|
|
456
|
+
{
|
|
457
|
+
"inputKey": "properties.order_id",
|
|
458
|
+
"outputKey": "custom_data.order_id"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"inputKey": "input",
|
|
462
|
+
"outputKey": "custom_data.content_ids",
|
|
463
|
+
"transforms": [
|
|
464
|
+
{
|
|
465
|
+
"expression": {
|
|
466
|
+
"lang": "lua",
|
|
467
|
+
"body": "return { checkout_id=input.properties.checkout_id , order_id=input.properties.order_id }"
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
]
|
|
471
|
+
}
|
|
472
|
+
]
|
|
473
|
+
},
|
|
474
|
+
"product_added_to_wishlist": {
|
|
475
|
+
"enrichments": [
|
|
476
|
+
{
|
|
477
|
+
"staticString": "AddToWishlist",
|
|
478
|
+
"outputKey": "event_name"
|
|
479
|
+
}
|
|
480
|
+
],
|
|
481
|
+
"mappings": [
|
|
482
|
+
{
|
|
483
|
+
"inputKey": "properties.category",
|
|
484
|
+
"outputKey": "custom_data.content_category"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"inputKey": "properties.name",
|
|
488
|
+
"outputKey": "custom_data.content_name"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"inputKey": "properties.product_id",
|
|
492
|
+
"outputKey": "custom_data.content_ids"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"inputKey": "properties.currency",
|
|
496
|
+
"outputKey": "custom_data.currency",
|
|
497
|
+
"transforms": [
|
|
498
|
+
{
|
|
499
|
+
"modifyString": "uppercase"
|
|
500
|
+
}
|
|
501
|
+
],
|
|
502
|
+
"defaultString": "USD"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"inputKey": "input",
|
|
506
|
+
"outputKey": "custom_data.value",
|
|
507
|
+
"transforms": [
|
|
508
|
+
{
|
|
509
|
+
"expression": {
|
|
510
|
+
"lang": "lua",
|
|
511
|
+
"body": "return input.properties.price * (input.properties.quantity or 1)"
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"inputKey": "input",
|
|
518
|
+
"outputKey": "custom_data.contents",
|
|
519
|
+
"transforms": [
|
|
520
|
+
{
|
|
521
|
+
"expression": {
|
|
522
|
+
"lang": "lua",
|
|
523
|
+
"body": "return {{\n id=input.properties.product_id,\n quantity=input.properties.quantity or 1,\n item_price=input.properties.price,\n}}"
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
]
|
|
527
|
+
}
|
|
528
|
+
]
|
|
529
|
+
},
|
|
530
|
+
"checkout_started": {
|
|
531
|
+
"enrichments": [
|
|
532
|
+
{
|
|
533
|
+
"staticString": "InitiateCheckout",
|
|
534
|
+
"outputKey": "event_name"
|
|
535
|
+
}
|
|
536
|
+
],
|
|
537
|
+
"mappings": [
|
|
538
|
+
{
|
|
539
|
+
"inputKey": "properties.products",
|
|
540
|
+
"outputKey": "custom_data.content_ids",
|
|
541
|
+
"transforms": [
|
|
542
|
+
{
|
|
543
|
+
"pluckValues": {
|
|
544
|
+
"extractKey": "product_id"
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
]
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"inputKey": "properties.currency",
|
|
551
|
+
"outputKey": "custom_data.currency",
|
|
552
|
+
"transforms": [
|
|
553
|
+
{
|
|
554
|
+
"modifyString": "uppercase"
|
|
555
|
+
}
|
|
556
|
+
],
|
|
557
|
+
"defaultString": "USD"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"inputKey": "input",
|
|
561
|
+
"outputKey": "custom_data.value",
|
|
562
|
+
"transforms": [
|
|
563
|
+
{
|
|
564
|
+
"expression": {
|
|
565
|
+
"lang": "lua",
|
|
566
|
+
"body": "return SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end))"
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
]
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"inputKey": "input",
|
|
573
|
+
"outputKey": "custom_data.num_items",
|
|
574
|
+
"transforms": [
|
|
575
|
+
{
|
|
576
|
+
"expression": {
|
|
577
|
+
"lang": "lua",
|
|
578
|
+
"body": "return SUM(MAP(input.properties.products, function (p) return p.quantity or 1 end))"
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
]
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"inputKey": "input",
|
|
585
|
+
"outputKey": "custom_data.contents",
|
|
586
|
+
"transforms": [
|
|
587
|
+
{
|
|
588
|
+
"expression": {
|
|
589
|
+
"lang": "lua",
|
|
590
|
+
"body": "return MAP(\n input.properties.products,\n function (p)\n return {\n id=p.product_id,\n quantity=p.quantity or 1,\n item_price=p.price\n }\n end\n)"
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
]
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"inputKey": "properties.order_id",
|
|
597
|
+
"outputKey": "custom_data.order_id"
|
|
598
|
+
}
|
|
599
|
+
]
|
|
419
600
|
}
|
|
420
601
|
},
|
|
421
602
|
"default": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"6051f82b1a2ddaf5acb810ba6a573e31"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"51d0afaf2b5bed8bfb5607b5e8cc132d"
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
{
|
|
17
17
|
"date": "2025-01-22T22:00:00.000Z",
|
|
18
18
|
"note": "Version: 0.1.0\nBeta Version\nMicrosoft Ads initial release"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"date": "2025-03-26T22:00:00.000Z",
|
|
22
|
+
"note": "Version: 0.2.0\nMoving ClickID mapping to eventSpecific stanza to specify which events are conversion events"
|
|
19
23
|
}
|
|
20
24
|
]
|
|
21
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"46188c53711a3aabd80816b68f2c47eb"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.2.0",
|
|
3
3
|
"params": [
|
|
4
4
|
{
|
|
5
5
|
"name": "UET_TAG_ID",
|
|
@@ -22,10 +22,6 @@
|
|
|
22
22
|
"inputKey": "context.providers.microsoftAds.mid",
|
|
23
23
|
"outputKey": "mid"
|
|
24
24
|
},
|
|
25
|
-
{
|
|
26
|
-
"inputKey": "context.providers.microsoftAds.msclkid",
|
|
27
|
-
"outputKey": "msclkid"
|
|
28
|
-
},
|
|
29
25
|
{
|
|
30
26
|
"inputKey": "anonymousId",
|
|
31
27
|
"outputKey": "vid"
|
|
@@ -369,6 +365,10 @@
|
|
|
369
365
|
}
|
|
370
366
|
],
|
|
371
367
|
"mappings": [
|
|
368
|
+
{
|
|
369
|
+
"inputKey": "context.providers.microsoftAds.msclkid",
|
|
370
|
+
"outputKey": "msclkid"
|
|
371
|
+
},
|
|
372
372
|
{
|
|
373
373
|
"inputKey": "properties.order_id",
|
|
374
374
|
"outputKey": "transaction_id"
|
package/README.md
CHANGED
|
@@ -9,6 +9,8 @@ previously.
|
|
|
9
9
|
- Adobe Experience Platform - Interact (BETA)
|
|
10
10
|
- Amplitude
|
|
11
11
|
- Button
|
|
12
|
+
- Facebook Pixel
|
|
13
|
+
- Microsoft Ads (BETA)
|
|
12
14
|
- Podscribe (BETA)
|
|
13
15
|
- Ringier Axel Springer Poland (BETA)
|
|
14
16
|
- TikTok
|
|
@@ -23,7 +25,6 @@ previously.
|
|
|
23
25
|
- Blueshift
|
|
24
26
|
- Google BigQuery
|
|
25
27
|
- Iterable (BETA)
|
|
26
|
-
- Microsoft Ads (BETA)
|
|
27
28
|
|
|
28
29
|
## 2024-12
|
|
29
30
|
- Google Analytics 4 (Collect) (BETA)
|
|
@@ -49,7 +50,6 @@ previously.
|
|
|
49
50
|
- Commission Junction
|
|
50
51
|
- Criteo
|
|
51
52
|
- Customer.io
|
|
52
|
-
- Facebook Pixel
|
|
53
53
|
- Google Ads - Conversions
|
|
54
54
|
- Google Analytics
|
|
55
55
|
- Firebase (BETA)
|
|
@@ -115,6 +115,8 @@ previously.
|
|
|
115
115
|
| Adobe Experience Platform - Interact (BETA) | 2025-03 | Version: 0.7.0 Updated friendlyName Updated kit name |
|
|
116
116
|
| Amplitude | 2025-03 | Version: 1.2.0 Added API_URL param to accommodate Amplitude's EU residency server |
|
|
117
117
|
| Button | 2025-03 | Version: 0.1.1 Fix stanza spelling |
|
|
118
|
+
| Facebook Pixel | 2025-03 | Version: 1.4.0 Updating default Facebook API version to 22.0 Adding additional event mappings Adding app event mappings |
|
|
119
|
+
| Microsoft Ads (BETA) | 2025-03 | Version: 0.2.0 Moving ClickID mapping to eventSpecific stanza to specify which events are conversion events |
|
|
118
120
|
| Podscribe (BETA) | 2025-03 | Version: 0.1.0 Beta Version Podscribe initial release |
|
|
119
121
|
| Ringier Axel Springer Poland (BETA) | 2025-03 | Version: 0.1.0 Beta Version Ringier Axel Springer Poland initial release |
|
|
120
122
|
| TikTok | 2025-03 | Version: 2.3.0 Mapping updates due to TikTok API changes |
|
|
@@ -125,7 +127,6 @@ previously.
|
|
|
125
127
|
| Blueshift | 2025-01 | Version: 1.0.0 Stable release |
|
|
126
128
|
| Google BigQuery | 2025-01 | Version: 1.1.0 Adding support for table overrides |
|
|
127
129
|
| Iterable (BETA) | 2025-01 | Version: 0.4.0 Add user agent and ip to default and order_completed stanzas Remove redundant properties-dataFields mapping from identify events |
|
|
128
|
-
| Microsoft Ads (BETA) | 2025-01 | Version: 0.1.0 Beta Version Microsoft Ads initial release |
|
|
129
130
|
| Google Analytics 4 (Collect) (BETA) | 2024-12 | Version: 0.4.0 Added user property expression for anonymousId. |
|
|
130
131
|
| RTB House (BETA) | 2024-12 | Version: 0.2.1 Updated Endpoint URL Added new fields for all events: page URL (`su`) and page referrer (`sr`) Added new events: identify, page, products_searched, product_list_viewed, product_viewed, product_added, product_added_to_wishlist, cart_viewed, checkout_started |
|
|
131
132
|
| Convert (BETA) | 2024-11 | Version: 0.3.0 Added new deduplication parameter for all events, `tid` |
|
|
@@ -145,7 +146,6 @@ previously.
|
|
|
145
146
|
| Commission Junction | 2024-10 | Version: 1.2.0 Added header `Accept-Encoding: application/json` |
|
|
146
147
|
| Criteo | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
|
|
147
148
|
| Customer.io | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
|
|
148
|
-
| Facebook Pixel | 2024-10 | Version: 1.3.0 Added header `Accept-Encoding: application/json` |
|
|
149
149
|
| Google Ads - Conversions | 2024-10 | Version: 1.3.0 Added header `Accept-Encoding: application/json` |
|
|
150
150
|
| Google Analytics | 2024-10 | Deprecating kit |
|
|
151
151
|
| Firebase (BETA) | 2024-10 | Version: 0.2.0 Updated header `Accept-Encoding: application/json` |
|