@govuk-one-login/frontend-ui 4.1.5 → 4.2.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.
|
@@ -68,7 +68,7 @@ var languageSelect$1 = {
|
|
|
68
68
|
var phaseBanner$1 = {
|
|
69
69
|
tag: "BETA",
|
|
70
70
|
text: "Mae hwn yn wasanaeth newydd. Helpwch ni i'w wella a ",
|
|
71
|
-
link: "rhoi eich adborth (agor mewn tab newydd)
|
|
71
|
+
link: "rhoi eich adborth (agor mewn tab newydd)"
|
|
72
72
|
};
|
|
73
73
|
var skipLink$1 = {
|
|
74
74
|
title: "Neidio i'r prif gynnwys"
|
|
@@ -154,7 +154,7 @@ var languageSelect = {
|
|
|
154
154
|
var phaseBanner = {
|
|
155
155
|
tag: "BETA",
|
|
156
156
|
text: "This is a new service. Help us improve it and ",
|
|
157
|
-
link: "give your feedback (opens in a new tab)
|
|
157
|
+
link: "give your feedback (opens in a new tab)"
|
|
158
158
|
};
|
|
159
159
|
var skipLink = {
|
|
160
160
|
title: "Skip to main content"
|
|
@@ -150,17 +150,31 @@
|
|
|
150
150
|
window.DI.taxonomy_level2 = '{{taxonomy_level2}}'
|
|
151
151
|
</script>
|
|
152
152
|
<script type="text/javascript" {% if scriptNonce %} nonce="{{ scriptNonce }}"{% endif %}>
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
153
|
+
{% if analyticsDataSensitive is defined and isPageDataSensitive is defined %}
|
|
154
|
+
window
|
|
155
|
+
.DI
|
|
156
|
+
.appInit({
|
|
157
|
+
ga4ContainerId: "{{ga4ContainerId}}",
|
|
158
|
+
}, {
|
|
159
|
+
isDataSensitive: {{ analyticsDataSensitive | default(true) }},
|
|
160
|
+
isPageDataSensitive: {{ isPageDataSensitive | default(true) }},
|
|
161
|
+
enableGa4Tracking: {{ isGa4Enabled | default(false) }},
|
|
162
|
+
cookieDomain: "{{analyticsCookieDomain}}"
|
|
163
|
+
});
|
|
164
|
+
{% else %}
|
|
165
|
+
console.log("Using deprecated GA4 v2 config. Please add analyticsDataSensitive and isPageDataSensitive flags to your nunjucks environment to enable GA4 v4. This will be removed in a future version.");
|
|
166
|
+
window
|
|
167
|
+
.DI
|
|
168
|
+
.appInit({
|
|
169
|
+
ga4ContainerId: "{{ga4ContainerId}}",
|
|
170
|
+
uaContainerId: "{{uaContainerId}}"
|
|
171
|
+
}, {
|
|
172
|
+
isDataSensitive: false,
|
|
173
|
+
disableGa4Tracking: {{isGa4Disabled}},
|
|
174
|
+
disableUaTracking: {{isUaDisabled}},
|
|
175
|
+
cookieDomain: "{{analyticsCookieDomain}}"
|
|
176
|
+
});
|
|
177
|
+
{% endif %}
|
|
164
178
|
</script>
|
|
165
179
|
<script type="text/javascript" nonce='{{scriptNonce}}'>
|
|
166
180
|
if (document.getElementById('back-button'))
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
target="_blank"
|
|
21
21
|
{% if params.noAppend %} href="{{ params.contactUrl }}" {% endif %}
|
|
22
22
|
{% if params.noAppend != 'true' %} href="{{ contactUsUrl(params.contactUrl, params.url) or contactUsUrl('https://signin.account.gov.uk/contact-us', params.url) }}" {% endif %}>
|
|
23
|
-
{{ phaseBanner.link
|
|
24
|
-
</a>
|
|
23
|
+
{{ phaseBanner.link}}</a>.
|
|
25
24
|
</span>
|
|
26
25
|
</p>
|
|
27
26
|
</div>
|
|
@@ -66,7 +66,7 @@ var languageSelect$1 = {
|
|
|
66
66
|
var phaseBanner$1 = {
|
|
67
67
|
tag: "BETA",
|
|
68
68
|
text: "Mae hwn yn wasanaeth newydd. Helpwch ni i'w wella a ",
|
|
69
|
-
link: "rhoi eich adborth (agor mewn tab newydd)
|
|
69
|
+
link: "rhoi eich adborth (agor mewn tab newydd)"
|
|
70
70
|
};
|
|
71
71
|
var skipLink$1 = {
|
|
72
72
|
title: "Neidio i'r prif gynnwys"
|
|
@@ -152,7 +152,7 @@ var languageSelect = {
|
|
|
152
152
|
var phaseBanner = {
|
|
153
153
|
tag: "BETA",
|
|
154
154
|
text: "This is a new service. Help us improve it and ",
|
|
155
|
-
link: "give your feedback (opens in a new tab)
|
|
155
|
+
link: "give your feedback (opens in a new tab)"
|
|
156
156
|
};
|
|
157
157
|
var skipLink = {
|
|
158
158
|
title: "Skip to main content"
|