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 9a00c0d
Showing 1 changed file with 2 additions and 2 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

0 comments on commit 9a00c0d

Please sign in to comment.