feat: full site build — Project/Melody schema (Option A), admin CRUD, public sections, uploads, email+SMTP, internal analytics, legal pages, docs
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect } from "react";
|
||||
import { trackClientEvent } from "@/lib/analytics-client";
|
||||
|
||||
type AnalyticsTrackerProps = {
|
||||
event: "PAGE_VIEW" | "PROJECT_OPEN";
|
||||
entityId?: string;
|
||||
};
|
||||
|
||||
export default function AnalyticsTracker({ event, entityId }: AnalyticsTrackerProps) {
|
||||
useEffect(() => {
|
||||
trackClientEvent({ type: event, entityId });
|
||||
}, [event, entityId]);
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user