- Adicionado estrutura completa do projeto - Configurado MCP server para Premiere Pro - Adicionado documentação e skills - Configurado Gitignore para o projeto
23 lines
650 B
TypeScript
Executable File
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
|
|
}
|