Skip to content

Commit

Permalink
Merge pull request #109 from eduardconstantin/feat/update-ga
Browse files Browse the repository at this point in the history
Replace ga
  • Loading branch information
eduardconstantin committed Mar 11, 2024
2 parents f1e3642 + aaab10c commit 818638d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
14 changes: 8 additions & 6 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { type ReactNode } from "react";
import { type Metadata } from "next";
import TopNav from "@azure-fundamentals/components/TopNav";
import Footer from "../components/Footer";
import { ReactNode } from "react";
import { Metadata } from "next";
import "styles/globals.css";
import Script from "next/script";
import ApolloProvider from "@azure-fundamentals/components/ApolloProvider";
import { GoogleAnalytics, GoogleTagManager } from "@next/third-parties/google";
import "styles/globals.css";

export const metadata: Metadata = {
metadataBase: new URL("http://localhost:3000"),
Expand All @@ -30,7 +30,9 @@ export default function RootLayout({ children }: RootLayoutProps) {
{children}
<Footer />
</main>
<Script
<GoogleTagManager gtmId={GA_TRACKING_ID!} />
<GoogleAnalytics gaId={GA_TRACKING_ID!} />
{/*<Script
src={
"https://www.googletagmanager.com/gtag/js?id=" + GA_TRACKING_ID
}
Expand All @@ -45,7 +47,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
page_path: window.location.pathname,
});
`}
</Script>
</Script>*/}
</ApolloProvider>
</body>
</html>
Expand Down
18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@apollo/client": "^3.7.9",
"@as-integrations/next": "^3.0.0",
"@azure/cosmos": "^3.17.2",
"@next/third-parties": "^14.1.3",
"@types/node": "18.13.0",
"@types/react": "^18.2.42",
"@types/react-dom": "^18.2.17",
Expand Down

0 comments on commit 818638d

Please sign in to comment.