@griddo/cx 1.75.57 → 1.75.58
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/package.json +3 -3
- package/src/components/template.js +5 -12
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.75.
|
|
4
|
+
"version": "1.75.58",
|
|
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.75.
|
|
68
|
+
"@griddo/eslint-config-back": "^1.75.58",
|
|
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": "
|
|
100
|
+
"gitHead": "52459e56d00b3072ca5e3bde6635750f0afa85f5"
|
|
101
101
|
}
|
|
@@ -44,8 +44,10 @@ export const Head = data => {
|
|
|
44
44
|
!!metaRobots &&
|
|
45
45
|
(siteOptions?.showBasicMetaRobots || metaRobots !== 'index,follow');
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
const { analyticsScript, analyticsDimensions } = composeAnalytics(
|
|
48
|
+
data,
|
|
49
|
+
generateAutomaticDimensions
|
|
50
|
+
);
|
|
49
51
|
|
|
50
52
|
const emptyCodeScript = { props: { dangerouslySetInnerHTML: {} } };
|
|
51
53
|
|
|
@@ -180,9 +182,8 @@ export const Head = data => {
|
|
|
180
182
|
)}
|
|
181
183
|
|
|
182
184
|
{/* Data Layer */}
|
|
183
|
-
{/* Solo cuando se ejecuta en el navegador */}
|
|
184
185
|
<script>{`window.dataLayer = window.dataLayer || [];`}</script>
|
|
185
|
-
{
|
|
186
|
+
{analyticsDimensions && (
|
|
186
187
|
<script>{`const {__HIDDEN, ...newDataLayer} = ${analyticsDimensions};newDataLayer && window.dataLayer && window.dataLayer.push(newDataLayer);`}</script>
|
|
187
188
|
)}
|
|
188
189
|
|
|
@@ -224,14 +225,6 @@ export default data => {
|
|
|
224
225
|
|
|
225
226
|
const mappedTheme = theme || 'default-theme';
|
|
226
227
|
|
|
227
|
-
const { analyticsDimensions } = composeAnalytics(
|
|
228
|
-
data,
|
|
229
|
-
generateAutomaticDimensions
|
|
230
|
-
);
|
|
231
|
-
|
|
232
|
-
if (!content.dimensions) content.dimensions = {};
|
|
233
|
-
content.dimensions.values = analyticsDimensions;
|
|
234
|
-
|
|
235
228
|
return (
|
|
236
229
|
<SiteProvider
|
|
237
230
|
theme={mappedTheme}
|