@govuk-one-login/frontend-ui 1.4.0 → 1.4.2
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.
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
{% set assetPath = "/public/rebrand"%}
|
|
4
4
|
{% endif %}
|
|
5
5
|
|
|
6
|
+
{% set isPageDataSensitive = false %}
|
|
6
7
|
{% extends "form-template.njk" %}
|
|
7
8
|
|
|
9
|
+
{% from "frontend-analytics/components/ga4-opl/macro.njk" import frontendAnalyticsGa4OnPageLoad %}
|
|
8
10
|
{% from "frontend-ui/build/components/cookie-banner/macro.njk" import frontendUiCookieBanner %}
|
|
9
11
|
{% from "frontend-ui/build/components/phase-banner/macro.njk" import frontendUiPhaseBanner %}
|
|
10
12
|
{% from "frontend-ui/build/components/header/macro.njk" import frontendUiHeader %}
|
|
@@ -83,7 +85,8 @@
|
|
|
83
85
|
enableNavigationTracking:{{ga4NavigationEnabled}},
|
|
84
86
|
enableSelectContentTracking:{{ga4SelectContentEnabled}},
|
|
85
87
|
cookieDomain:"{{analyticsCookieDomain}}",
|
|
86
|
-
isDataSensitive:
|
|
88
|
+
isDataSensitive: false,
|
|
89
|
+
isPageDataSensitive: {{ isPageDataSensitive }},
|
|
87
90
|
}
|
|
88
91
|
);
|
|
89
92
|
</script>
|
|
@@ -96,5 +99,11 @@
|
|
|
96
99
|
</script>
|
|
97
100
|
{% endif %}
|
|
98
101
|
|
|
102
|
+
{{ frontendAnalyticsGa4OnPageLoad({
|
|
103
|
+
nonce: cspNonce,
|
|
104
|
+
dynamic: isPageDynamic,
|
|
105
|
+
englishPageTitle: pageTitleKey | translateToEnglish
|
|
106
|
+
})}}
|
|
107
|
+
|
|
99
108
|
{% endblock %}
|
|
100
109
|
{% endblock %}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
{% set assetPath = "/public/rebrand"%}
|
|
4
4
|
{% endif %}
|
|
5
5
|
|
|
6
|
+
{% set isPageDataSensitive = false %}
|
|
6
7
|
{% extends "hmpo-template.njk" %}
|
|
7
8
|
|
|
9
|
+
{% from "frontend-analytics/components/ga4-opl/macro.njk" import frontendAnalyticsGa4OnPageLoad %}
|
|
8
10
|
{% from "frontend-ui/build/components/cookie-banner/macro.njk" import frontendUiCookieBanner %}
|
|
9
11
|
{% from "frontend-ui/build/components/phase-banner/macro.njk" import frontendUiPhaseBanner %}
|
|
10
12
|
{% from "frontend-ui/build/components/header/macro.njk" import frontendUiHeader %}
|
|
@@ -83,7 +85,7 @@
|
|
|
83
85
|
enableNavigationTracking:{{ga4NavigationEnabled}},
|
|
84
86
|
enableSelectContentTracking:{{ga4SelectContentEnabled}},
|
|
85
87
|
cookieDomain:"{{analyticsCookieDomain}}",
|
|
86
|
-
|
|
88
|
+
isPageDataSensitive:{{false}}
|
|
87
89
|
});
|
|
88
90
|
</script>
|
|
89
91
|
|
|
@@ -95,5 +97,11 @@
|
|
|
95
97
|
</script>
|
|
96
98
|
{% endif %}
|
|
97
99
|
|
|
100
|
+
{{ frontendAnalyticsGa4OnPageLoad({
|
|
101
|
+
nonce: cspNonce,
|
|
102
|
+
dynamic: isPageDynamic,
|
|
103
|
+
englishPageTitle: pageTitleKey | translateToEnglish
|
|
104
|
+
})}}
|
|
105
|
+
|
|
98
106
|
{% endblock %}
|
|
99
107
|
{% endblock %}
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
{% from "frontend-ui/build/components/header/macro.njk" import frontendUiHeader %}
|
|
11
11
|
{% from "frontend-ui/build/components/footer/macro.njk" import frontendUiFooter %}
|
|
12
12
|
{% from "frontend-ui/build/components/language-select/macro.njk" import frontendUiLanguageSelect %}
|
|
13
|
-
{% from "frontend-analytics/components/ga4-opl/macro.njk" import frontendAnalyticsGa4OnPageLoad %}
|
|
13
|
+
{# {% from "frontend-analytics/components/ga4-opl/macro.njk" import frontendAnalyticsGa4OnPageLoad %} #}
|
|
14
|
+
|
|
15
|
+
{% from basePath ~ "/views/shared/ga4/on-page-load-macro.njk" import ga4OnPageLoad %}
|
|
14
16
|
{% from "govuk/components/back-link/macro.njk" import govukBackLink %}
|
|
15
17
|
{% from "govuk/components/error-summary/macro.njk" import govukErrorSummary %}
|
|
16
18
|
{% from "govuk/components/notification-banner/macro.njk" import govukNotificationBanner %}
|
|
@@ -144,16 +146,18 @@
|
|
|
144
146
|
ga4ContainerId: "{{ ga4ContainerId }}",
|
|
145
147
|
uaContainerId: "{{ uaContainerId }}"
|
|
146
148
|
}, {
|
|
147
|
-
isDataSensitive: false,
|
|
148
|
-
isPageDataSensitive: {{ isPageDataSensitive }},
|
|
149
149
|
enableGa4Tracking: {{isGa4Enabled}},
|
|
150
150
|
enableUaTracking: {{isUaEnabled}},
|
|
151
151
|
cookieDomain: "{{analyticsCookieDomain}}"
|
|
152
152
|
});
|
|
153
153
|
</script>
|
|
154
|
-
{{
|
|
154
|
+
{{ ga4OnPageLoad({
|
|
155
|
+
cspNonce: cspNonce,
|
|
156
|
+
isPageDynamic: isPageDynamic,
|
|
157
|
+
englishPageTitle: pageTitleKey | translateToEnglish }) }}
|
|
158
|
+
{# {{ frontendAnalyticsGa4OnPageLoad({
|
|
155
159
|
nonce: cspNonce,
|
|
156
160
|
dynamic: isPageDynamic,
|
|
157
|
-
englishPageTitle: pageTitleKey | translateToEnglish }) }}
|
|
161
|
+
englishPageTitle: pageTitleKey | translateToEnglish }) }} #}
|
|
158
162
|
|
|
159
163
|
{% endblock %}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@govuk-one-login/frontend-ui",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/cjs/backend/index.cjs",
|
|
6
6
|
"module": "build/esm/backend/index.js",
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"types": "./build/esm/backend/index.d.ts",
|
|
58
58
|
"optionalDependencies": {
|
|
59
59
|
"hmpo-components": "^7.1.0",
|
|
60
|
-
"@govuk-one-login/frontend-analytics": "^4.0.
|
|
60
|
+
"@govuk-one-login/frontend-analytics": "^4.0.1"
|
|
61
61
|
}
|
|
62
62
|
}
|