feat: add VPS panel analytics script
This commit is contained in:
@@ -3,6 +3,7 @@ import { Plus_Jakarta_Sans, JetBrains_Mono } from "next/font/google";
|
|||||||
import { NextIntlClientProvider } from 'next-intl';
|
import { NextIntlClientProvider } from 'next-intl';
|
||||||
import { getMessages, setRequestLocale } from 'next-intl/server';
|
import { getMessages, setRequestLocale } from 'next-intl/server';
|
||||||
import { notFound } from 'next/navigation';
|
import { notFound } from 'next/navigation';
|
||||||
|
import Script from 'next/script';
|
||||||
import { routing } from '@/i18n/routing';
|
import { routing } from '@/i18n/routing';
|
||||||
import { Navbar } from '@/components/Navbar';
|
import { Navbar } from '@/components/Navbar';
|
||||||
import { Footer } from '@/components/Footer';
|
import { Footer } from '@/components/Footer';
|
||||||
@@ -126,6 +127,12 @@ export default async function RootLayout({
|
|||||||
]),
|
]),
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
<Script
|
||||||
|
defer
|
||||||
|
src="https://panel.ayris.tech/api/analytics/script"
|
||||||
|
data-domain="ayrisai.xyz"
|
||||||
|
strategy="afterInteractive"
|
||||||
|
/>
|
||||||
<NextIntlClientProvider messages={messages}>
|
<NextIntlClientProvider messages={messages}>
|
||||||
<Navbar locale={locale} />
|
<Navbar locale={locale} />
|
||||||
<main className="flex-1 flex flex-col">
|
<main className="flex-1 flex flex-col">
|
||||||
|
|||||||
Reference in New Issue
Block a user