@metarouter/ajs-starter-kit 1.0.124 → 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.
@@ -0,0 +1 @@
1
+ "55ab7f296d08da6711201d30c029cc8d"
@@ -2,8 +2,8 @@
2
2
  "isDraft": false,
3
3
  "isDeprecated": false,
4
4
  "isBeta": true,
5
- "friendlyName": "Adobe Analytics - Experience",
6
- "description": "Adobe Analytics is a web and marketing analytics tool focused on in-depth reporting of customer web and marketing journeys.",
5
+ "friendlyName": "Adobe Experience Platform - Interact",
6
+ "description": "The Adobe Experience Platform - Interact integration sends event data to a datastream in AEP. This enables audience targeting, experience personalization, reporting, and journey orchestration in Adobe Experience Platform.",
7
7
  "logo": "https://cdn.metarouter.io/logo.svg",
8
8
  "color": "#2E204B",
9
9
  "eventSource": {
@@ -40,6 +40,10 @@
40
40
  {
41
41
  "date": "2024-11-20T00:00:00.000Z",
42
42
  "note": "Version: 0.6.0\nAdding checkout event\nUpdating inputKey for siteSection"
43
+ },
44
+ {
45
+ "date": "2025-03-19T00:00:00.000Z",
46
+ "note": "Version: 0.7.0\nUpdated friendlyName\nUpdated kit name"
43
47
  }
44
48
  ]
45
49
  }
