add tag manager

This commit is contained in:
drupaldev143
2024-12-21 14:23:14 +03:30
parent 5bc5c33683
commit 00f9e9abb7
+3 -1
View File
@@ -2,7 +2,8 @@ import "./globals.css";
import ThemeRegistry from "./component/ThemeRegistry"; import ThemeRegistry from "./component/ThemeRegistry";
import "jalaali-react-date-picker/lib/styles/index.css"; import "jalaali-react-date-picker/lib/styles/index.css";
import { Providers } from "./Providers"; import { Providers } from "./Providers";
import { GoogleAnalytics } from '@next/third-parties/google' import { GoogleAnalytics } from "@next/third-parties/google";
import { GoogleTagManager } from "@next/third-parties/google";
// Toastify // Toastify
import "react-toastify/dist/ReactToastify.css"; import "react-toastify/dist/ReactToastify.css";
@@ -25,6 +26,7 @@ export default function RootLayout({ children }) {
content="width=device-width,initial-scale=1,maximum-scale=1" content="width=device-width,initial-scale=1,maximum-scale=1"
/> />
<ThemeRegistry> <ThemeRegistry>
<GoogleTagManager gtmId="GTM-NXBSV7GS" />
<body className="bg-[#FAFAFA]"> <body className="bg-[#FAFAFA]">
<Providers>{children}</Providers> <Providers>{children}</Providers>
<CustomToastify /> <CustomToastify />