Skip to content

Commit aaa4364

Browse files
committed
docs: Disable GTM on dev
1 parent 71663df commit aaa4364

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/theme.config.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const repo = "https://github.com/cube-js/cube";
1515
const branch = "master";
1616
const path = "/docs/";
1717

18+
const isProduction = process.env.NODE_ENV !== 'development'
19+
1820
const GoogleTagManager = () => (
1921
<>
2022
<script dangerouslySetInnerHTML={{ __html: `
@@ -46,7 +48,7 @@ const config: DocsThemeConfig = {
4648
head: (
4749
<>
4850
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
49-
<GoogleTagManager />
51+
{isProduction && <GoogleTagManager />}
5052
</>
5153
),
5254
useNextSeoProps: () => {

0 commit comments

Comments
 (0)