govuk_publishing_components 31.0.0 → 31.1.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: 8ce979400ac37e8bffd5eb9c1d751bde2eee271c3330ed8188ab34cbb3c5bbb0
4
- data.tar.gz: 77cf3bfa31ee119a705406a6d55a18463b532154033f367409f20161b23ea62a
3
+ metadata.gz: d8f89b321d55b2623a30beb4b0f53a54a6b5174bbcc1ba7f4e15097fbaf0e4b0
4
+ data.tar.gz: db8e005e0bf1068eededf53799905388fe09ea2ca8bb0c5fe62de95e8347e3de
5
5
  SHA512:
6
- metadata.gz: 27c7baa3ca76b555d6ea9c861e4b3b9d9e72ef3e78492291ed51dc0046bee589f6665866e2a9a7cd69fb7f9c16f220a7b0b1836e3d3c4aaa27818e8f1e7e33e0
7
- data.tar.gz: 3b2e79bfe6a49a7b7caf0166a0db70536837903b69aa818a4933d04d9c29b741ca622a732010c04bffce7c41702f4829bff61b9e045276937e12b53aa9ca14d2
6
+ metadata.gz: 29904c326d8df2559116c9adfaaed028ff593a371585a04c1409067b7d21221a937bdace0ab8904b421e744fdc2cd12dcefda6428b370c98dcd3defe7da0b03e
7
+ data.tar.gz: 016de6ad1910ffa3563760f7dc8dd79102b4258bf7c56f0f1f72da4815925753252e7b3682e23e4b40942f9f3ca5536e3aeea7afc2fa8f070f8d913bd4bcf5ce
@@ -11,6 +11,8 @@
11
11
 
12
12
  init: function (isNewPageLoad) {
13
13
  if (window.dataLayer) {
14
+ /* The data-ga4-ecommerce attribute may be present on several DOM elements e.g. search results and spelling
15
+ suggestions, hence why document.querySelectorAll is required */
14
16
  this.searchResultsBlocks = document.querySelectorAll('[data-ga4-ecommerce]')
15
17
  this.isNewPageLoad = isNewPageLoad
16
18