diff --git a/lib/components/App.js b/lib/components/App.js index 30820f2..cb5fb33 100644 --- a/lib/components/App.js +++ b/lib/components/App.js @@ -3,6 +3,10 @@ import FrozenHead from 'react-frozenhead' import React from 'react' import SupportStore from '../stores/SupportStore' import { RouteHandler } from 'react-router' +import ga from 'react-google-analytics' + +ga('create', 'UA-62785624-1', 'auto'); +ga('send', 'pageview'); export default class App extends React.Component { @@ -46,14 +50,7 @@ export default class App extends React.Component { ? : } - + } diff --git a/package.json b/package.json index 40daaa6..544a5e2 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "peer": "^0.2.8", "react": "^0.13.0", "react-frozenhead": "^0.3.0", + "react-google-analytics": "^0.2.0", "react-router": "^0.13.1", "socket.io": "^1.3.5", "stylus": "^0.50.0",