@metarouter/ajs-starter-kit 1.0.86 → 1.0.87

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.
@@ -1 +1 @@
1
- "d5ca02338956602b73bfef7503abb33e"
1
+ "30344dd52a6c5dd37a609078a6811883"
@@ -2,7 +2,7 @@
2
2
  "params": [
3
3
  {
4
4
  "name": "API_VERSION",
5
- "defaultValue": "v13.0"
5
+ "defaultValue": "v19.0"
6
6
  },
7
7
  {
8
8
  "name": "PIXEL_ID",
@@ -1 +1 @@
1
- "17ef964fcbef6304688889a7719ac649"
1
+ "5c1ad949c41a1dc973526b3c576e603d"
@@ -46,7 +46,11 @@
46
46
  },
47
47
  {
48
48
  "date": "2024-03-13T00:00:00.000Z",
49
- "note": "Moved context.providors.facebookPixel to context.providers.facebookTag"
49
+ "note": "Version: 1.1.0\nUpdated `context.providers` usage"
50
+ },
51
+ {
52
+ "date": "2024-04-10T00:00:00.000Z",
53
+ "note": "Version: 1.2.0\nUpdated CAPI default version to `v19.0`"
50
54
  }
51
55
  ]
52
56
  }
@@ -1 +1 @@
1
- "9e06fa16441ccf9a0873bcb752ab1abb"
1
+ "dbd74af5179b051d2f78dacb7de03f70"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0",
2
+ "version": "1.2.0",
3
3
  "global": {
4
4
  "enrichments": [
5
5
  {
@@ -1 +1 @@
1
- "8fea9b05a3e63d20f4d9bf88b5d8aea8"
1
+ "f7f41afbf47939b4ea5d01207a1c30d0"
@@ -27,6 +27,10 @@
27
27
  {
28
28
  "date": "2023-12-13T00:00:00.000Z",
29
29
  "note": "Marked as stable version: 1.0.0"
30
+ },
31
+ {
32
+ "date": "2024-04-10T00:00:00.000Z",
33
+ "note": "Version: 1.1.0\nAdded session data: session ID, session Count\nAdded Engagement Time In Milliseconds"
30
34
  }
31
35
  ]
32
36
  }
@@ -1 +1 @@
1
- "bf62caaa412f2e7f062004c65c6b2856"
1
+ "3e58272119392f4a1cb5f738fc849927"
@@ -1,10 +1,14 @@
1
1
  {
2
- "version": "1.0.0",
2
+ "version": "1.1.0",
3
3
  "global": {
4
4
  "enrichments": [
5
5
  {
6
6
  "outputKey": "event.params.data_source",
7
7
  "staticString": "S2S"
8
+ },
9
+ {
10
+ "outputKey": "event.params.engagement_time_msec",
11
+ "staticInt": 1
8
12
  }
9
13
  ],
10
14
  "mappings": [
@@ -59,6 +63,14 @@
59
63
  }
60
64
  }
61
65
  ]
66
+ },
67
+ {
68
+ "inputKey": "context.providers.googleGtag.data.sessionID",
69
+ "outputKey": "event.params.session_id"
70
+ },
71
+ {
72
+ "inputKey": "context.providers.googleGtag.data.sessionCount",
73
+ "outputKey": "event.params.session_number"
62
74
  }
63
75
  ]
64
76
  },
