mirror of
https://github.com/severian-dev/sucker.severian.dev.git
synced 2025-10-27 20:25:47 +00:00
google analytics
This commit is contained in:
@@ -31,6 +31,7 @@ import {
|
|||||||
Collapsible,
|
Collapsible,
|
||||||
CollapsibleTrigger,
|
CollapsibleTrigger,
|
||||||
} from "@/components/ui/collapsible";
|
} from "@/components/ui/collapsible";
|
||||||
|
import Script from "next/script";
|
||||||
|
|
||||||
interface CardDataV2 {
|
interface CardDataV2 {
|
||||||
name: string;
|
name: string;
|
||||||
@@ -320,6 +321,13 @@ export default function Home() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="min-h-screen bg-background text-foreground">
|
<main className="min-h-screen bg-background text-foreground">
|
||||||
|
<Script src="https://www.googletagmanager.com/gtag/js?id=G-YVD6QFSR71" strategy="afterInteractive" />
|
||||||
|
<Script id="gtag-init" strategy="afterInteractive">
|
||||||
|
{`window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
gtag('config', 'G-YVD6QFSR71');`}
|
||||||
|
</Script>
|
||||||
<div className="container mx-auto px-4 py-8">
|
<div className="container mx-auto px-4 py-8">
|
||||||
<div className="flex justify-between items-center mb-4">
|
<div className="flex justify-between items-center mb-4">
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user