mod-build 3.7.26-beta.9 → 3.7.26
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
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## 3.7.26
|
|
4
4
|
|
|
5
|
-
-
|
|
5
|
+
- Added jacuzzi in the sites that should have tcpa below the cta.
|
|
6
6
|
|
|
7
7
|
## 3.7.25
|
|
8
8
|
|
|
9
|
-
- Upgraded to new VWO smart code
|
|
9
|
+
- Upgraded to new VWO smart code.
|
|
10
10
|
|
|
11
11
|
## 3.7.24
|
|
12
12
|
|
package/gulp-tasks/templates.js
CHANGED
|
@@ -95,6 +95,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
var tradesWithTcpaAboveCta = ['HOME_SECURITY'];
|
|
98
|
+
var sitesWithTcpaBelowCta = ['go.jacuzzi.com'];
|
|
98
99
|
|
|
99
100
|
// Support helper functions
|
|
100
101
|
var handlebarsHelpers = [
|
|
@@ -235,7 +236,8 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
235
236
|
return false;
|
|
236
237
|
}
|
|
237
238
|
const trade = page.primary_trade.replace(/\s+/g, '_').toUpperCase();
|
|
238
|
-
|
|
239
|
+
const site = page.website_name?.toLowerCase();
|
|
240
|
+
return (tradesWithTcpaAboveCta.includes(trade) || page.isBranded) && !sitesWithTcpaBelowCta.includes(site);
|
|
239
241
|
}
|
|
240
242
|
},
|
|
241
243
|
{
|
|
@@ -245,7 +247,8 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
245
247
|
return false;
|
|
246
248
|
}
|
|
247
249
|
const trade = page.primary_trade.replace(/\s+/g, '_').toUpperCase();
|
|
248
|
-
|
|
250
|
+
const site = page.website_name?.toLowerCase();
|
|
251
|
+
return (!tradesWithTcpaAboveCta.includes(trade) && !page.isBranded) || sitesWithTcpaBelowCta.includes(site);
|
|
249
252
|
}
|
|
250
253
|
}
|
|
251
254
|
];
|
package/package.json
CHANGED
|
@@ -10,12 +10,6 @@ window.VWO.push(['onEventReceive', 'vA', function (data) {
|
|
|
10
10
|
n: variationName
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
if (variationId != 1 && window.addVwoTestAttribute) {
|
|
14
|
-
// Control is assigned variation ID 1 - variations receive incremented IDs starting from 2
|
|
15
|
-
const actualVariationId = variationId - 1;
|
|
16
|
-
const vwoTestAttrValue = `${experimentId}-${actualVariationId}`;
|
|
17
|
-
document.body.setAttribute('data-vwo-test', vwoTestAttrValue);
|
|
18
|
-
}
|
|
19
13
|
}
|
|
20
14
|
}]);
|
|
21
15
|
|