@@ -0,0 +1 @@
1
+ "1702b3931431788967234fae6759d010"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.6.0",
2
+ "version": "0.7.0",
3
3
  "default": {
4
4
  "filters": [
5
5
  {
@@ -1 +1 @@
1
- "508f164f3425a089933ca719306fa43c"
1
+ "04a4c0cc0a4e3e779bfe092cd2a4b7b1"
@@ -2,7 +2,7 @@
2
2
  "params": [
3
3
  {
4
4
  "name": "API_VERSION",
5
- "defaultValue": "v19.0"
5
+ "defaultValue": "v22.0"
6
6
  },
7
7
  {
8
8
  "name": "PIXEL_ID",
@@ -1 +1 @@
1
- "54af329cab279d15573868ebb2b05812"
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
- "e842041eab4a0d17c312515faed2b11a"
1
+ "a65011d622b88ef5cf67e77d4dd75b14"
@@ -1,17 +1,45 @@
1
1
  {
2
- "version": "1.3.0",
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
- "abdfaee3178df4d875e07e3540742330"
1
+ "6051f82b1a2ddaf5acb810ba6a573e31"
@@ -1 +1 @@
1
- "70505b8496f26ec95396135072da16f0"
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
- "bb2eaa8e02d3efe77d0a35026a287924"
1
+ "46188c53711a3aabd80816b68f2c47eb"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.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
@@ -6,8 +6,11 @@ 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
+ - Adobe Experience Platform - Interact (BETA)
9
10
  - Amplitude
10
11
  - Button
12
+ - Facebook Pixel
13
+ - Microsoft Ads (BETA)
11
14
  - Podscribe (BETA)
12
15
  - Ringier Axel Springer Poland (BETA)
13
16
  - TikTok
@@ -22,14 +25,12 @@ previously.
22
25
  - Blueshift
23
26
  - Google BigQuery
24
27
  - Iterable (BETA)
25
- - Microsoft Ads (BETA)
26
28
 
27
29
  ## 2024-12
28
30
  - Google Analytics 4 (Collect) (BETA)
29
31
  - RTB House (BETA)
30
32
 
31
33
  ## 2024-11
32
- - Adobe Analytics - Experience (BETA)
33
34
  - Convert (BETA)
34
35
  - Innervate
35
36
  - Snapchat - CAPI
@@ -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)
@@ -112,8 +112,11 @@ previously.
112
112
 
113
113
  | Kit Name | Date | Latest Note |
114
114
  |----------|------|-------------|
115
+ | Adobe Experience Platform - Interact (BETA) | 2025-03 | Version: 0.7.0 Updated friendlyName Updated kit name |
115
116
  | Amplitude | 2025-03 | Version: 1.2.0 Added API_URL param to accommodate Amplitude's EU residency server |
116
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 |
117
120
  | Podscribe (BETA) | 2025-03 | Version: 0.1.0 Beta Version Podscribe initial release |
118
121
  | Ringier Axel Springer Poland (BETA) | 2025-03 | Version: 0.1.0 Beta Version Ringier Axel Springer Poland initial release |
119
122
  | TikTok | 2025-03 | Version: 2.3.0 Mapping updates due to TikTok API changes |
@@ -124,10 +127,8 @@ previously.
124
127
  | Blueshift | 2025-01 | Version: 1.0.0 Stable release |
125
128
  | Google BigQuery | 2025-01 | Version: 1.1.0 Adding support for table overrides |
126
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 |
127
- | Microsoft Ads (BETA) | 2025-01 | Version: 0.1.0 Beta Version Microsoft Ads initial release |
128
130
  | Google Analytics 4 (Collect) (BETA) | 2024-12 | Version: 0.4.0 Added user property expression for anonymousId. |
129
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 |
130
- | Adobe Analytics - Experience (BETA) | 2024-11 | Version: 0.6.0 Adding checkout event Updating inputKey for siteSection |
131
132
  | Convert (BETA) | 2024-11 | Version: 0.3.0 Added new deduplication parameter for all events, `tid` |
132
133
  | Innervate | 2024-11 | Version: 1.0.0 Updated friendly name Stable release |
133
134
  | Snapchat - CAPI | 2024-11 | Version: 1.3.0 Added the `_scid` cookie value as `user_data.sc_cookie1` |
@@ -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` |
package/index.js CHANGED
@@ -88,10 +88,10 @@ exports['acuity-ads'] = {
88
88
  metadata: require('./.dist/acuity-ads/metadata.json')
89
89
  }
90
90
 
91
- exports['adobe-analytics'] = {
92
- endpointSchema: require('./.dist/adobe-analytics/connection.json'),
93
- playbook: require('./.dist/adobe-analytics/playbook.json'),
94
- metadata: require('./.dist/adobe-analytics/metadata.json')
91
+ exports['adobe-experience-platform-interact'] = {
92
+ endpointSchema: require('./.dist/adobe-experience-platform-interact/connection.json'),
93
+ playbook: require('./.dist/adobe-experience-platform-interact/playbook.json'),
94
+ metadata: require('./.dist/adobe-experience-platform-interact/metadata.json')
95
95
  }
96
96
 
97
97
  exports['adobe-id'] = {
@@ -563,10 +563,10 @@ exports.etags = {
563
563
  playbook: require('./.dist/acuity-ads/playbook.etag.json'),
564
564
  kit: require('./.dist/acuity-ads/kit.etag.json')
565
565
  },
566
- 'adobe-analytics': {
567
- endpointSchema: require('./.dist/adobe-analytics/connection.etag.json'),
568
- playbook: require('./.dist/adobe-analytics/playbook.etag.json'),
569
- kit: require('./.dist/adobe-analytics/kit.etag.json')
566
+ 'adobe-experience-platform-interact': {
567
+ endpointSchema: require('./.dist/adobe-experience-platform-interact/connection.etag.json'),
568
+ playbook: require('./.dist/adobe-experience-platform-interact/playbook.etag.json'),
569
+ kit: require('./.dist/adobe-experience-platform-interact/kit.etag.json')
570
570
  },
571
571
  'adobe-id': {
572
572
  endpointSchema: require('./.dist/adobe-id/connection.etag.json'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/ajs-starter-kit",
3
- "version": "1.0.124",
3
+ "version": "1.0.126",
4
4
  "description": "MetaRouter analytics.js starter kit",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1 +0,0 @@
1
- "019e16a9d770091cb5f5ac406b64ccf5"
@@ -1 +0,0 @@
1
- "b4dbcdba1b8c1e66e2c5d716e852741b"