Files
jhonny-editor/code/landing/components/analytics/marketing-page-view.tsx
T
João Henrique b541f502ba feat: initial commit - Jhonny Editor
- Adicionado estrutura completa do projeto
- Configurado MCP server para Premiere Pro
- Adicionado documentação e skills
- Configurado Gitignore para o projeto
2026-09-08 09:59:31 -04:00

23 lines
650 B
TypeScript
Executable File

"use client"
import { useEffect, useRef } from "react"
import { usePathname } from "next/navigation"
import { trackOnboardingEvent } from "@/lib/onboarding-events"
/**
* Records bounded, anonymous page views for acquisition measurement. It sends
* no prompt, project, media, identity, or file-path data and respects DNT/GPC.
*/
export function MarketingPageView() {
const pathname = usePathname()
const lastTrackedPath = useRef<string | null>(null)
useEffect(() => {
if (lastTrackedPath.current === pathname) return
lastTrackedPath.current = pathname
trackOnboardingEvent("marketing_viewed")
}, [pathname])
return null
}