g tag update
This commit is contained in:
parent
2cf4fe57f7
commit
961758847d
@ -1,6 +1,7 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Cinzel, Montserrat } from "next/font/google";
|
||||
import Script from "next/script";
|
||||
import ScrollToTop from "@/components/ScrollToTop";
|
||||
import "./globals.css";
|
||||
|
||||
const cinzel = Cinzel({
|
||||
@ -18,8 +19,16 @@ const montserrat = Montserrat({
|
||||
export const metadata: Metadata = {
|
||||
metadataBase: new URL("https://mydosaplace.ca"),
|
||||
title: "Best Dosa & South Indian Restaurant in Waterloo | My Dosa Place",
|
||||
description: "My Dosa Place is Waterloo's 100% pure vegetarian South Indian restaurant ,authentic masala dosa, thali & filter coffee. Dine in, takeout or catering.",
|
||||
keywords: ["My Dosa Place", "Waterloo South Indian Restaurant", "Pure Vegetarian Indian", "Waterloo Dosa", "Traditional Indian Feast", "Waterloo Dining"],
|
||||
description:
|
||||
"My Dosa Place is Waterloo's 100% pure vegetarian South Indian restaurant, authentic masala dosa, thali & filter coffee. Dine in, takeout or catering.",
|
||||
keywords: [
|
||||
"My Dosa Place",
|
||||
"Waterloo South Indian Restaurant",
|
||||
"Pure Vegetarian Indian",
|
||||
"Waterloo Dosa",
|
||||
"Traditional Indian Feast",
|
||||
"Waterloo Dining",
|
||||
],
|
||||
authors: [{ name: "My Dosa Place" }],
|
||||
alternates: {
|
||||
canonical: "/",
|
||||
@ -29,14 +38,16 @@ export const metadata: Metadata = {
|
||||
follow: true,
|
||||
},
|
||||
openGraph: {
|
||||
type: "website",
|
||||
url: "https://mydosaplace.ca",
|
||||
siteName: "My Dosa Place",
|
||||
title: "Best Dosa & South Indian Restaurant in Waterloo | My Dosa Place",
|
||||
description: "My Dosa Place is Waterloo's 100% pure vegetarian South Indian restaurant ,authentic masala dosa, thali & filter coffee. Dine in, takeout or catering.",
|
||||
description:
|
||||
"My Dosa Place is Waterloo's 100% pure vegetarian South Indian restaurant, authentic masala dosa, thali & filter coffee. Dine in, takeout or catering.",
|
||||
images: ["/images/chettinad_exterior.png"],
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
import ScrollToTop from "@/components/ScrollToTop";
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
@ -47,27 +58,25 @@ export default function RootLayout({
|
||||
lang="en"
|
||||
className={`${cinzel.variable} ${montserrat.variable} h-full antialiased`}
|
||||
>
|
||||
<head>
|
||||
<head />
|
||||
<body className="min-h-full bg-darkbg text-foreground">
|
||||
{children}
|
||||
<ScrollToTop />
|
||||
|
||||
{/* Google Analytics */}
|
||||
<Script
|
||||
async
|
||||
strategy="afterInteractive"
|
||||
src="https://www.googletagmanager.com/gtag/js?id=G-MZHFDXF8QP"
|
||||
/>
|
||||
|
||||
<Script id="google-analytics">
|
||||
<Script id="google-analytics" strategy="afterInteractive">
|
||||
{`
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-MZHFDXF8QP');
|
||||
`}
|
||||
</Script>
|
||||
</head>
|
||||
<body className="min-h-full bg-darkbg text-foreground">
|
||||
{children}
|
||||
<ScrollToTop />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user