@griddo/cx 1.75.35 → 1.75.37

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/cx",
3
3
  "description": "Griddo SSG based on Gatsby",
4
- "version": "1.75.35",
4
+ "version": "1.75.37",
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.35",
68
+ "@griddo/eslint-config-back": "^1.75.37",
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": "b07f3c7a091191e2bcc82ff31bb034456d68f4d0"
100
+ "gitHead": "41e8c3e94e959bdf33b22b44523533673d1a59f2"
101
101
  }
@@ -33,9 +33,8 @@ export const Head = data => {
33
33
  openGraph,
34
34
  componentsVersion,
35
35
  griddoVersion,
36
- page: {
37
- fullUrl,
38
- },
36
+ siteScript: siteScriptBulk,
37
+ page: { dimensions, fullUrl },
39
38
  },
40
39
  } = data;
41
40
 
@@ -47,10 +46,8 @@ export const Head = data => {
47
46
  !!metaRobots &&
48
47
  (siteOptions?.showBasicMetaRobots || metaRobots !== 'index,follow');
49
48
 
50
- const { analyticsScript, analyticsDimensions } = composeAnalytics(
51
- data,
52
- generateAutomaticDimensions
53
- );
49
+ const analyticsScript = siteScriptBulk ? siteScriptBulk.trim() : '';
50
+ const analyticsDimensions = dimensions?.values || null;
54
51
 
55
52
  const emptyCodeScript = { props: { dangerouslySetInnerHTML: {} } };
56
53
 
@@ -101,6 +98,8 @@ export const Head = data => {
101
98
  pageMetadata?.index === 'index' &&
102
99
  cleanPageLanguages.length > 1;
103
100
 
101
+ const currentTime = new Date().toString();
102
+
104
103
  return (
105
104
  <>
106
105
  {!!pageMetadata?.title && <title>{pageMetadata?.title}</title>}
@@ -177,7 +176,7 @@ export const Head = data => {
177
176
  {!siteOptions?.avoidDebugMetas && (
178
177
  <meta
179
178
  property="debug"
180
- content={`Components v${componentsVersion} by Griddo v${griddoVersion} @ ${new Date()}`}
179
+ content={`Components v${componentsVersion} by Griddo v${griddoVersion} @ ${currentTime}}`}
181
180
  />
182
181
  )}
183
182
 
@@ -231,7 +230,7 @@ export default data => {
231
230
  generateAutomaticDimensions
232
231
  );
233
232
 
234
- if (!content.dimensions) content.dimensions = [];
233
+ if (!content.dimensions) content.dimensions = {};
235
234
  content.dimensions.values = analyticsDimensions;
236
235
 
237
236
  return (
@@ -273,4 +272,4 @@ export default data => {
273
272
  />
274
273
  </SiteProvider>
275
274
  );
276
- };
275
+ };