()
| 4 | |
| 5 | |
| 6 | function MyPageViewLogger() { |
| 7 | const analytics = useAnalytics() |
| 8 | |
| 9 | React.useEffect(() => { |
| 10 | logEvent(analytics, 'page_view', { page_location: location.href }); |
| 11 | }, [location.href]) |
| 12 | |
| 13 | return null |
| 14 | } |
| 15 | |
| 16 | export function Analytics() { |
| 17 | const app = useFirebaseApp(); |
nothing calls this directly
no test coverage detected