@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.
- 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/connection-schemas.json +0 -1
- package/.dist/engage-front/kit.etag.json +1 -1
- package/.dist/engage-front/metadata.json +4 -0
- package/.dist/engage-front/playbook.etag.json +1 -1
- package/.dist/engage-front/playbook.json +2 -2
- package/.dist/eulerian/connection.etag.json +1 -0
- package/.dist/eulerian/connection.json +30 -0
- package/.dist/eulerian/kit.etag.json +1 -0
- package/.dist/eulerian/metadata.json +21 -0
- package/.dist/eulerian/playbook.etag.json +1 -0
- package/.dist/eulerian/playbook.json +156 -0
- 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 +11 -1
- 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/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/ttd-conversions/kit.etag.json +1 -1
- package/.dist/ttd-conversions/metadata.json +4 -0
- package/.dist/ttd-conversions/playbook.etag.json +1 -1
- package/.dist/ttd-conversions/playbook.json +3 -7
- package/.dist/wallaroo/kit.etag.json +1 -1
- package/.dist/wallaroo/metadata.json +4 -0
- package/.dist/wallaroo/playbook.etag.json +1 -1
- package/.dist/wallaroo/playbook.json +2 -1
- package/README.md +20 -9
- package/index.js +22 -0
- package/package.json +1 -1
|
@@ -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
|
+
"70103f7a5a1e5faf820ff15f01eece24 -"
|
|
@@ -40,6 +40,10 @@
|
|
|
40
40
|
{
|
|
41
41
|
"date": "2025-07-30T00:00:00.000Z",
|
|
42
42
|
"note": "Version: 2.4.0\nReplaced context.traits with traits."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"date": "2025-12-17T00:00:00.000Z",
|
|
46
|
+
"note": "Version: 2.5.0\nAdded additional standard events\nAdded num_items, content_ids and limited_data_use fields"
|
|
43
47
|
}
|
|
44
48
|
]
|
|
45
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"41f3f1e4b0b7e88ae51f8100c1814402 -"
|