govuk_publishing_components 34.4.0 → 34.4.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46eb0c57654df81f9449b23710fd6373f928fa85385572cf6d6fe1f1c74b45dc
|
4
|
+
data.tar.gz: 5eeb41e690030e82f1733d7591c434a779ccd967631c8bcf90eb72d277d52d35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47d3ec0bc04cc6203f20dbac2e79bd51e2d8e88cc192198838441f128b5d27bcbf4444f763f522df3b0a251643cd1091545a179cc6d250307590590024cfe3f2
|
7
|
+
data.tar.gz: 411ffd5781bffd1c60faf5fa2f1e692ded901091c9a7424f17198f940c000c19ada2f3e28b1ea591274d1658c8ebe82a622dddca01a419635520e0749dddf41d
|
@@ -1,5 +1,6 @@
|
|
1
1
|
window.GOVUK = window.GOVUK || {}
|
2
|
-
window.GOVUK.Modules = window.GOVUK.Modules || {}
|
2
|
+
window.GOVUK.Modules = window.GOVUK.Modules || {}
|
3
|
+
window.GOVUK.analyticsVars = window.GOVUK.analyticsVars || {};
|
3
4
|
|
4
5
|
(function (Modules) {
|
5
6
|
function AutoScrollTracker ($module) {
|
@@ -5,14 +5,18 @@
|
|
5
5
|
// = require ./modules.js
|
6
6
|
|
7
7
|
document.addEventListener('DOMContentLoaded', function () {
|
8
|
-
window.GOVUK.
|
8
|
+
window.GOVUK.analyticsGa4 = window.GOVUK.analyticsGa4 || {}
|
9
|
+
window.GOVUK.analyticsVars = window.GOVUK.analyticsVars || {}
|
9
10
|
|
10
11
|
// if statements ensure these functions don't execute during testing
|
11
|
-
if (typeof window.GOVUK.
|
12
|
-
window.GOVUK.
|
12
|
+
if (typeof window.GOVUK.loadAnalytics !== 'undefined') {
|
13
|
+
if (typeof window.GOVUK.analyticsGa4.vars === 'undefined') {
|
14
|
+
window.GOVUK.loadAnalytics.loadGa4()
|
15
|
+
}
|
16
|
+
if (typeof window.GOVUK.analyticsVars.gaProperty === 'undefined') {
|
17
|
+
window.GOVUK.loadAnalytics.loadUa()
|
18
|
+
}
|
13
19
|
}
|
14
20
|
|
15
|
-
|
16
|
-
window.GOVUK.loadAnalytics.loadUa()
|
17
|
-
}
|
21
|
+
window.GOVUK.modules.start()
|
18
22
|
})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_publishing_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 34.4.
|
4
|
+
version: 34.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|