@griddo/cx 1.74.19 → 1.74.20

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.
package/gatsby-node.js CHANGED
@@ -30,6 +30,7 @@ let updatedSites;
30
30
  let createdPages = [];
31
31
  let buildProcessData = {};
32
32
  const componentsVersion = getComponentsVersion();
33
+
33
34
  const renderId = process.env.RENDERID || new Date().valueOf();
34
35
 
35
36
  // -----------------------------------------------------------------------------
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/cx",
3
3
  "description": "Griddo SSG based on Gatsby",
4
- "version": "1.74.19",
4
+ "version": "1.74.20",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -65,7 +65,7 @@
65
65
  "react-helmet": "^6.0.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@griddo/eslint-config-back": "^1.74.19",
68
+ "@griddo/eslint-config-back": "^1.74.20",
69
69
  "eslint": "^7.5.0",
70
70
  "eslint-plugin-node": "^11.1.0",
71
71
  "eslint-plugin-react": "7.14.3",
@@ -97,5 +97,5 @@
97
97
  "publishConfig": {
98
98
  "access": "public"
99
99
  },
100
- "gitHead": "404937904e9a41b05f15e0a4ef2a33c00a94ff28"
100
+ "gitHead": "f3f8927174aa35a0cfb99b25a096efd3065a7442"
101
101
  }
@@ -104,6 +104,12 @@ export default function SEO(props) {
104
104
  {/* Lang */}
105
105
  <html lang={locale} />
106
106
 
107
+ {/* Data Layer */}
108
+ {/* Solo cuando se ejecuta en el navegador */}
109
+ {typeof window !== 'undefined' && analyticsDimensions && (
110
+ <script>{`const {__HIDDEN, ...newDataLayer} = ${analyticsDimensions};newDataLayer && window.dataLayer && window.dataLayer.push(newDataLayer);`}</script>
111
+ )}
112
+
107
113
  {/* Analytics with UA- */}
108
114
  {analyticsSrc && <script src={analyticsSrc}></script>}
109
115
 
@@ -113,12 +119,6 @@ export default function SEO(props) {
113
119
  {analyticsScriptCode}
114
120
  </script>
115
121
  )}
116
-
117
- {/* Data Layer */}
118
- {/* Solo cuando se ejecuta en el navegador */}
119
- {typeof window !== 'undefined' && analyticsDimensions && (
120
- <script>{`const {__HIDDEN, ...newDataLayer} = ${analyticsDimensions};newDataLayer && window.dataLayer && window.dataLayer.push(newDataLayer);`}</script>
121
- )}
122
122
  </Helmet>
123
123
  </>
124
124
  );