We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71663df commit aaa4364Copy full SHA for aaa4364
docs/theme.config.tsx
@@ -15,6 +15,8 @@ const repo = "https://github.com/cube-js/cube";
15
const branch = "master";
16
const path = "/docs/";
17
18
+const isProduction = process.env.NODE_ENV !== 'development'
19
+
20
const GoogleTagManager = () => (
21
<>
22
<script dangerouslySetInnerHTML={{ __html: `
@@ -46,7 +48,7 @@ const config: DocsThemeConfig = {
46
48
head: (
47
49
50
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <GoogleTagManager />
51
+ {isProduction && <GoogleTagManager />}
52
</>
53
),
54
useNextSeoProps: () => {
0 commit comments