@speedkit/cli 3.7.1 → 3.9.0
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [3.9.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.8.0...v3.9.0) (2025-10-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **customer-config:** remove unnecessary session dimensions ([a5766e5](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/a5766e54a72e71a2dfdf07c6b0ce4d8f2cd5c711))
|
|
7
|
+
|
|
8
|
+
# [3.8.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.7.1...v3.8.0) (2025-10-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **customer-config:** remove shopify helpers and adapt tracking listeners ([140356d](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/140356d674acc15d201711abcd87f6d150809dc3))
|
|
14
|
+
|
|
1
15
|
## [3.7.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.7.0...v3.7.1) (2025-10-10)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -67,75 +67,6 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
|
|
|
67
67
|
new UserFrictionPlugin(),
|
|
68
68
|
new ClickPlugin(),
|
|
69
69
|
{{/if}}
|
|
70
|
-
{
|
|
71
|
-
key: 'language',
|
|
72
|
-
type: 'SessionDimension',
|
|
73
|
-
{{#if useGATracking}}
|
|
74
|
-
on: 'dataLayer',
|
|
75
|
-
set: function(pushedEvent) {
|
|
76
|
-
// TODO: verify event property
|
|
77
|
-
return pushedEvent?.language;
|
|
78
|
-
},
|
|
79
|
-
{{else}}
|
|
80
|
-
{{#if isShopify}}
|
|
81
|
-
on: ShopifyReady,
|
|
82
|
-
set: function() {
|
|
83
|
-
return window.Shopify?.locale;
|
|
84
|
-
},
|
|
85
|
-
{{else}}
|
|
86
|
-
// TODO: set proper 'on' event listener
|
|
87
|
-
set: function() {
|
|
88
|
-
// TODO: return value
|
|
89
|
-
},
|
|
90
|
-
{{/if}}
|
|
91
|
-
{{/if}}
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
key: 'country',
|
|
95
|
-
type: 'SessionDimension',
|
|
96
|
-
{{#if useGATracking}}
|
|
97
|
-
on: 'dataLayer',
|
|
98
|
-
set: function(pushedEvent) {
|
|
99
|
-
// TODO: verify event property
|
|
100
|
-
return pushedEvent?.country;
|
|
101
|
-
},
|
|
102
|
-
{{else}}
|
|
103
|
-
{{#if isShopify}}
|
|
104
|
-
on: ShopifyReady,
|
|
105
|
-
set: function() {
|
|
106
|
-
return window.Shopify?.country;
|
|
107
|
-
},
|
|
108
|
-
{{else}}
|
|
109
|
-
// TODO: set proper 'on' event listener
|
|
110
|
-
set: function() {
|
|
111
|
-
// TODO: return value
|
|
112
|
-
},
|
|
113
|
-
{{/if}}
|
|
114
|
-
{{/if}}
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
key: 'currency',
|
|
118
|
-
type: 'SessionDimension',
|
|
119
|
-
{{#if useGATracking}}
|
|
120
|
-
on: 'dataLayer',
|
|
121
|
-
set: function(pushedEvent) {
|
|
122
|
-
// TODO: verify event property
|
|
123
|
-
return pushedEvent?.currency;
|
|
124
|
-
},
|
|
125
|
-
{{else}}
|
|
126
|
-
{{#if isShopify}}
|
|
127
|
-
on: ShopifyReady,
|
|
128
|
-
set: function() {
|
|
129
|
-
return window.Shopify?.currency?.active;
|
|
130
|
-
},
|
|
131
|
-
{{else}}
|
|
132
|
-
// TODO: set proper 'on' event listener
|
|
133
|
-
set: function() {
|
|
134
|
-
// TODO: return value
|
|
135
|
-
},
|
|
136
|
-
{{/if}}
|
|
137
|
-
{{/if}}
|
|
138
|
-
},
|
|
139
70
|
{
|
|
140
71
|
key: 'loggedIn',
|
|
141
72
|
type: 'SessionDimension',
|
|
@@ -155,7 +86,7 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
|
|
|
155
86
|
key: 'pageType',
|
|
156
87
|
type: 'PiDimension',
|
|
157
88
|
{{#if isShopify}}
|
|
158
|
-
on:
|
|
89
|
+
on: 'window.ShopifyAnalytics',
|
|
159
90
|
set: function() {
|
|
160
91
|
var pathname = window.location.pathname;
|
|
161
92
|
// TODO: verify pathname patterns
|
|
@@ -466,38 +397,8 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
|
|
|
466
397
|
{{/if}}
|
|
467
398
|
);
|
|
468
399
|
{{#if isShopify}}
|
|
469
|
-
|
|
470
|
-
/* ==== */
|
|
471
|
-
|
|
472
400
|
// Shopify specific:
|
|
473
401
|
|
|
474
|
-
function ShopifyReady(cb, controller) {
|
|
475
|
-
controller.onDOMInteractive(function() {
|
|
476
|
-
function init() {
|
|
477
|
-
if (!window.Shopify) {
|
|
478
|
-
setTimeout(init, 500);
|
|
479
|
-
return;
|
|
480
|
-
}
|
|
481
|
-
cb();
|
|
482
|
-
}
|
|
483
|
-
init();
|
|
484
|
-
});
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
function ShopifyAnalyticsReady(cb, controller) {
|
|
488
|
-
controller.onDOMInteractive(function() {
|
|
489
|
-
function init() {
|
|
490
|
-
var SA = window.ShopifyAnalytics;
|
|
491
|
-
if (!SA) {
|
|
492
|
-
setTimeout(init, 500);
|
|
493
|
-
return;
|
|
494
|
-
}
|
|
495
|
-
cb();
|
|
496
|
-
}
|
|
497
|
-
init();
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
|
|
501
402
|
// function onAddToCartClick(cb, controller) {
|
|
502
403
|
// controller.onDOMInteractive(function() {
|
|
503
404
|
// var addToCartBtn = document.querySelector('.button--add-to-cart');
|
package/oclif.manifest.json
CHANGED