1
0
mirror of https://github.com/uetchy/namae.git synced 2025-10-14 23:22:19 +09:00

feat: add ga

This commit is contained in:
2019-07-31 14:17:32 +09:00
parent 5f4b7df212
commit 2b7d9f6fdf
3 changed files with 10 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
"isomorphic-unfetch": "^3.0.0",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-ga": "^2.6.0",
"react-icons": "^3.7.0",
"react-scripts": "3.0.1",
"react-spinners": "^0.5.13",

View File

@@ -1,9 +1,13 @@
import React from 'react'
import ReactDOM from 'react-dom'
import ReactGA from 'react-ga'
import './index.css'
import App from './App'
import * as serviceWorker from './serviceWorker'
ReactGA.initialize('UA-28919359-15')
ReactGA.pageview(window.location.pathname + window.location.search)
ReactDOM.render(<App />, document.getElementById('root'))
serviceWorker.unregister()