1
0
mirror of https://github.com/uetchy/namae.git synced 2025-08-20 18:08:11 +09:00

feat: add event reporter

This commit is contained in:
2019-08-01 01:10:09 +09:00
parent 19ffa22c29
commit 88a67e45fc
3 changed files with 19 additions and 8 deletions

View File

@@ -0,0 +1,13 @@
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
}