mirror of
https://github.com/Dokploy/website
synced 2025-06-26 18:16:01 +00:00
18 lines
291 B
TypeScript
18 lines
291 B
TypeScript
"use client";
|
|
|
|
import { useEffect } from "react";
|
|
import initializeGA from ".";
|
|
|
|
export default function GoogleAnalytics() {
|
|
useEffect(() => {
|
|
// @ts-ignore
|
|
if (!window.GA_INITIALIZED) {
|
|
initializeGA();
|
|
// @ts-ignore
|
|
window.GA_INITIALIZED = true;
|
|
}
|
|
}, []);
|
|
|
|
return null;
|
|
}
|