hof 20.2.28 → 20.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/frontend/template-partials/views/partials/head.html +4 -2
- package/lib/ga-tag.js +1 -0
- package/package.json +2 -2
- package/.nyc_output/846243c6-ebe3-4c75-9b7a-aa3bbc684b87.json +0 -1
- package/.nyc_output/processinfo/846243c6-ebe3-4c75-9b7a-aa3bbc684b87.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/frontend/govuk-template/govuk_template_generated.html +0 -103
- package/sandbox/apps/sandbox/translations/en/default.json +0 -220
- package/sandbox/public/css/app.css +0 -9387
- package/sandbox/public/images/icons/icon-caret-left.png +0 -0
- package/sandbox/public/images/icons/icon-complete.png +0 -0
- package/sandbox/public/images/icons/icon-cross-remove-sign.png +0 -0
- package/sandbox/public/js/bundle.js +0 -35664
@@ -1,5 +1,6 @@
|
|
1
1
|
{{#gtmTagId}}
|
2
2
|
{{#cookiesAccepted}}
|
3
|
+
{{#isETA}}
|
3
4
|
<!-- Google Tag Manager Data Layer for ETA -->
|
4
5
|
<script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>
|
5
6
|
var dataLayer = window.dataLayer || [];
|
@@ -11,8 +12,9 @@
|
|
11
12
|
});
|
12
13
|
</script>
|
13
14
|
<!-- End Google Tag Manager Data Layer for ETA -->
|
15
|
+
{{/isETA}}
|
14
16
|
|
15
|
-
<!-- Google Tag Manager
|
17
|
+
<!-- Google Tag Manager -->
|
16
18
|
<script {{#nonce}}nonce="{{nonce}}"{{/nonce}}>
|
17
19
|
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
18
20
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
@@ -20,7 +22,7 @@
|
|
20
22
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
21
23
|
})(window,document,'script','dataLayer','{{gtmTagId}}');
|
22
24
|
</script>
|
23
|
-
<!-- End Google Tag Manager
|
25
|
+
<!-- End Google Tag Manager -->
|
24
26
|
{{/cookiesAccepted}}
|
25
27
|
{{/gtmTagId}}
|
26
28
|
|
package/lib/ga-tag.js
CHANGED
@@ -63,6 +63,7 @@ module.exports = (app, config) => {
|
|
63
63
|
app.use((req, res, next) => {
|
64
64
|
const page = pageView(req.path, pageMap);
|
65
65
|
res.locals.gaAllowDebug = config.env === 'development';
|
66
|
+
res.locals.isETA = config.appName === 'ETA';
|
66
67
|
res.locals.gaTagId = gaTagId;
|
67
68
|
res.locals.ga4TagId = ga4TagId;
|
68
69
|
res.locals.gtmTagId = gtmTagId;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "hof",
|
3
3
|
"description": "A bootstrap for HOF projects",
|
4
|
-
"version": "20.
|
4
|
+
"version": "20.3.1",
|
5
5
|
"license": "MIT",
|
6
6
|
"main": "index.js",
|
7
7
|
"author": "HomeOffice",
|
@@ -122,7 +122,7 @@
|
|
122
122
|
"playwright": "^1.16.3",
|
123
123
|
"postcode": "0.2.2",
|
124
124
|
"proxyquire": "^1.7.11",
|
125
|
-
"release-it": "^
|
125
|
+
"release-it": "^16.2.1",
|
126
126
|
"sinon": "^11.1.1",
|
127
127
|
"sinon-chai": "^3.7.0",
|
128
128
|
"supertest": "^3.0.0",
|