govuk_publishing_components 34.4.0 → 34.4.1

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: 2f2ee7abdd80e27a4dde6873f8242bc48780430becffdc8f34a57b90746807ea
4
- data.tar.gz: 78ea4284a765350807dfa91da53a52f8a28a7d81ec348877d9efec97f5cb4588
3
+ metadata.gz: 0d63109c1078fd71c2a1cd25da18616f1209fa78ce12fe896b201113f7c054f0
4
+ data.tar.gz: 29f71838f9ddaaf85f77d9968b3c2df7724453df3c7d8e36c35c69c66417bc45
5
5
  SHA512:
6
- metadata.gz: 201e4229a22f1717f9d84a8049f90a734d083ccc8cc306474495bc2983818cad0baff6fc45ac20469d0e6ef1b486f9b9b901ca2d618e65270d24a885aabef4e4
7
- data.tar.gz: aa1b6e36f56bc1f34d56e1631d2b2c9a63c88d8b50b5a6ee457098b09015996a67a48684a58c6b569157dc5dbb460160c2274f068cd844948d98931fbd043f5e
6
+ metadata.gz: 69da39ed74e321310cb7f4ac557fe3894e93f94a3d86709143540537d69f25822bea82f2c5d13dc792f72b1690592bbf974be4f306d4ee3cf8017b36378034d5
7
+ data.tar.gz: de2fae5d728300c3be7c19528206e4c92eb8aefda3882672e3c76cd4f75b3c696897a08160a23ecc339a8d05ee7b8a854e146530466091f6478992da38da4eed
@@ -8,11 +8,13 @@ document.addEventListener('DOMContentLoaded', function () {
8
8
  window.GOVUK.modules.start()
9
9
 
10
10
  // if statements ensure these functions don't execute during testing
11
- if (typeof window.GOVUK.analyticsGa4.vars === 'undefined') {
12
- window.GOVUK.loadAnalytics.loadGa4()
13
- }
14
-
15
- if (typeof window.GOVUK.analyticsInit === 'undefined') {
16
- window.GOVUK.loadAnalytics.loadUa()
11
+ if (typeof window.GOVUK.loadAnalytics !== 'undefined') {
12
+ window.GOVUK.analyticsGa4 = window.GOVUK.analyticsGa4 || {}
13
+ if (typeof window.GOVUK.analyticsGa4.vars === 'undefined') {
14
+ window.GOVUK.loadAnalytics.loadGa4()
15
+ }
16
+ if (typeof window.GOVUK.analyticsVars === 'undefined') {
17
+ window.GOVUK.loadAnalytics.loadUa()
18
+ }
17
19
  }
18
20
  })
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "34.4.0".freeze
2
+ VERSION = "34.4.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 34.4.0
4
+ version: 34.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev