File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { v4 as uuidv4 } from "uuid";
66import StreamingChatArea from "@/components/chat/StreamingChatArea" ;
77import { useApp } from "@/contexts/AppContext" ;
88import { useAuth } from "@/contexts/UnifiedAuthProvider" ;
9+ import { captureAndStoreUTMParameters } from "@/utils/utmTracking" ;
910
1011export default function HomePage ( ) {
1112 const [ loading , setLoading ] = useState ( true ) ;
@@ -14,6 +15,14 @@ export default function HomePage() {
1415 const { selectedPersona } = useApp ( ) ;
1516 const { user } = useAuth ( ) ;
1617
18+ // Capture UTM parameters when landing on app page (e.g., from email confirmation)
19+ useEffect ( ( ) => {
20+ const utmParams = captureAndStoreUTMParameters ( ) ;
21+ if ( Object . keys ( utmParams ) . length > 0 ) {
22+ console . log ( "UTM parameters captured on app page:" , utmParams ) ;
23+ }
24+ } , [ ] ) ;
25+
1726 useEffect ( ( ) => {
1827 if ( ! user ?. isAuthenticated || ! user ?. id ) {
1928 setLoading ( false ) ;
You can’t perform that action at this time.
0 commit comments