Skip to content

Commit

Permalink
feat: add GTM
Browse files Browse the repository at this point in the history
  • Loading branch information
HACO8888 committed Jun 23, 2024
1 parent fca1508 commit f953ceb
Show file tree
Hide file tree
Showing 3 changed files with 479 additions and 370 deletions.
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Third-Party Package
import React from "react";
import type { Viewport } from "next";
import { GoogleTagManager } from "@next/third-parties/google";

// Providers
import { Providers } from "./providers";
Expand Down Expand Up @@ -28,6 +29,7 @@ export default function RootLayout({
data-website-id="e034897b-bce7-4a20-b5e8-4c98ef67e30d"
></Script>
<html lang="en">
<GoogleTagManager gtmId="GTM-NGM7R8S8" />
<body>
<Providers>
<Device>
Expand Down
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"lint": "next lint"
},
"dependencies": {
"@tanstack/react-query": "^5.39.0",
"@next/third-parties": "^14.2.4",
"@tanstack/react-query": "^5.45.1",
"@types/node": "20.12.12",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
Expand All @@ -21,28 +22,28 @@
"eslint": "8.57.0",
"eslint-config-next": "14.2.3",
"jwt-decode": "^4.0.0",
"md-editor-rt": "^4.15.5",
"next": "^14.2.3",
"md-editor-rt": "^4.17.0",
"next": "^14.2.4",
"next-auth": "^4.24.7",
"postcss": "8.4.38",
"react": "18.3.1",
"react-chartjs-2": "^5.2.0",
"react-cookie": "^7.1.4",
"react-dom": "18.3.1",
"react-linkify": "1.0.0-alpha",
"react-tooltip": "^5.26.4",
"react-tooltip": "^5.27.0",
"sharp": "^0.33.4",
"sweetalert2": "^11.11.0",
"sweetalert2": "^11.12.0",
"swr": "^2.2.5",
"tailwindcss": "3.4.3",
"typescript": "5.4.5",
"usehooks-ts": "^3.1.0"
},
"devDependencies": {
"@next/eslint-plugin-next": "^14.2.3",
"@next/eslint-plugin-next": "^14.2.4",
"@types/react-linkify": "^1.0.4",
"mini-css-extract-plugin": "^2.9.0",
"postcss-import": "^16.1.0",
"sass": "^1.77.2"
"sass": "^1.77.6"
}
}
Loading

0 comments on commit f953ceb

Please sign in to comment.