@@ -406,7 +418,7 @@
406
418
  "transforms": [
407
419
  {
408
420
  "expression": {
409
- "body": "if input.event ~= nil then\n local event_details = {}\n event_details.name = REPLACE(LOWER(input.event), \" \", \"_\")\n local params = input.properties\n local gclid = DECODE_URL_QUERY(input.context.page.url).gclid\n if gclid then params.gclid = gclid end\n local dclid = DECODE_URL_QUERY(input.context.page.url).dclid\n if dclid then params.dclid = dclid end\n params.data_source = 'S2S'\n event_details.params = params\n return event_details\nend",
421
+ "body": "if input.event ~= nil then\n local event_details = {}\n event_details.name = REPLACE(LOWER(input.event), \" \", \"_\")\n local params = input.properties\n params.engagement_time_msec = 1\n if input.context.providers.googleGtag.data.sessionID then params.session_id = input.context.providers.googleGtag.data.sessionID end\n if input.context.providers.googleGtag.data.sessionCount then params.session_number = input.context.providers.googleGtag.data.sessionCount end\n local gclid = DECODE_URL_QUERY(input.context.page.url).gclid\n if gclid then params.gclid = gclid end\n local dclid = DECODE_URL_QUERY(input.context.page.url).dclid\n if dclid then params.dclid = dclid end\n params.data_source = 'S2S'\n event_details.params = params\n return event_details\nend",
410
422
  "lang": "lua"
411
423
  }
412
424
  }
@@ -1 +1 @@
1
- "e3958940b396b0077d5813f518dbce3e"
1
+ "2d57b3ceaeb3567381f3690ebf634f0c"
package/README.md CHANGED
@@ -5,10 +5,13 @@ event methods, you will create a rich, actionable data set from your website, mo
5
5
  server, and other sources. It is particularly useful for tracking the pages or screens your
6
6
  users visit, the actions they take on your property, and whether the user has been identified
7
7
  previously.
8
+ ## 2024-04
9
+ - Facebook Pixel
10
+ - Google Analytics 4
11
+
8
12
  ## 2024-03
9
13
  - Commission Junction (BETA)
10
14
  - Criteo (BETA)
11
- - Facebook Pixel
12
15
  - Heap (BETA)
13
16
  - Reddit Ads
14
17
  - Snowflake (BETA)
@@ -46,7 +49,6 @@ previously.
46
49
  - Google Ads (BETA)
47
50
  - Google Ads (BETA)
48
51
  - Google Analytics
49
- - Google Analytics 4
50
52
  - Google BigQuery
51
53
  - Google Campaign Manager (BETA)
52
54
  - HubSpot (BETA)
@@ -79,9 +81,10 @@ previously.
79
81
 
80
82
  | Kit Name | Date | Latest Note |
81
83
  |----------|------|-------------|
84
+ | Facebook Pixel | 2024-04 | Version: 1.2.0 Updated CAPI default version to `v19.0` |
85
+ | Google Analytics 4 | 2024-04 | Version: 1.1.0 Added session data: session ID, session Count Added Engagement Time In Milliseconds |
82
86
  | Commission Junction (BETA) | 2024-03 | Bugfix: `cjevent` spelling; `cjEvent` sent only for `order_completed` events. Moved the `actionTrackerId` value as the value of the `ACTION_TRACKER_ID` param. |
83
87
  | Criteo (BETA) | 2024-03 | Migrated to Server to Server endpoint |
84
- | Facebook Pixel | 2024-03 | Moved context.providors.facebookPixel to context.providers.facebookTag |
85
88
  | Heap (BETA) | 2024-03 | heap initial release. |
86
89
  | Reddit Ads | 2024-03 | Updated Standard events usage Version bump: 1.1.0 |
87
90
  | Snowflake (BETA) | 2024-03 | Enabled playbook |
@@ -113,7 +116,6 @@ previously.
113
116
  | Google Ads (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
114
117
  | Google Ads (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
115
118
  | Google Analytics | 2023-12 | Marked as stable version: 1.0.0 |
116
- | Google Analytics 4 | 2023-12 | Marked as stable version: 1.0.0 |
117
119
  | Google BigQuery | 2023-12 | Stable release Marked as stable version: 1.0.0 |
118
120
  | Google Campaign Manager (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
119
121
  | HubSpot (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/ajs-starter-kit",
3
- "version": "1.0.86",
3
+ "version": "1.0.87",
4
4
  "description": "MetaRouter analytics.js starter kit",
5
5
  "main": "index.js",
6
6
  "scripts": {