Skip to content

Commit

Permalink
Merge pull request #70 from aravind-manoj/main
Browse files Browse the repository at this point in the history
Added gtag
  • Loading branch information
aravind-manoj authored Feb 9, 2025
2 parents 792f446 + e786ec0 commit 88f02b9
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ import type { Metadata } from "next";

import { Inter } from "next/font/google";

import Script from "next/script";

// import { TRPCReactProvider } from "@/trpc/react";

const inter = Inter({
subsets: ["latin"],
variable: "--font-sans",
});

export const metadata:Metadata = {
export const metadata: Metadata = {
title: "the nexus project",
description: "We support free and open source software and hardware <3",
icons: [{ rel: "icon", url: "/favicon.ico" }],
Expand All @@ -25,7 +27,18 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<body className={`font-grotesk ${inter.variable} bg-black text-white`}>
<head>
<Script async src="https://www.googletagmanager.com/gtag/js?id=G-ZES115JGTB"></Script>
<Script>
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-ZES115JGTB');
`}
</Script>
</head>
<body className={`font-grotesk ${inter.variable} bg-black text-white`}>
{/* <TRPCReactProvider> */}
{children}
{/* </TRPCReactProvider> */}
Expand Down

0 comments on commit 88f02b9

Please sign in to comment.