Skip to content

Commit

Permalink
feat: google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
arrocke committed Nov 7, 2024
1 parent 61a107c commit 4545572
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 107 deletions.
4 changes: 2 additions & 2 deletions app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ import type { Metadata } from "next";
import { config } from '@fortawesome/fontawesome-svg-core'
import { NextIntlClientProvider, useMessages } from "next-intl";
import { getTranslations } from "next-intl/server";

import { GoogleAnalytics } from '@next/third-parties/google'
import '@fortawesome/fontawesome-svg-core/styles.css'
import "../globals.css";
import { headFontClass } from "../fonts";
import languages from "../../languages.json";
import { FlashProvider } from "../flash";
import Script from "next/script";
import ChatBubble from "./ChatBubble";

export async function generateMetadata(): Promise<Metadata> {
Expand Down Expand Up @@ -51,6 +50,7 @@ export default function RootLayout({
</FlashProvider>
</NextIntlClientProvider>
<ChatBubble placement={language.dir === 'rtl' ? 'bl' : 'br'} />
<GoogleAnalytics gaId="G-0SEF50D4GK" />
</body>
</html>
);
Expand Down
228 changes: 123 additions & 105 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 @@ -13,6 +13,7 @@
"@google-cloud/translate": "8.5.0",
"@gracious.tech/fetch-client": "0.8.9",
"@next/env": "14.2.12",
"@next/third-parties": "^15.0.3",
"aws-lambda": "^1.0.7",
"fuzzysort": "3.0.2",
"install": "0.13.0",
Expand Down

0 comments on commit 4545572

Please sign in to comment.