Files
real-time-fund/app/layout.jsx
2026-02-03 08:06:23 +08:00

36 lines
1019 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import Script from 'next/script';
import './globals.css';
export const metadata = {
title: '基估宝',
description: '输入基金编号添加基金实时显示估值与前10重仓'
};
export default function RootLayout({ children }) {
const GA_ID = 'G-PD2JWJHVEM'; // 请在此处替换您的 Google Analytics ID
return (
<html lang="zh-CN">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
{/* Google Analytics */}
<Script
src={`https://www.googletagmanager.com/gtag/js?id=${GA_ID}`}
strategy="afterInteractive"
/>
<Script id="google-analytics" strategy="afterInteractive">
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${GA_ID}');
`}
</Script>
</head>
<body>
{children}
</body>
</html>
);
}