update DEV_MODE condition for Google Tag Manager and Google Analytics rendering
This commit is contained in:
+2
-2
@@ -67,7 +67,7 @@ export default function RootLayout({ children }) {
|
||||
/>
|
||||
</head>
|
||||
<ThemeRegistry>
|
||||
{process.env.NODE_ENV !== 'development' && (
|
||||
{process.env.DEV_MODE === 'FALSE' && (
|
||||
<GoogleTagManager gtmId="GTM-NXBSV7GS" />
|
||||
)}
|
||||
<body className="bg-[#FAFAFA]">
|
||||
@@ -76,7 +76,7 @@ export default function RootLayout({ children }) {
|
||||
</ProvinceProvider>
|
||||
<CustomToastify />
|
||||
</body>
|
||||
{process.env.NODE_ENV !== 'development' && (
|
||||
{process.env.DEV_MODE === 'FALSE' && (
|
||||
<GoogleAnalytics gaId="G-HG3RZ1PJS5" />
|
||||
)}
|
||||
</ThemeRegistry>
|
||||
|
||||
Reference in New Issue
Block a user