mirror of
https://github.com/uetchy/namae.git
synced 2025-03-18 04:50:32 +09:00
14 lines
249 B
JavaScript
14 lines
249 B
JavaScript
|
import { useEffect } from 'react'
|
||
|
import ReactGA from 'react-ga'
|
||
|
|
||
|
export function EventReporter({ query }) {
|
||
|
useEffect(() => {
|
||
|
ReactGA.event({
|
||
|
category: 'Navigation',
|
||
|
action: 'Send a request',
|
||
|
})
|
||
|
}, [query])
|
||
|
|
||
|
return null
|
||
|
}
|