feat: updated google analytics
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
import Script from "next/script";
|
import Script from "next/script";
|
||||||
|
|
||||||
const GA_ID = process.env.NEXT_PUBLIC_GA_ID;
|
const DEFAULT_GA_ID = "G-TJBKHZLR7J";
|
||||||
|
const GA_ID = process.env.NEXT_PUBLIC_GA_ID?.trim() || DEFAULT_GA_ID;
|
||||||
|
|
||||||
export function GoogleAnalytics() {
|
export function GoogleAnalytics() {
|
||||||
if (!GA_ID) return null;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Script
|
<Script
|
||||||
|
|||||||
Reference in New Issue
Block a user